From a67cd311541ed887e174e3cc77a1068aa48b13c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ville=20V=C3=A4limaa?= Date: Thu, 18 Jun 2026 17:57:30 +0800 Subject: [PATCH 1/4] feat: initial header styling support --- .../GoogleMapsBaseNavigationView.kt | 26 + .../GoogleMapsViewMessageHandler.kt | 11 + .../maps/flutter/navigation/messages.g.kt | 7037 +++---- example/lib/pages/navigation.dart | 65 + .../GoogleMapsNavigationView.swift | 20 + ...ogleMapsNavigationViewMessageHandler.swift | 11 + .../messages.g.swift | 2306 +-- ...oogle_maps_navigation_view_controller.dart | 19 + .../method_channel/convert/navigation.dart | 26 + lib/src/method_channel/map_view_api.dart | 18 + lib/src/method_channel/messages.g.dart | 6518 +++---- .../navigation_header_styling_options.dart | 110 + lib/src/types/types.dart | 1 + pigeons/messages.dart | 26 + test/google_navigation_flutter_test.dart | 51 + test/messages_test.g.dart | 15837 ++++++---------- 16 files changed, 12271 insertions(+), 19811 deletions(-) create mode 100644 lib/src/types/navigation_header_styling_options.dart diff --git a/android/src/main/kotlin/com/google/maps/flutter/navigation/GoogleMapsBaseNavigationView.kt b/android/src/main/kotlin/com/google/maps/flutter/navigation/GoogleMapsBaseNavigationView.kt index 95679ae2..29bbfe42 100644 --- a/android/src/main/kotlin/com/google/maps/flutter/navigation/GoogleMapsBaseNavigationView.kt +++ b/android/src/main/kotlin/com/google/maps/flutter/navigation/GoogleMapsBaseNavigationView.kt @@ -18,6 +18,7 @@ package com.google.maps.flutter.navigation import com.google.android.libraries.navigation.ForceNightMode import com.google.android.libraries.navigation.NavigationView +import com.google.android.libraries.navigation.StylingOptions /** * Base class for map views backed by a [NavigationView] from the Navigation SDK. @@ -45,6 +46,7 @@ abstract class GoogleMapsBaseNavigationView( private var _isTrafficIncidentCardsEnabled: Boolean = true private var _isTrafficPromptsEnabled: Boolean = true private var _isNavigationHeaderEnabled: Boolean = true + private var _navigationHeaderStylingOptions = NavigationHeaderStylingOptionsDto() private var _isNavigationFooterEnabled: Boolean = true private var _isRecenterButtonEnabled: Boolean = true private var _isReportIncidentButtonEnabled: Boolean = true @@ -116,6 +118,30 @@ abstract class GoogleMapsBaseNavigationView( _isNavigationHeaderEnabled = enabled } + fun getNavigationHeaderStylingOptions(): NavigationHeaderStylingOptionsDto { + return _navigationHeaderStylingOptions + } + + fun setNavigationHeaderStylingOptions(stylingOptions: NavigationHeaderStylingOptionsDto) { + val builder = StylingOptions() + + stylingOptions.primaryDayModeBackgroundColor?.let { + builder.primaryDayModeThemeColor(it.toInt()) + } + stylingOptions.secondaryDayModeBackgroundColor?.let { + builder.secondaryDayModeThemeColor(it.toInt()) + } + stylingOptions.primaryNightModeBackgroundColor?.let { + builder.primaryNightModeThemeColor(it.toInt()) + } + stylingOptions.secondaryNightModeBackgroundColor?.let { + builder.secondaryNightModeThemeColor(it.toInt()) + } + + navigationView.setStylingOptions(builder) + _navigationHeaderStylingOptions = stylingOptions + } + fun isNavigationFooterEnabled(): Boolean { return _isNavigationFooterEnabled } diff --git a/android/src/main/kotlin/com/google/maps/flutter/navigation/GoogleMapsViewMessageHandler.kt b/android/src/main/kotlin/com/google/maps/flutter/navigation/GoogleMapsViewMessageHandler.kt index f8a310e6..0993e061 100644 --- a/android/src/main/kotlin/com/google/maps/flutter/navigation/GoogleMapsViewMessageHandler.kt +++ b/android/src/main/kotlin/com/google/maps/flutter/navigation/GoogleMapsViewMessageHandler.kt @@ -320,6 +320,17 @@ class GoogleMapsViewMessageHandler(private val viewRegistry: GoogleMapsViewRegis getNavigationView(viewId.toInt()).setNavigationHeaderEnabled(enabled) } + override fun getNavigationHeaderStylingOptions(viewId: Long): NavigationHeaderStylingOptionsDto { + return getNavigationView(viewId.toInt()).getNavigationHeaderStylingOptions() + } + + override fun setNavigationHeaderStylingOptions( + viewId: Long, + stylingOptions: NavigationHeaderStylingOptionsDto, + ) { + getNavigationView(viewId.toInt()).setNavigationHeaderStylingOptions(stylingOptions) + } + override fun isNavigationFooterEnabled(viewId: Long): Boolean { return getNavigationView(viewId.toInt()).isNavigationFooterEnabled() } 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 41d95081..e0b7b646 100644 --- a/android/src/main/kotlin/com/google/maps/flutter/navigation/messages.g.kt +++ b/android/src/main/kotlin/com/google/maps/flutter/navigation/messages.g.kt @@ -21,20 +21,16 @@ package com.google.maps.flutter.navigation import android.util.Log import io.flutter.plugin.common.BasicMessageChannel import io.flutter.plugin.common.BinaryMessenger +import io.flutter.plugin.common.EventChannel import io.flutter.plugin.common.MessageCodec +import io.flutter.plugin.common.StandardMethodCodec import io.flutter.plugin.common.StandardMessageCodec import java.io.ByteArrayOutputStream import java.nio.ByteBuffer - private object MessagesPigeonUtils { fun createConnectionError(channelName: String): FlutterError { - return FlutterError( - "channel-error", - "Unable to establish connection on channel: '$channelName'.", - "", - ) - } + return FlutterError("channel-error", "Unable to establish connection on channel: '$channelName'.", "") } fun wrapResult(result: Any?): List { return listOf(result) @@ -42,62 +38,66 @@ private object MessagesPigeonUtils { fun wrapError(exception: Throwable): List { return if (exception is FlutterError) { - listOf(exception.code, exception.message, exception.details) + listOf( + exception.code, + exception.message, + exception.details + ) } else { listOf( exception.javaClass.simpleName, exception.toString(), - "Cause: " + exception.cause + ", Stacktrace: " + Log.getStackTraceString(exception), + "Cause: " + exception.cause + ", Stacktrace: " + Log.getStackTraceString(exception) ) } } - fun deepEquals(a: Any?, b: Any?): Boolean { if (a is ByteArray && b is ByteArray) { - return a.contentEquals(b) + return a.contentEquals(b) } if (a is IntArray && b is IntArray) { - return a.contentEquals(b) + return a.contentEquals(b) } if (a is LongArray && b is LongArray) { - return a.contentEquals(b) + return a.contentEquals(b) } if (a is DoubleArray && b is DoubleArray) { - return a.contentEquals(b) + return a.contentEquals(b) } if (a is Array<*> && b is Array<*>) { - return a.size == b.size && a.indices.all { deepEquals(a[it], b[it]) } + return a.size == b.size && + a.indices.all{ deepEquals(a[it], b[it]) } } if (a is List<*> && b is List<*>) { - return a.size == b.size && a.indices.all { deepEquals(a[it], b[it]) } + return a.size == b.size && + a.indices.all{ deepEquals(a[it], b[it]) } } if (a is Map<*, *> && b is Map<*, *>) { - return a.size == b.size && - a.all { (b as Map).containsKey(it.key) && deepEquals(it.value, b[it.key]) } + return a.size == b.size && a.all { + (b as Map).containsKey(it.key) && + deepEquals(it.value, b[it.key]) + } } return a == b } + } /** * Error class for passing custom error details to Flutter via a thrown PlatformException. - * * @property code The error code. * @property message The error message. * @property details The error details. Must be a datatype supported by the api codec. */ -class FlutterError( +class FlutterError ( val code: String, override val message: String? = null, - val details: Any? = null, + val details: Any? = null ) : Throwable() /** Describes the type of map to construct. */ enum class MapViewTypeDto(val raw: Int) { - /** - * Navigation view supports navigation overlay, and current navigation session is displayed on the - * map. - */ + /** Navigation view supports navigation overlay, and current navigation session is displayed on the map. */ NAVIGATION(0), /** Classic map view, without navigation overlay. */ MAP(1); @@ -111,7 +111,10 @@ enum class MapViewTypeDto(val raw: Int) { /** Determines the initial visibility of the navigation UI on map initialization. */ enum class NavigationUIEnabledPreferenceDto(val raw: Int) { - /** Navigation UI gets enabled if the navigation session has already been successfully started. */ + /** + * Navigation UI gets enabled if the navigation + * session has already been successfully started. + */ AUTOMATIC(0), /** Navigation UI is disabled. */ DISABLED(1); @@ -433,9 +436,7 @@ enum class ManeuverDto(val raw: Int) { OFF_RAMP_UTURN_COUNTERCLOCKWISE(22), /** Keep to the left side of the road when entering a turnpike or freeway as the road diverges. */ ON_RAMP_KEEP_LEFT(23), - /** - * Keep to the right side of the road when entering a turnpike or freeway as the road diverges. - */ + /** Keep to the right side of the road when entering a turnpike or freeway as the road diverges. */ ON_RAMP_KEEP_RIGHT(24), /** Regular left turn to enter a turnpike or freeway. */ ON_RAMP_LEFT(25), @@ -491,15 +492,9 @@ enum class ManeuverDto(val raw: Int) { ROUNDABOUT_STRAIGHT_CLOCKWISE(50), /** Enter a roundabout in the counterclockwise direction and continue straight. */ ROUNDABOUT_STRAIGHT_COUNTERCLOCKWISE(51), - /** - * Enter a roundabout in the clockwise direction and turn clockwise onto the opposite side of the - * street. - */ + /** Enter a roundabout in the clockwise direction and turn clockwise onto the opposite side of the street. */ ROUNDABOUT_UTURN_CLOCKWISE(52), - /** - * Enter a roundabout in the counterclockwise direction and turn counterclockwise onto the - * opposite side of the street. - */ + /** Enter a roundabout in the counterclockwise direction and turn counterclockwise onto the opposite side of the street. */ ROUNDABOUT_UTURN_COUNTERCLOCKWISE(53), /** Continue straight. */ STRAIGHT(54), @@ -600,14 +595,11 @@ enum class LaneShapeDto(val raw: Int) { /** Determines how application should behave when a application task is removed. */ enum class TaskRemovedBehaviorDto(val raw: Int) { /** - * The default state, indicating that navigation guidance, location updates, and notification - * should persist after user removes the application task. + * The default state, indicating that navigation guidance, + * location updates, and notification should persist after user removes the application task. */ CONTINUE_SERVICE(0), - /** - * Indicates that navigation guidance, location updates, and notification should shut down - * immediately when the user removes the application task. - */ + /** Indicates that navigation guidance, location updates, and notification should shut down immediately when the user removes the application task. */ QUIT_SERVICE(1); companion object { @@ -622,7 +614,7 @@ enum class TaskRemovedBehaviorDto(val raw: Int) { * * Generated class from Pigeon that represents data sent in messages. */ -data class AutoMapOptionsDto( +data class AutoMapOptionsDto ( /** The initial positioning of the camera in the map view. */ val cameraPosition: CameraPositionDto? = null, /** Cloud-based map ID for custom styling. */ @@ -634,8 +626,9 @@ data class AutoMapOptionsDto( /** Forces night mode (dark theme) regardless of system settings. */ val forceNightMode: NavigationForceNightModeDto? = null, /** Determines the initial visibility of the navigation UI on map initialization. */ - val navigationUIEnabledPreference: NavigationUIEnabledPreferenceDto? = null, -) { + val navigationUIEnabledPreference: NavigationUIEnabledPreferenceDto? = null +) + { companion object { fun fromList(pigeonVar_list: List): AutoMapOptionsDto { val cameraPosition = pigeonVar_list[0] as CameraPositionDto? @@ -644,17 +637,9 @@ data class AutoMapOptionsDto( val mapColorScheme = pigeonVar_list[3] as MapColorSchemeDto? val forceNightMode = pigeonVar_list[4] as NavigationForceNightModeDto? val navigationUIEnabledPreference = pigeonVar_list[5] as NavigationUIEnabledPreferenceDto? - return AutoMapOptionsDto( - cameraPosition, - mapId, - mapType, - mapColorScheme, - forceNightMode, - navigationUIEnabledPreference, - ) + return AutoMapOptionsDto(cameraPosition, mapId, mapType, mapColorScheme, forceNightMode, navigationUIEnabledPreference) } } - fun toList(): List { return listOf( cameraPosition, @@ -665,7 +650,6 @@ data class AutoMapOptionsDto( navigationUIEnabledPreference, ) } - override fun equals(other: Any?): Boolean { if (other !is AutoMapOptionsDto) { return false @@ -673,8 +657,7 @@ data class AutoMapOptionsDto( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) - } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } override fun hashCode(): Int = toList().hashCode() } @@ -684,7 +667,7 @@ data class AutoMapOptionsDto( * * Generated class from Pigeon that represents data sent in messages. */ -data class MapOptionsDto( +data class MapOptionsDto ( /** The initial positioning of the camera in the map view. */ val cameraPosition: CameraPositionDto, /** The type of map to display (e.g., satellite, terrain, hybrid, etc.). */ @@ -717,13 +700,14 @@ data class MapOptionsDto( /** Specifies the padding for the map. */ val padding: MapPaddingDto? = null, /** - * The map ID for advanced map options eg. cloud-based map styling. This value can only be set on - * map initialization and cannot be changed afterwards. + * The map ID for advanced map options eg. cloud-based map styling. + * This value can only be set on map initialization and cannot be changed afterwards. */ val mapId: String? = null, /** The map color scheme mode for the map view. */ - val mapColorScheme: MapColorSchemeDto, -) { + val mapColorScheme: MapColorSchemeDto +) + { companion object { fun fromList(pigeonVar_list: List): MapOptionsDto { val cameraPosition = pigeonVar_list[0] as CameraPositionDto @@ -742,27 +726,9 @@ data class MapOptionsDto( val padding = pigeonVar_list[13] as MapPaddingDto? val mapId = pigeonVar_list[14] as String? val mapColorScheme = pigeonVar_list[15] as MapColorSchemeDto - return MapOptionsDto( - cameraPosition, - mapType, - compassEnabled, - rotateGesturesEnabled, - scrollGesturesEnabled, - tiltGesturesEnabled, - zoomGesturesEnabled, - scrollGesturesEnabledDuringRotateOrZoom, - mapToolbarEnabled, - minZoomPreference, - maxZoomPreference, - zoomControlsEnabled, - cameraTargetBounds, - padding, - mapId, - mapColorScheme, - ) + return MapOptionsDto(cameraPosition, mapType, compassEnabled, rotateGesturesEnabled, scrollGesturesEnabled, tiltGesturesEnabled, zoomGesturesEnabled, scrollGesturesEnabledDuringRotateOrZoom, mapToolbarEnabled, minZoomPreference, maxZoomPreference, zoomControlsEnabled, cameraTargetBounds, padding, mapId, mapColorScheme) } } - fun toList(): List { return listOf( cameraPosition, @@ -783,7 +749,6 @@ data class MapOptionsDto( mapColorScheme, ) } - override fun equals(other: Any?): Boolean { if (other !is MapOptionsDto) { return false @@ -791,8 +756,7 @@ data class MapOptionsDto( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) - } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } override fun hashCode(): Int = toList().hashCode() } @@ -802,12 +766,13 @@ data class MapOptionsDto( * * Generated class from Pigeon that represents data sent in messages. */ -data class NavigationViewOptionsDto( +data class NavigationViewOptionsDto ( /** Determines the initial visibility of the navigation UI on map initialization. */ val navigationUIEnabledPreference: NavigationUIEnabledPreferenceDto, /** Controls the navigation night mode for Navigation UI. */ - val forceNightMode: NavigationForceNightModeDto, -) { + val forceNightMode: NavigationForceNightModeDto +) + { companion object { fun fromList(pigeonVar_list: List): NavigationViewOptionsDto { val navigationUIEnabledPreference = pigeonVar_list[0] as NavigationUIEnabledPreferenceDto @@ -815,11 +780,12 @@ data class NavigationViewOptionsDto( return NavigationViewOptionsDto(navigationUIEnabledPreference, forceNightMode) } } - fun toList(): List { - return listOf(navigationUIEnabledPreference, forceNightMode) + return listOf( + navigationUIEnabledPreference, + forceNightMode, + ) } - override fun equals(other: Any?): Boolean { if (other !is NavigationViewOptionsDto) { return false @@ -827,8 +793,7 @@ data class NavigationViewOptionsDto( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) - } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } override fun hashCode(): Int = toList().hashCode() } @@ -836,15 +801,17 @@ data class NavigationViewOptionsDto( /** * A message for creating a new navigation view. * - * This message is used to initialize a new navigation view with a specified initial parameters. + * This message is used to initialize a new navigation view with a + * specified initial parameters. * * Generated class from Pigeon that represents data sent in messages. */ -data class ViewCreationOptionsDto( +data class ViewCreationOptionsDto ( val mapViewType: MapViewTypeDto, val mapOptions: MapOptionsDto, - val navigationViewOptions: NavigationViewOptionsDto? = null, -) { + val navigationViewOptions: NavigationViewOptionsDto? = null +) + { companion object { fun fromList(pigeonVar_list: List): ViewCreationOptionsDto { val mapViewType = pigeonVar_list[0] as MapViewTypeDto @@ -853,11 +820,13 @@ data class ViewCreationOptionsDto( return ViewCreationOptionsDto(mapViewType, mapOptions, navigationViewOptions) } } - fun toList(): List { - return listOf(mapViewType, mapOptions, navigationViewOptions) + return listOf( + mapViewType, + mapOptions, + navigationViewOptions, + ) } - override fun equals(other: Any?): Boolean { if (other !is ViewCreationOptionsDto) { return false @@ -865,19 +834,19 @@ data class ViewCreationOptionsDto( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) - } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class CameraPositionDto( +data class CameraPositionDto ( val bearing: Double, val target: LatLngDto, val tilt: Double, - val zoom: Double, -) { + val zoom: Double +) + { companion object { fun fromList(pigeonVar_list: List): CameraPositionDto { val bearing = pigeonVar_list[0] as Double @@ -887,11 +856,14 @@ data class CameraPositionDto( return CameraPositionDto(bearing, target, tilt, zoom) } } - fun toList(): List { - return listOf(bearing, target, tilt, zoom) + return listOf( + bearing, + target, + tilt, + zoom, + ) } - override fun equals(other: Any?): Boolean { if (other !is CameraPositionDto) { return false @@ -899,19 +871,19 @@ data class CameraPositionDto( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) - } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class MarkerDto( +data class MarkerDto ( /** Identifies marker */ val markerId: String, /** Options for marker */ - val options: MarkerOptionsDto, -) { + val options: MarkerOptionsDto +) + { companion object { fun fromList(pigeonVar_list: List): MarkerDto { val markerId = pigeonVar_list[0] as String @@ -919,11 +891,12 @@ data class MarkerDto( return MarkerDto(markerId, options) } } - fun toList(): List { - return listOf(markerId, options) + return listOf( + markerId, + options, + ) } - override fun equals(other: Any?): Boolean { if (other !is MarkerDto) { return false @@ -931,14 +904,13 @@ data class MarkerDto( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) - } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class MarkerOptionsDto( +data class MarkerOptionsDto ( val alpha: Double, val anchor: MarkerAnchorDto, val draggable: Boolean, @@ -949,8 +921,9 @@ data class MarkerOptionsDto( val infoWindow: InfoWindowDto, val visible: Boolean, val zIndex: Double, - val icon: ImageDescriptorDto, -) { + val icon: ImageDescriptorDto +) + { companion object { fun fromList(pigeonVar_list: List): MarkerOptionsDto { val alpha = pigeonVar_list[0] as Double @@ -964,22 +937,9 @@ data class MarkerOptionsDto( val visible = pigeonVar_list[8] as Boolean val zIndex = pigeonVar_list[9] as Double val icon = pigeonVar_list[10] as ImageDescriptorDto - return MarkerOptionsDto( - alpha, - anchor, - draggable, - flat, - consumeTapEvents, - position, - rotation, - infoWindow, - visible, - zIndex, - icon, - ) + return MarkerOptionsDto(alpha, anchor, draggable, flat, consumeTapEvents, position, rotation, infoWindow, visible, zIndex, icon) } } - fun toList(): List { return listOf( alpha, @@ -995,7 +955,6 @@ data class MarkerOptionsDto( icon, ) } - override fun equals(other: Any?): Boolean { if (other !is MarkerOptionsDto) { return false @@ -1003,20 +962,20 @@ data class MarkerOptionsDto( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) - } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class ImageDescriptorDto( +data class ImageDescriptorDto ( val registeredImageId: String? = null, val imagePixelRatio: Double? = null, val width: Double? = null, val height: Double? = null, - val type: RegisteredImageTypeDto, -) { + val type: RegisteredImageTypeDto +) + { companion object { fun fromList(pigeonVar_list: List): ImageDescriptorDto { val registeredImageId = pigeonVar_list[0] as String? @@ -1027,11 +986,15 @@ data class ImageDescriptorDto( return ImageDescriptorDto(registeredImageId, imagePixelRatio, width, height, type) } } - fun toList(): List { - return listOf(registeredImageId, imagePixelRatio, width, height, type) + return listOf( + registeredImageId, + imagePixelRatio, + width, + height, + type, + ) } - override fun equals(other: Any?): Boolean { if (other !is ImageDescriptorDto) { return false @@ -1039,18 +1002,18 @@ data class ImageDescriptorDto( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) - } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class InfoWindowDto( +data class InfoWindowDto ( val title: String? = null, val snippet: String? = null, - val anchor: MarkerAnchorDto, -) { + val anchor: MarkerAnchorDto +) + { companion object { fun fromList(pigeonVar_list: List): InfoWindowDto { val title = pigeonVar_list[0] as String? @@ -1059,11 +1022,13 @@ data class InfoWindowDto( return InfoWindowDto(title, snippet, anchor) } } - fun toList(): List { - return listOf(title, snippet, anchor) + return listOf( + title, + snippet, + anchor, + ) } - override fun equals(other: Any?): Boolean { if (other !is InfoWindowDto) { return false @@ -1071,14 +1036,17 @@ data class InfoWindowDto( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) - } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class MarkerAnchorDto(val u: Double, val v: Double) { +data class MarkerAnchorDto ( + val u: Double, + val v: Double +) + { companion object { fun fromList(pigeonVar_list: List): MarkerAnchorDto { val u = pigeonVar_list[0] as Double @@ -1086,11 +1054,12 @@ data class MarkerAnchorDto(val u: Double, val v: Double) { return MarkerAnchorDto(u, v) } } - fun toList(): List { - return listOf(u, v) + return listOf( + u, + v, + ) } - override fun equals(other: Any?): Boolean { if (other !is MarkerAnchorDto) { return false @@ -1098,29 +1067,29 @@ data class MarkerAnchorDto(val u: Double, val v: Double) { if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) - } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } override fun hashCode(): Int = toList().hashCode() } /** - * Represents a point of interest (POI) on the map. POIs include parks, schools, government - * buildings, and businesses. + * Represents a point of interest (POI) on the map. + * POIs include parks, schools, government buildings, and businesses. * * Generated class from Pigeon that represents data sent in messages. */ -data class PointOfInterestDto( +data class PointOfInterestDto ( /** - * The Place ID of this POI, as defined in the Places SDK. This can be used to retrieve additional - * information about the place. + * The Place ID of this POI, as defined in the Places SDK. + * This can be used to retrieve additional information about the place. */ val placeID: String, /** The name of the POI (e.g., "Central Park", "City Hall"). */ val name: String, /** The geographical coordinates of the POI. */ - val latLng: LatLngDto, -) { + val latLng: LatLngDto +) + { companion object { fun fromList(pigeonVar_list: List): PointOfInterestDto { val placeID = pigeonVar_list[0] as String @@ -1129,11 +1098,13 @@ data class PointOfInterestDto( return PointOfInterestDto(placeID, name, latLng) } } - fun toList(): List { - return listOf(placeID, name, latLng) + return listOf( + placeID, + name, + latLng, + ) } - override fun equals(other: Any?): Boolean { if (other !is PointOfInterestDto) { return false @@ -1141,8 +1112,7 @@ data class PointOfInterestDto( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) - } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } override fun hashCode(): Int = toList().hashCode() } @@ -1152,12 +1122,13 @@ data class PointOfInterestDto( * * Generated class from Pigeon that represents data sent in messages. */ -data class IndoorLevelDto( +data class IndoorLevelDto ( /** Full display name of the level. */ val name: String? = null, /** Short display name of the level. */ - val shortName: String? = null, -) { + val shortName: String? = null +) + { companion object { fun fromList(pigeonVar_list: List): IndoorLevelDto { val name = pigeonVar_list[0] as String? @@ -1165,11 +1136,12 @@ data class IndoorLevelDto( return IndoorLevelDto(name, shortName) } } - fun toList(): List { - return listOf(name, shortName) + return listOf( + name, + shortName, + ) } - override fun equals(other: Any?): Boolean { if (other !is IndoorLevelDto) { return false @@ -1177,8 +1149,7 @@ data class IndoorLevelDto( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) - } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } override fun hashCode(): Int = toList().hashCode() } @@ -1188,7 +1159,7 @@ data class IndoorLevelDto( * * Generated class from Pigeon that represents data sent in messages. */ -data class IndoorBuildingDto( +data class IndoorBuildingDto ( /** All levels available in the focused building. */ val levels: List, /** Currently active level index in [levels], if known. */ @@ -1196,8 +1167,9 @@ data class IndoorBuildingDto( /** Default level index in [levels], if known. */ val defaultLevelIndex: Long? = null, /** Whether building is mostly underground, if known. */ - val isUnderground: Boolean? = null, -) { + val isUnderground: Boolean? = null +) + { companion object { fun fromList(pigeonVar_list: List): IndoorBuildingDto { val levels = pigeonVar_list[0] as List @@ -1207,11 +1179,14 @@ data class IndoorBuildingDto( return IndoorBuildingDto(levels, activeLevelIndex, defaultLevelIndex, isUnderground) } } - fun toList(): List { - return listOf(levels, activeLevelIndex, defaultLevelIndex, isUnderground) + return listOf( + levels, + activeLevelIndex, + defaultLevelIndex, + isUnderground, + ) } - override fun equals(other: Any?): Boolean { if (other !is IndoorBuildingDto) { return false @@ -1219,14 +1194,17 @@ data class IndoorBuildingDto( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) - } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class PolygonDto(val polygonId: String, val options: PolygonOptionsDto) { +data class PolygonDto ( + val polygonId: String, + val options: PolygonOptionsDto +) + { companion object { fun fromList(pigeonVar_list: List): PolygonDto { val polygonId = pigeonVar_list[0] as String @@ -1234,11 +1212,12 @@ data class PolygonDto(val polygonId: String, val options: PolygonOptionsDto) { return PolygonDto(polygonId, options) } } - fun toList(): List { - return listOf(polygonId, options) + return listOf( + polygonId, + options, + ) } - override fun equals(other: Any?): Boolean { if (other !is PolygonDto) { return false @@ -1246,14 +1225,13 @@ data class PolygonDto(val polygonId: String, val options: PolygonOptionsDto) { if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) - } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class PolygonOptionsDto( +data class PolygonOptionsDto ( val points: List, val holes: List, val clickable: Boolean, @@ -1262,8 +1240,9 @@ data class PolygonOptionsDto( val strokeColor: Long, val strokeWidth: Double, val visible: Boolean, - val zIndex: Double, -) { + val zIndex: Double +) + { companion object { fun fromList(pigeonVar_list: List): PolygonOptionsDto { val points = pigeonVar_list[0] as List @@ -1275,20 +1254,9 @@ data class PolygonOptionsDto( val strokeWidth = pigeonVar_list[6] as Double val visible = pigeonVar_list[7] as Boolean val zIndex = pigeonVar_list[8] as Double - return PolygonOptionsDto( - points, - holes, - clickable, - fillColor, - geodesic, - strokeColor, - strokeWidth, - visible, - zIndex, - ) + return PolygonOptionsDto(points, holes, clickable, fillColor, geodesic, strokeColor, strokeWidth, visible, zIndex) } } - fun toList(): List { return listOf( points, @@ -1302,7 +1270,6 @@ data class PolygonOptionsDto( zIndex, ) } - override fun equals(other: Any?): Boolean { if (other !is PolygonOptionsDto) { return false @@ -1310,25 +1277,27 @@ data class PolygonOptionsDto( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) - } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class PolygonHoleDto(val points: List) { +data class PolygonHoleDto ( + val points: List +) + { companion object { fun fromList(pigeonVar_list: List): PolygonHoleDto { val points = pigeonVar_list[0] as List return PolygonHoleDto(points) } } - fun toList(): List { - return listOf(points) + return listOf( + points, + ) } - override fun equals(other: Any?): Boolean { if (other !is PolygonHoleDto) { return false @@ -1336,18 +1305,18 @@ data class PolygonHoleDto(val points: List) { if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) - } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class StyleSpanStrokeStyleDto( +data class StyleSpanStrokeStyleDto ( val solidColor: Long? = null, val fromColor: Long? = null, - val toColor: Long? = null, -) { + val toColor: Long? = null +) + { companion object { fun fromList(pigeonVar_list: List): StyleSpanStrokeStyleDto { val solidColor = pigeonVar_list[0] as Long? @@ -1356,11 +1325,13 @@ data class StyleSpanStrokeStyleDto( return StyleSpanStrokeStyleDto(solidColor, fromColor, toColor) } } - fun toList(): List { - return listOf(solidColor, fromColor, toColor) + return listOf( + solidColor, + fromColor, + toColor, + ) } - override fun equals(other: Any?): Boolean { if (other !is StyleSpanStrokeStyleDto) { return false @@ -1368,14 +1339,17 @@ data class StyleSpanStrokeStyleDto( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) - } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class StyleSpanDto(val length: Double, val style: StyleSpanStrokeStyleDto) { +data class StyleSpanDto ( + val length: Double, + val style: StyleSpanStrokeStyleDto +) + { companion object { fun fromList(pigeonVar_list: List): StyleSpanDto { val length = pigeonVar_list[0] as Double @@ -1383,11 +1357,12 @@ data class StyleSpanDto(val length: Double, val style: StyleSpanStrokeStyleDto) return StyleSpanDto(length, style) } } - fun toList(): List { - return listOf(length, style) + return listOf( + length, + style, + ) } - override fun equals(other: Any?): Boolean { if (other !is StyleSpanDto) { return false @@ -1395,14 +1370,17 @@ data class StyleSpanDto(val length: Double, val style: StyleSpanStrokeStyleDto) if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) - } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class PolylineDto(val polylineId: String, val options: PolylineOptionsDto) { +data class PolylineDto ( + val polylineId: String, + val options: PolylineOptionsDto +) + { companion object { fun fromList(pigeonVar_list: List): PolylineDto { val polylineId = pigeonVar_list[0] as String @@ -1410,11 +1388,12 @@ data class PolylineDto(val polylineId: String, val options: PolylineOptionsDto) return PolylineDto(polylineId, options) } } - fun toList(): List { - return listOf(polylineId, options) + return listOf( + polylineId, + options, + ) } - override fun equals(other: Any?): Boolean { if (other !is PolylineDto) { return false @@ -1422,14 +1401,17 @@ data class PolylineDto(val polylineId: String, val options: PolylineOptionsDto) if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) - } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class PatternItemDto(val type: PatternTypeDto, val length: Double? = null) { +data class PatternItemDto ( + val type: PatternTypeDto, + val length: Double? = null +) + { companion object { fun fromList(pigeonVar_list: List): PatternItemDto { val type = pigeonVar_list[0] as PatternTypeDto @@ -1437,11 +1419,12 @@ data class PatternItemDto(val type: PatternTypeDto, val length: Double? = null) return PatternItemDto(type, length) } } - fun toList(): List { - return listOf(type, length) + return listOf( + type, + length, + ) } - override fun equals(other: Any?): Boolean { if (other !is PatternItemDto) { return false @@ -1449,14 +1432,13 @@ data class PatternItemDto(val type: PatternTypeDto, val length: Double? = null) if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) - } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class PolylineOptionsDto( +data class PolylineOptionsDto ( val points: List? = null, val clickable: Boolean? = null, val geodesic: Boolean? = null, @@ -1466,8 +1448,9 @@ data class PolylineOptionsDto( val strokeWidth: Double? = null, val visible: Boolean? = null, val zIndex: Double? = null, - val spans: List, -) { + val spans: List +) + { companion object { fun fromList(pigeonVar_list: List): PolylineOptionsDto { val points = pigeonVar_list[0] as List? @@ -1480,21 +1463,9 @@ data class PolylineOptionsDto( val visible = pigeonVar_list[7] as Boolean? val zIndex = pigeonVar_list[8] as Double? val spans = pigeonVar_list[9] as List - return PolylineOptionsDto( - points, - clickable, - geodesic, - strokeColor, - strokeJointType, - strokePattern, - strokeWidth, - visible, - zIndex, - spans, - ) + return PolylineOptionsDto(points, clickable, geodesic, strokeColor, strokeJointType, strokePattern, strokeWidth, visible, zIndex, spans) } } - fun toList(): List { return listOf( points, @@ -1509,7 +1480,6 @@ data class PolylineOptionsDto( spans, ) } - override fun equals(other: Any?): Boolean { if (other !is PolylineOptionsDto) { return false @@ -1517,19 +1487,19 @@ data class PolylineOptionsDto( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) - } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class CircleDto( +data class CircleDto ( /** Identifies circle. */ val circleId: String, /** Options for circle. */ - val options: CircleOptionsDto, -) { + val options: CircleOptionsDto +) + { companion object { fun fromList(pigeonVar_list: List): CircleDto { val circleId = pigeonVar_list[0] as String @@ -1537,11 +1507,12 @@ data class CircleDto( return CircleDto(circleId, options) } } - fun toList(): List { - return listOf(circleId, options) + return listOf( + circleId, + options, + ) } - override fun equals(other: Any?): Boolean { if (other !is CircleDto) { return false @@ -1549,14 +1520,13 @@ data class CircleDto( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) - } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class CircleOptionsDto( +data class CircleOptionsDto ( val position: LatLngDto, val radius: Double, val strokeWidth: Double, @@ -1565,8 +1535,9 @@ data class CircleOptionsDto( val fillColor: Long, val zIndex: Double, val visible: Boolean, - val clickable: Boolean, -) { + val clickable: Boolean +) + { companion object { fun fromList(pigeonVar_list: List): CircleOptionsDto { val position = pigeonVar_list[0] as LatLngDto @@ -1578,20 +1549,9 @@ data class CircleOptionsDto( val zIndex = pigeonVar_list[6] as Double val visible = pigeonVar_list[7] as Boolean val clickable = pigeonVar_list[8] as Boolean - return CircleOptionsDto( - position, - radius, - strokeWidth, - strokeColor, - strokePattern, - fillColor, - zIndex, - visible, - clickable, - ) + return CircleOptionsDto(position, radius, strokeWidth, strokeColor, strokePattern, fillColor, zIndex, visible, clickable) } } - fun toList(): List { return listOf( position, @@ -1605,7 +1565,6 @@ data class CircleOptionsDto( clickable, ) } - override fun equals(other: Any?): Boolean { if (other !is CircleOptionsDto) { return false @@ -1613,14 +1572,19 @@ data class CircleOptionsDto( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) - } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class MapPaddingDto(val top: Long, val left: Long, val bottom: Long, val right: Long) { +data class MapPaddingDto ( + val top: Long, + val left: Long, + val bottom: Long, + val right: Long +) + { companion object { fun fromList(pigeonVar_list: List): MapPaddingDto { val top = pigeonVar_list[0] as Long @@ -1630,11 +1594,14 @@ data class MapPaddingDto(val top: Long, val left: Long, val bottom: Long, val ri return MapPaddingDto(top, left, bottom, right) } } - fun toList(): List { - return listOf(top, left, bottom, right) + return listOf( + top, + left, + bottom, + right, + ) } - override fun equals(other: Any?): Boolean { if (other !is MapPaddingDto) { return false @@ -1642,14 +1609,61 @@ data class MapPaddingDto(val top: Long, val left: Long, val bottom: Long, val ri if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } + + override fun hashCode(): Int = toList().hashCode() +} + +/** + * Navigation header background colors. + * + * All color values are 32-bit ARGB integers (format: 0xAARRGGBB). + * Any null value resets that specific color to the native SDK default. + * + * Generated class from Pigeon that represents data sent in messages. + */ +data class NavigationHeaderStylingOptionsDto ( + val primaryDayModeBackgroundColor: Long? = null, + val secondaryDayModeBackgroundColor: Long? = null, + val primaryNightModeBackgroundColor: Long? = null, + val secondaryNightModeBackgroundColor: Long? = null +) + { + companion object { + fun fromList(pigeonVar_list: List): NavigationHeaderStylingOptionsDto { + val primaryDayModeBackgroundColor = pigeonVar_list[0] as Long? + val secondaryDayModeBackgroundColor = pigeonVar_list[1] as Long? + val primaryNightModeBackgroundColor = pigeonVar_list[2] as Long? + val secondaryNightModeBackgroundColor = pigeonVar_list[3] as Long? + return NavigationHeaderStylingOptionsDto(primaryDayModeBackgroundColor, secondaryDayModeBackgroundColor, primaryNightModeBackgroundColor, secondaryNightModeBackgroundColor) + } + } + fun toList(): List { + return listOf( + primaryDayModeBackgroundColor, + secondaryDayModeBackgroundColor, + primaryNightModeBackgroundColor, + secondaryNightModeBackgroundColor, + ) } + override fun equals(other: Any?): Boolean { + if (other !is NavigationHeaderStylingOptionsDto) { + return false + } + if (this === other) { + return true + } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class RouteTokenOptionsDto(val routeToken: String, val travelMode: TravelModeDto? = null) { +data class RouteTokenOptionsDto ( + val routeToken: String, + val travelMode: TravelModeDto? = null +) + { companion object { fun fromList(pigeonVar_list: List): RouteTokenOptionsDto { val routeToken = pigeonVar_list[0] as String @@ -1657,11 +1671,12 @@ data class RouteTokenOptionsDto(val routeToken: String, val travelMode: TravelMo return RouteTokenOptionsDto(routeToken, travelMode) } } - fun toList(): List { - return listOf(routeToken, travelMode) + return listOf( + routeToken, + travelMode, + ) } - override fun equals(other: Any?): Boolean { if (other !is RouteTokenOptionsDto) { return false @@ -1669,19 +1684,19 @@ data class RouteTokenOptionsDto(val routeToken: String, val travelMode: TravelMo if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) - } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class DestinationsDto( +data class DestinationsDto ( val waypoints: List, val displayOptions: NavigationDisplayOptionsDto, val routingOptions: RoutingOptionsDto? = null, - val routeTokenOptions: RouteTokenOptionsDto? = null, -) { + val routeTokenOptions: RouteTokenOptionsDto? = null +) + { companion object { fun fromList(pigeonVar_list: List): DestinationsDto { val waypoints = pigeonVar_list[0] as List @@ -1691,11 +1706,14 @@ data class DestinationsDto( return DestinationsDto(waypoints, displayOptions, routingOptions, routeTokenOptions) } } - fun toList(): List { - return listOf(waypoints, displayOptions, routingOptions, routeTokenOptions) + return listOf( + waypoints, + displayOptions, + routingOptions, + routeTokenOptions, + ) } - override fun equals(other: Any?): Boolean { if (other !is DestinationsDto) { return false @@ -1703,14 +1721,13 @@ data class DestinationsDto( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) - } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class RoutingOptionsDto( +data class RoutingOptionsDto ( val alternateRoutesStrategy: AlternateRoutesStrategyDto? = null, val routingStrategy: RoutingStrategyDto? = null, val targetDistanceMeters: List? = null, @@ -1718,8 +1735,9 @@ data class RoutingOptionsDto( val avoidTolls: Boolean? = null, val avoidFerries: Boolean? = null, val avoidHighways: Boolean? = null, - val locationTimeoutMs: Long? = null, -) { + val locationTimeoutMs: Long? = null +) + { companion object { fun fromList(pigeonVar_list: List): RoutingOptionsDto { val alternateRoutesStrategy = pigeonVar_list[0] as AlternateRoutesStrategyDto? @@ -1730,19 +1748,9 @@ data class RoutingOptionsDto( val avoidFerries = pigeonVar_list[5] as Boolean? val avoidHighways = pigeonVar_list[6] as Boolean? val locationTimeoutMs = pigeonVar_list[7] as Long? - return RoutingOptionsDto( - alternateRoutesStrategy, - routingStrategy, - targetDistanceMeters, - travelMode, - avoidTolls, - avoidFerries, - avoidHighways, - locationTimeoutMs, - ) + return RoutingOptionsDto(alternateRoutesStrategy, routingStrategy, targetDistanceMeters, travelMode, avoidTolls, avoidFerries, avoidHighways, locationTimeoutMs) } } - fun toList(): List { return listOf( alternateRoutesStrategy, @@ -1755,7 +1763,6 @@ data class RoutingOptionsDto( locationTimeoutMs, ) } - override fun equals(other: Any?): Boolean { if (other !is RoutingOptionsDto) { return false @@ -1763,20 +1770,20 @@ data class RoutingOptionsDto( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) - } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class NavigationDisplayOptionsDto( +data class NavigationDisplayOptionsDto ( val showDestinationMarkers: Boolean? = null, /** Deprecated: This option now defaults to true. */ val showStopSigns: Boolean? = null, /** Deprecated: This option now defaults to true. */ - val showTrafficLights: Boolean? = null, -) { + val showTrafficLights: Boolean? = null +) + { companion object { fun fromList(pigeonVar_list: List): NavigationDisplayOptionsDto { val showDestinationMarkers = pigeonVar_list[0] as Boolean? @@ -1785,11 +1792,13 @@ data class NavigationDisplayOptionsDto( return NavigationDisplayOptionsDto(showDestinationMarkers, showStopSigns, showTrafficLights) } } - fun toList(): List { - return listOf(showDestinationMarkers, showStopSigns, showTrafficLights) + return listOf( + showDestinationMarkers, + showStopSigns, + showTrafficLights, + ) } - override fun equals(other: Any?): Boolean { if (other !is NavigationDisplayOptionsDto) { return false @@ -1797,20 +1806,20 @@ data class NavigationDisplayOptionsDto( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) - } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class NavigationWaypointDto( +data class NavigationWaypointDto ( val title: String, val target: LatLngDto? = null, val placeID: String? = null, val preferSameSideOfRoad: Boolean? = null, - val preferredSegmentHeading: Long? = null, -) { + val preferredSegmentHeading: Long? = null +) + { companion object { fun fromList(pigeonVar_list: List): NavigationWaypointDto { val title = pigeonVar_list[0] as String @@ -1818,20 +1827,18 @@ data class NavigationWaypointDto( val placeID = pigeonVar_list[2] as String? val preferSameSideOfRoad = pigeonVar_list[3] as Boolean? val preferredSegmentHeading = pigeonVar_list[4] as Long? - return NavigationWaypointDto( - title, - target, - placeID, - preferSameSideOfRoad, - preferredSegmentHeading, - ) + return NavigationWaypointDto(title, target, placeID, preferSameSideOfRoad, preferredSegmentHeading) } } - fun toList(): List { - return listOf(title, target, placeID, preferSameSideOfRoad, preferredSegmentHeading) + return listOf( + title, + target, + placeID, + preferSameSideOfRoad, + preferredSegmentHeading, + ) } - override fun equals(other: Any?): Boolean { if (other !is NavigationWaypointDto) { return false @@ -1839,17 +1846,17 @@ data class NavigationWaypointDto( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) - } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class ContinueToNextDestinationResponseDto( +data class ContinueToNextDestinationResponseDto ( val waypoint: NavigationWaypointDto? = null, - val routeStatus: RouteStatusDto? = null, -) { + val routeStatus: RouteStatusDto? = null +) + { companion object { fun fromList(pigeonVar_list: List): ContinueToNextDestinationResponseDto { val waypoint = pigeonVar_list[0] as NavigationWaypointDto? @@ -1857,11 +1864,12 @@ data class ContinueToNextDestinationResponseDto( return ContinueToNextDestinationResponseDto(waypoint, routeStatus) } } - fun toList(): List { - return listOf(waypoint, routeStatus) + return listOf( + waypoint, + routeStatus, + ) } - override fun equals(other: Any?): Boolean { if (other !is ContinueToNextDestinationResponseDto) { return false @@ -1869,18 +1877,18 @@ data class ContinueToNextDestinationResponseDto( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) - } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class NavigationTimeAndDistanceDto( +data class NavigationTimeAndDistanceDto ( val time: Double, val distance: Double, - val delaySeverity: TrafficDelaySeverityDto, -) { + val delaySeverity: TrafficDelaySeverityDto +) + { companion object { fun fromList(pigeonVar_list: List): NavigationTimeAndDistanceDto { val time = pigeonVar_list[0] as Double @@ -1889,11 +1897,13 @@ data class NavigationTimeAndDistanceDto( return NavigationTimeAndDistanceDto(time, distance, delaySeverity) } } - fun toList(): List { - return listOf(time, distance, delaySeverity) + return listOf( + time, + distance, + delaySeverity, + ) } - override fun equals(other: Any?): Boolean { if (other !is NavigationTimeAndDistanceDto) { return false @@ -1901,35 +1911,33 @@ data class NavigationTimeAndDistanceDto( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) - } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class NavigationAudioGuidanceSettingsDto( +data class NavigationAudioGuidanceSettingsDto ( val isBluetoothAudioEnabled: Boolean? = null, val isVibrationEnabled: Boolean? = null, - val guidanceType: AudioGuidanceTypeDto? = null, -) { + val guidanceType: AudioGuidanceTypeDto? = null +) + { companion object { fun fromList(pigeonVar_list: List): NavigationAudioGuidanceSettingsDto { val isBluetoothAudioEnabled = pigeonVar_list[0] as Boolean? val isVibrationEnabled = pigeonVar_list[1] as Boolean? val guidanceType = pigeonVar_list[2] as AudioGuidanceTypeDto? - return NavigationAudioGuidanceSettingsDto( - isBluetoothAudioEnabled, - isVibrationEnabled, - guidanceType, - ) + return NavigationAudioGuidanceSettingsDto(isBluetoothAudioEnabled, isVibrationEnabled, guidanceType) } } - fun toList(): List { - return listOf(isBluetoothAudioEnabled, isVibrationEnabled, guidanceType) + return listOf( + isBluetoothAudioEnabled, + isVibrationEnabled, + guidanceType, + ) } - override fun equals(other: Any?): Boolean { if (other !is NavigationAudioGuidanceSettingsDto) { return false @@ -1937,25 +1945,27 @@ data class NavigationAudioGuidanceSettingsDto( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) - } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class SimulationOptionsDto(val speedMultiplier: Double) { +data class SimulationOptionsDto ( + val speedMultiplier: Double +) + { companion object { fun fromList(pigeonVar_list: List): SimulationOptionsDto { val speedMultiplier = pigeonVar_list[0] as Double return SimulationOptionsDto(speedMultiplier) } } - fun toList(): List { - return listOf(speedMultiplier) + return listOf( + speedMultiplier, + ) } - override fun equals(other: Any?): Boolean { if (other !is SimulationOptionsDto) { return false @@ -1963,14 +1973,17 @@ data class SimulationOptionsDto(val speedMultiplier: Double) { if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) - } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class LatLngDto(val latitude: Double, val longitude: Double) { +data class LatLngDto ( + val latitude: Double, + val longitude: Double +) + { companion object { fun fromList(pigeonVar_list: List): LatLngDto { val latitude = pigeonVar_list[0] as Double @@ -1978,11 +1991,12 @@ data class LatLngDto(val latitude: Double, val longitude: Double) { return LatLngDto(latitude, longitude) } } - fun toList(): List { - return listOf(latitude, longitude) + return listOf( + latitude, + longitude, + ) } - override fun equals(other: Any?): Boolean { if (other !is LatLngDto) { return false @@ -1990,14 +2004,17 @@ data class LatLngDto(val latitude: Double, val longitude: Double) { if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) - } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class LatLngBoundsDto(val southwest: LatLngDto, val northeast: LatLngDto) { +data class LatLngBoundsDto ( + val southwest: LatLngDto, + val northeast: LatLngDto +) + { companion object { fun fromList(pigeonVar_list: List): LatLngBoundsDto { val southwest = pigeonVar_list[0] as LatLngDto @@ -2005,11 +2022,12 @@ data class LatLngBoundsDto(val southwest: LatLngDto, val northeast: LatLngDto) { return LatLngBoundsDto(southwest, northeast) } } - fun toList(): List { - return listOf(southwest, northeast) + return listOf( + southwest, + northeast, + ) } - override fun equals(other: Any?): Boolean { if (other !is LatLngBoundsDto) { return false @@ -2017,17 +2035,17 @@ data class LatLngBoundsDto(val southwest: LatLngDto, val northeast: LatLngDto) { if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) - } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class SpeedingUpdatedEventDto( +data class SpeedingUpdatedEventDto ( val percentageAboveLimit: Double, - val severity: SpeedAlertSeverityDto, -) { + val severity: SpeedAlertSeverityDto +) + { companion object { fun fromList(pigeonVar_list: List): SpeedingUpdatedEventDto { val percentageAboveLimit = pigeonVar_list[0] as Double @@ -2035,11 +2053,12 @@ data class SpeedingUpdatedEventDto( return SpeedingUpdatedEventDto(percentageAboveLimit, severity) } } - fun toList(): List { - return listOf(percentageAboveLimit, severity) + return listOf( + percentageAboveLimit, + severity, + ) } - override fun equals(other: Any?): Boolean { if (other !is SpeedingUpdatedEventDto) { return false @@ -2047,17 +2066,17 @@ data class SpeedingUpdatedEventDto( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) - } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class GpsAvailabilityChangeEventDto( +data class GpsAvailabilityChangeEventDto ( val isGpsLost: Boolean, - val isGpsValidForNavigation: Boolean, -) { + val isGpsValidForNavigation: Boolean +) + { companion object { fun fromList(pigeonVar_list: List): GpsAvailabilityChangeEventDto { val isGpsLost = pigeonVar_list[0] as Boolean @@ -2065,11 +2084,12 @@ data class GpsAvailabilityChangeEventDto( return GpsAvailabilityChangeEventDto(isGpsLost, isGpsValidForNavigation) } } - fun toList(): List { - return listOf(isGpsLost, isGpsValidForNavigation) + return listOf( + isGpsLost, + isGpsValidForNavigation, + ) } - override fun equals(other: Any?): Boolean { if (other !is GpsAvailabilityChangeEventDto) { return false @@ -2077,17 +2097,17 @@ data class GpsAvailabilityChangeEventDto( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) - } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class SpeedAlertOptionsThresholdPercentageDto( +data class SpeedAlertOptionsThresholdPercentageDto ( val percentage: Double, - val severity: SpeedAlertSeverityDto, -) { + val severity: SpeedAlertSeverityDto +) + { companion object { fun fromList(pigeonVar_list: List): SpeedAlertOptionsThresholdPercentageDto { val percentage = pigeonVar_list[0] as Double @@ -2095,11 +2115,12 @@ data class SpeedAlertOptionsThresholdPercentageDto( return SpeedAlertOptionsThresholdPercentageDto(percentage, severity) } } - fun toList(): List { - return listOf(percentage, severity) + return listOf( + percentage, + severity, + ) } - override fun equals(other: Any?): Boolean { if (other !is SpeedAlertOptionsThresholdPercentageDto) { return false @@ -2107,31 +2128,26 @@ data class SpeedAlertOptionsThresholdPercentageDto( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) - } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class SpeedAlertOptionsDto( +data class SpeedAlertOptionsDto ( val severityUpgradeDurationSeconds: Double, val minorSpeedAlertThresholdPercentage: Double, - val majorSpeedAlertThresholdPercentage: Double, -) { + val majorSpeedAlertThresholdPercentage: Double +) + { companion object { fun fromList(pigeonVar_list: List): SpeedAlertOptionsDto { val severityUpgradeDurationSeconds = pigeonVar_list[0] as Double val minorSpeedAlertThresholdPercentage = pigeonVar_list[1] as Double val majorSpeedAlertThresholdPercentage = pigeonVar_list[2] as Double - return SpeedAlertOptionsDto( - severityUpgradeDurationSeconds, - minorSpeedAlertThresholdPercentage, - majorSpeedAlertThresholdPercentage, - ) + return SpeedAlertOptionsDto(severityUpgradeDurationSeconds, minorSpeedAlertThresholdPercentage, majorSpeedAlertThresholdPercentage) } } - fun toList(): List { return listOf( severityUpgradeDurationSeconds, @@ -2139,7 +2155,6 @@ data class SpeedAlertOptionsDto( majorSpeedAlertThresholdPercentage, ) } - override fun equals(other: Any?): Boolean { if (other !is SpeedAlertOptionsDto) { return false @@ -2147,18 +2162,18 @@ data class SpeedAlertOptionsDto( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) - } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class RouteSegmentTrafficDataRoadStretchRenderingDataDto( +data class RouteSegmentTrafficDataRoadStretchRenderingDataDto ( val style: RouteSegmentTrafficDataRoadStretchRenderingDataStyleDto, val lengthMeters: Long, - val offsetMeters: Long, -) { + val offsetMeters: Long +) + { companion object { fun fromList(pigeonVar_list: List): RouteSegmentTrafficDataRoadStretchRenderingDataDto { val style = pigeonVar_list[0] as RouteSegmentTrafficDataRoadStretchRenderingDataStyleDto @@ -2167,11 +2182,13 @@ data class RouteSegmentTrafficDataRoadStretchRenderingDataDto( return RouteSegmentTrafficDataRoadStretchRenderingDataDto(style, lengthMeters, offsetMeters) } } - fun toList(): List { - return listOf(style, lengthMeters, offsetMeters) + return listOf( + style, + lengthMeters, + offsetMeters, + ) } - override fun equals(other: Any?): Boolean { if (other !is RouteSegmentTrafficDataRoadStretchRenderingDataDto) { return false @@ -2179,30 +2196,30 @@ data class RouteSegmentTrafficDataRoadStretchRenderingDataDto( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) - } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class RouteSegmentTrafficDataDto( +data class RouteSegmentTrafficDataDto ( val status: RouteSegmentTrafficDataStatusDto, - val roadStretchRenderingDataList: List, -) { + val roadStretchRenderingDataList: List +) + { companion object { fun fromList(pigeonVar_list: List): RouteSegmentTrafficDataDto { val status = pigeonVar_list[0] as RouteSegmentTrafficDataStatusDto - val roadStretchRenderingDataList = - pigeonVar_list[1] as List + val roadStretchRenderingDataList = pigeonVar_list[1] as List return RouteSegmentTrafficDataDto(status, roadStretchRenderingDataList) } } - fun toList(): List { - return listOf(status, roadStretchRenderingDataList) + return listOf( + status, + roadStretchRenderingDataList, + ) } - override fun equals(other: Any?): Boolean { if (other !is RouteSegmentTrafficDataDto) { return false @@ -2210,19 +2227,19 @@ data class RouteSegmentTrafficDataDto( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) - } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class RouteSegmentDto( +data class RouteSegmentDto ( val trafficData: RouteSegmentTrafficDataDto? = null, val destinationLatLng: LatLngDto, val latLngs: List? = null, - val destinationWaypoint: NavigationWaypointDto? = null, -) { + val destinationWaypoint: NavigationWaypointDto? = null +) + { companion object { fun fromList(pigeonVar_list: List): RouteSegmentDto { val trafficData = pigeonVar_list[0] as RouteSegmentTrafficDataDto? @@ -2232,11 +2249,14 @@ data class RouteSegmentDto( return RouteSegmentDto(trafficData, destinationLatLng, latLngs, destinationWaypoint) } } - fun toList(): List { - return listOf(trafficData, destinationLatLng, latLngs, destinationWaypoint) + return listOf( + trafficData, + destinationLatLng, + latLngs, + destinationWaypoint, + ) } - override fun equals(other: Any?): Boolean { if (other !is RouteSegmentDto) { return false @@ -2244,24 +2264,23 @@ data class RouteSegmentDto( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) - } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } override fun hashCode(): Int = toList().hashCode() } /** - * One of the possible directions from a lane at the end of a route step, and whether it is on the - * recommended route. + * One of the possible directions from a lane at the end of a route step, and whether it is on the recommended route. * * Generated class from Pigeon that represents data sent in messages. */ -data class LaneDirectionDto( +data class LaneDirectionDto ( /** Shape for this lane direction. */ val laneShape: LaneShapeDto, /** Whether this lane is recommended. */ - val isRecommended: Boolean, -) { + val isRecommended: Boolean +) + { companion object { fun fromList(pigeonVar_list: List): LaneDirectionDto { val laneShape = pigeonVar_list[0] as LaneShapeDto @@ -2269,11 +2288,12 @@ data class LaneDirectionDto( return LaneDirectionDto(laneShape, isRecommended) } } - fun toList(): List { - return listOf(laneShape, isRecommended) + return listOf( + laneShape, + isRecommended, + ) } - override fun equals(other: Any?): Boolean { if (other !is LaneDirectionDto) { return false @@ -2281,8 +2301,7 @@ data class LaneDirectionDto( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) - } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } override fun hashCode(): Int = toList().hashCode() } @@ -2292,24 +2311,22 @@ data class LaneDirectionDto( * * Generated class from Pigeon that represents data sent in messages. */ -data class LaneDto( - /** - * List of possible directions a driver can follow when using this lane at the end of the - * respective route step - */ +data class LaneDto ( + /** List of possible directions a driver can follow when using this lane at the end of the respective route step */ val laneDirections: List -) { +) + { companion object { fun fromList(pigeonVar_list: List): LaneDto { val laneDirections = pigeonVar_list[0] as List return LaneDto(laneDirections) } } - fun toList(): List { - return listOf(laneDirections) + return listOf( + laneDirections, + ) } - override fun equals(other: Any?): Boolean { if (other !is LaneDto) { return false @@ -2317,8 +2334,7 @@ data class LaneDto( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) - } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } override fun hashCode(): Int = toList().hashCode() } @@ -2328,7 +2344,7 @@ data class LaneDto( * * Generated class from Pigeon that represents data sent in messages. */ -data class StepInfoDto( +data class StepInfoDto ( /** Distance in meters from the previous step to this step if available, otherwise null. */ val distanceFromPrevStepMeters: Long? = null, /** Time in seconds from the previous step to this step if available, otherwise null. */ @@ -2344,8 +2360,8 @@ data class StepInfoDto( /** The simplified version of the road name if available, otherwise null. */ val simpleRoadName: String? = null, /** - * The counted number of the exit to take relative to the location where the roundabout was - * entered if available, otherwise null. + * The counted number of the exit to take relative to the location where the + * roundabout was entered if available, otherwise null. */ val roundaboutTurnNumber: Long? = null, /** The list of available lanes at the end of this route step if available, otherwise null. */ @@ -2355,17 +2371,17 @@ data class StepInfoDto( /** The index of the step in the list of all steps in the route if available, otherwise null. */ val stepNumber: Long? = null, /** - * Image descriptor for the generated maneuver image for the current step if available, otherwise - * null. This image is generated only if step image generation option includes maneuver images. + * Image descriptor for the generated maneuver image for the current step if available, otherwise null. + * This image is generated only if step image generation option includes maneuver images. */ val maneuverImage: ImageDescriptorDto? = null, /** - * Image descriptor for the generated lane guidance image for the current step if available, - * otherwise null. This image is generated only if step image generation option includes lane - * images. + * Image descriptor for the generated lane guidance image for the current step if available, otherwise null. + * This image is generated only if step image generation option includes lane images. */ - val lanesImage: ImageDescriptorDto? = null, -) { + val lanesImage: ImageDescriptorDto? = null +) + { companion object { fun fromList(pigeonVar_list: List): StepInfoDto { val distanceFromPrevStepMeters = pigeonVar_list[0] as Long? @@ -2381,24 +2397,9 @@ data class StepInfoDto( val stepNumber = pigeonVar_list[10] as Long? val maneuverImage = pigeonVar_list[11] as ImageDescriptorDto? val lanesImage = pigeonVar_list[12] as ImageDescriptorDto? - return StepInfoDto( - distanceFromPrevStepMeters, - timeFromPrevStepSeconds, - drivingSide, - exitNumber, - fullInstructions, - fullRoadName, - simpleRoadName, - roundaboutTurnNumber, - lanes, - maneuver, - stepNumber, - maneuverImage, - lanesImage, - ) + return StepInfoDto(distanceFromPrevStepMeters, timeFromPrevStepSeconds, drivingSide, exitNumber, fullInstructions, fullRoadName, simpleRoadName, roundaboutTurnNumber, lanes, maneuver, stepNumber, maneuverImage, lanesImage) } } - fun toList(): List { return listOf( distanceFromPrevStepMeters, @@ -2416,7 +2417,6 @@ data class StepInfoDto( lanesImage, ) } - override fun equals(other: Any?): Boolean { if (other !is StepInfoDto) { return false @@ -2424,19 +2424,18 @@ data class StepInfoDto( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) - } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } override fun hashCode(): Int = toList().hashCode() } /** - * Contains information about the state of navigation, the current nav step if available, and - * remaining steps if available. + * Contains information about the state of navigation, the current nav step if + * available, and remaining steps if available. * * Generated class from Pigeon that represents data sent in messages. */ -data class NavInfoDto( +data class NavInfoDto ( /** The current state of navigation. */ val navState: NavStateDto, /** Information about the upcoming maneuver step. */ @@ -2445,11 +2444,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, /** @@ -2458,11 +2460,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, /** @@ -2470,8 +2475,9 @@ data class NavInfoDto( * * Android only. */ - val timeToNextDestinationSeconds: Long? = null, -) { + val timeToNextDestinationSeconds: Long? = null +) + { companion object { fun fromList(pigeonVar_list: List): NavInfoDto { val navState = pigeonVar_list[0] as NavStateDto @@ -2484,21 +2490,9 @@ data class NavInfoDto( val timeToCurrentStepSeconds = pigeonVar_list[7] as Long? val timeToFinalDestinationSeconds = pigeonVar_list[8] as Long? val timeToNextDestinationSeconds = pigeonVar_list[9] as Long? - return NavInfoDto( - navState, - currentStep, - remainingSteps, - routeChanged, - distanceToCurrentStepMeters, - distanceToFinalDestinationMeters, - distanceToNextDestinationMeters, - timeToCurrentStepSeconds, - timeToFinalDestinationSeconds, - timeToNextDestinationSeconds, - ) + return NavInfoDto(navState, currentStep, remainingSteps, routeChanged, distanceToCurrentStepMeters, distanceToFinalDestinationMeters, distanceToNextDestinationMeters, timeToCurrentStepSeconds, timeToFinalDestinationSeconds, timeToNextDestinationSeconds) } } - fun toList(): List { return listOf( navState, @@ -2513,7 +2507,6 @@ data class NavInfoDto( timeToNextDestinationSeconds, ) } - override fun equals(other: Any?): Boolean { if (other !is NavInfoDto) { return false @@ -2521,8 +2514,7 @@ data class NavInfoDto( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) - } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } override fun hashCode(): Int = toList().hashCode() } @@ -2530,12 +2522,12 @@ data class NavInfoDto( /** * UI customization parameters for the Terms and Conditions dialog. * - * All color values are 32-bit ARGB integers (format: 0xAARRGGBB). All parameters are optional - if - * not provided, platform defaults will be used. + * All color values are 32-bit ARGB integers (format: 0xAARRGGBB). + * All parameters are optional - if not provided, platform defaults will be used. * * Generated class from Pigeon that represents data sent in messages. */ -data class TermsAndConditionsUIParamsDto( +data class TermsAndConditionsUIParamsDto ( /** Background color of the dialog box. */ val backgroundColor: Long? = null, /** Text color for the dialog title. */ @@ -2545,8 +2537,9 @@ data class TermsAndConditionsUIParamsDto( /** Text color for the accept button. */ val acceptButtonTextColor: Long? = null, /** Text color for the cancel button. */ - val cancelButtonTextColor: Long? = null, -) { + val cancelButtonTextColor: Long? = null +) + { companion object { fun fromList(pigeonVar_list: List): TermsAndConditionsUIParamsDto { val backgroundColor = pigeonVar_list[0] as Long? @@ -2554,16 +2547,9 @@ data class TermsAndConditionsUIParamsDto( val mainTextColor = pigeonVar_list[2] as Long? val acceptButtonTextColor = pigeonVar_list[3] as Long? val cancelButtonTextColor = pigeonVar_list[4] as Long? - return TermsAndConditionsUIParamsDto( - backgroundColor, - titleColor, - mainTextColor, - acceptButtonTextColor, - cancelButtonTextColor, - ) + return TermsAndConditionsUIParamsDto(backgroundColor, titleColor, mainTextColor, acceptButtonTextColor, cancelButtonTextColor) } } - fun toList(): List { return listOf( backgroundColor, @@ -2573,7 +2559,6 @@ data class TermsAndConditionsUIParamsDto( cancelButtonTextColor, ) } - override fun equals(other: Any?): Boolean { if (other !is TermsAndConditionsUIParamsDto) { return false @@ -2581,8 +2566,7 @@ data class TermsAndConditionsUIParamsDto( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) - } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } override fun hashCode(): Int = toList().hashCode() } @@ -2592,14 +2576,19 @@ data class TermsAndConditionsUIParamsDto( * * Generated class from Pigeon that represents data sent in messages. */ -data class StepImageGenerationOptionsDto( +data class StepImageGenerationOptionsDto ( /** - * Whether to generate maneuver images for navigation steps. Defaults to false if not specified. + * Whether to generate maneuver images for navigation steps. + * Defaults to false if not specified. */ val generateManeuverImages: Boolean? = null, - /** Whether to generate lane images for navigation steps. Defaults to false if not specified. */ - val generateLaneImages: Boolean? = null, -) { + /** + * Whether to generate lane images for navigation steps. + * Defaults to false if not specified. + */ + val generateLaneImages: Boolean? = null +) + { companion object { fun fromList(pigeonVar_list: List): StepImageGenerationOptionsDto { val generateManeuverImages = pigeonVar_list[0] as Boolean? @@ -2607,11 +2596,12 @@ data class StepImageGenerationOptionsDto( return StepImageGenerationOptionsDto(generateManeuverImages, generateLaneImages) } } - fun toList(): List { - return listOf(generateManeuverImages, generateLaneImages) + return listOf( + generateManeuverImages, + generateLaneImages, + ) } - override fun equals(other: Any?): Boolean { if (other !is StepImageGenerationOptionsDto) { return false @@ -2619,17 +2609,17 @@ data class StepImageGenerationOptionsDto( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) - } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } override fun hashCode(): Int = toList().hashCode() } - private open class messagesPigeonCodec : StandardMessageCodec() { override fun readValueOfType(type: Byte, buffer: ByteBuffer): Any? { return when (type) { 129.toByte() -> { - return (readValue(buffer) as Long?)?.let { MapViewTypeDto.ofRaw(it.toInt()) } + return (readValue(buffer) as Long?)?.let { + MapViewTypeDto.ofRaw(it.toInt()) + } } 130.toByte() -> { return (readValue(buffer) as Long?)?.let { @@ -2637,55 +2627,89 @@ private open class messagesPigeonCodec : StandardMessageCodec() { } } 131.toByte() -> { - return (readValue(buffer) as Long?)?.let { MapTypeDto.ofRaw(it.toInt()) } + return (readValue(buffer) as Long?)?.let { + MapTypeDto.ofRaw(it.toInt()) + } } 132.toByte() -> { - return (readValue(buffer) as Long?)?.let { MapColorSchemeDto.ofRaw(it.toInt()) } + return (readValue(buffer) as Long?)?.let { + MapColorSchemeDto.ofRaw(it.toInt()) + } } 133.toByte() -> { - return (readValue(buffer) as Long?)?.let { NavigationForceNightModeDto.ofRaw(it.toInt()) } + return (readValue(buffer) as Long?)?.let { + NavigationForceNightModeDto.ofRaw(it.toInt()) + } } 134.toByte() -> { - return (readValue(buffer) as Long?)?.let { CameraPerspectiveDto.ofRaw(it.toInt()) } + return (readValue(buffer) as Long?)?.let { + CameraPerspectiveDto.ofRaw(it.toInt()) + } } 135.toByte() -> { - return (readValue(buffer) as Long?)?.let { RegisteredImageTypeDto.ofRaw(it.toInt()) } + return (readValue(buffer) as Long?)?.let { + RegisteredImageTypeDto.ofRaw(it.toInt()) + } } 136.toByte() -> { - return (readValue(buffer) as Long?)?.let { MarkerEventTypeDto.ofRaw(it.toInt()) } + return (readValue(buffer) as Long?)?.let { + MarkerEventTypeDto.ofRaw(it.toInt()) + } } 137.toByte() -> { - return (readValue(buffer) as Long?)?.let { MarkerDragEventTypeDto.ofRaw(it.toInt()) } + return (readValue(buffer) as Long?)?.let { + MarkerDragEventTypeDto.ofRaw(it.toInt()) + } } 138.toByte() -> { - return (readValue(buffer) as Long?)?.let { StrokeJointTypeDto.ofRaw(it.toInt()) } + return (readValue(buffer) as Long?)?.let { + StrokeJointTypeDto.ofRaw(it.toInt()) + } } 139.toByte() -> { - return (readValue(buffer) as Long?)?.let { PatternTypeDto.ofRaw(it.toInt()) } + return (readValue(buffer) as Long?)?.let { + PatternTypeDto.ofRaw(it.toInt()) + } } 140.toByte() -> { - return (readValue(buffer) as Long?)?.let { CameraEventTypeDto.ofRaw(it.toInt()) } + return (readValue(buffer) as Long?)?.let { + CameraEventTypeDto.ofRaw(it.toInt()) + } } 141.toByte() -> { - return (readValue(buffer) as Long?)?.let { AlternateRoutesStrategyDto.ofRaw(it.toInt()) } + return (readValue(buffer) as Long?)?.let { + AlternateRoutesStrategyDto.ofRaw(it.toInt()) + } } 142.toByte() -> { - return (readValue(buffer) as Long?)?.let { RoutingStrategyDto.ofRaw(it.toInt()) } + return (readValue(buffer) as Long?)?.let { + RoutingStrategyDto.ofRaw(it.toInt()) + } } 143.toByte() -> { - return (readValue(buffer) as Long?)?.let { TravelModeDto.ofRaw(it.toInt()) } + return (readValue(buffer) as Long?)?.let { + TravelModeDto.ofRaw(it.toInt()) + } } 144.toByte() -> { - return (readValue(buffer) as Long?)?.let { RouteStatusDto.ofRaw(it.toInt()) } + return (readValue(buffer) as Long?)?.let { + RouteStatusDto.ofRaw(it.toInt()) + } } 145.toByte() -> { - return (readValue(buffer) as Long?)?.let { TrafficDelaySeverityDto.ofRaw(it.toInt()) } + return (readValue(buffer) as Long?)?.let { + TrafficDelaySeverityDto.ofRaw(it.toInt()) + } } 146.toByte() -> { - return (readValue(buffer) as Long?)?.let { AudioGuidanceTypeDto.ofRaw(it.toInt()) } + return (readValue(buffer) as Long?)?.let { + AudioGuidanceTypeDto.ofRaw(it.toInt()) + } } 147.toByte() -> { - return (readValue(buffer) as Long?)?.let { SpeedAlertSeverityDto.ofRaw(it.toInt()) } + return (readValue(buffer) as Long?)?.let { + SpeedAlertSeverityDto.ofRaw(it.toInt()) + } } 148.toByte() -> { return (readValue(buffer) as Long?)?.let { @@ -2698,174 +2722,271 @@ private open class messagesPigeonCodec : StandardMessageCodec() { } } 150.toByte() -> { - return (readValue(buffer) as Long?)?.let { ManeuverDto.ofRaw(it.toInt()) } + return (readValue(buffer) as Long?)?.let { + ManeuverDto.ofRaw(it.toInt()) + } } 151.toByte() -> { - return (readValue(buffer) as Long?)?.let { DrivingSideDto.ofRaw(it.toInt()) } + return (readValue(buffer) as Long?)?.let { + DrivingSideDto.ofRaw(it.toInt()) + } } 152.toByte() -> { - return (readValue(buffer) as Long?)?.let { NavStateDto.ofRaw(it.toInt()) } + return (readValue(buffer) as Long?)?.let { + NavStateDto.ofRaw(it.toInt()) + } } 153.toByte() -> { - return (readValue(buffer) as Long?)?.let { LaneShapeDto.ofRaw(it.toInt()) } + return (readValue(buffer) as Long?)?.let { + LaneShapeDto.ofRaw(it.toInt()) + } } 154.toByte() -> { - return (readValue(buffer) as Long?)?.let { TaskRemovedBehaviorDto.ofRaw(it.toInt()) } + return (readValue(buffer) as Long?)?.let { + TaskRemovedBehaviorDto.ofRaw(it.toInt()) + } } 155.toByte() -> { - return (readValue(buffer) as? List)?.let { AutoMapOptionsDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + AutoMapOptionsDto.fromList(it) + } } 156.toByte() -> { - return (readValue(buffer) as? List)?.let { MapOptionsDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + MapOptionsDto.fromList(it) + } } 157.toByte() -> { - return (readValue(buffer) as? List)?.let { NavigationViewOptionsDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + NavigationViewOptionsDto.fromList(it) + } } 158.toByte() -> { - return (readValue(buffer) as? List)?.let { ViewCreationOptionsDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + ViewCreationOptionsDto.fromList(it) + } } 159.toByte() -> { - return (readValue(buffer) as? List)?.let { CameraPositionDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + CameraPositionDto.fromList(it) + } } 160.toByte() -> { - return (readValue(buffer) as? List)?.let { MarkerDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + MarkerDto.fromList(it) + } } 161.toByte() -> { - return (readValue(buffer) as? List)?.let { MarkerOptionsDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + MarkerOptionsDto.fromList(it) + } } 162.toByte() -> { - return (readValue(buffer) as? List)?.let { ImageDescriptorDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + ImageDescriptorDto.fromList(it) + } } 163.toByte() -> { - return (readValue(buffer) as? List)?.let { InfoWindowDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + InfoWindowDto.fromList(it) + } } 164.toByte() -> { - return (readValue(buffer) as? List)?.let { MarkerAnchorDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + MarkerAnchorDto.fromList(it) + } } 165.toByte() -> { - return (readValue(buffer) as? List)?.let { PointOfInterestDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + PointOfInterestDto.fromList(it) + } } 166.toByte() -> { - return (readValue(buffer) as? List)?.let { IndoorLevelDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + IndoorLevelDto.fromList(it) + } } 167.toByte() -> { - return (readValue(buffer) as? List)?.let { IndoorBuildingDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + IndoorBuildingDto.fromList(it) + } } 168.toByte() -> { - return (readValue(buffer) as? List)?.let { PolygonDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + PolygonDto.fromList(it) + } } 169.toByte() -> { - return (readValue(buffer) as? List)?.let { PolygonOptionsDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + PolygonOptionsDto.fromList(it) + } } 170.toByte() -> { - return (readValue(buffer) as? List)?.let { PolygonHoleDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + PolygonHoleDto.fromList(it) + } } 171.toByte() -> { - return (readValue(buffer) as? List)?.let { StyleSpanStrokeStyleDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + StyleSpanStrokeStyleDto.fromList(it) + } } 172.toByte() -> { - return (readValue(buffer) as? List)?.let { StyleSpanDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + StyleSpanDto.fromList(it) + } } 173.toByte() -> { - return (readValue(buffer) as? List)?.let { PolylineDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + PolylineDto.fromList(it) + } } 174.toByte() -> { - return (readValue(buffer) as? List)?.let { PatternItemDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + PatternItemDto.fromList(it) + } } 175.toByte() -> { - return (readValue(buffer) as? List)?.let { PolylineOptionsDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + PolylineOptionsDto.fromList(it) + } } 176.toByte() -> { - return (readValue(buffer) as? List)?.let { CircleDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + CircleDto.fromList(it) + } } 177.toByte() -> { - return (readValue(buffer) as? List)?.let { CircleOptionsDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + CircleOptionsDto.fromList(it) + } } 178.toByte() -> { - return (readValue(buffer) as? List)?.let { MapPaddingDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + MapPaddingDto.fromList(it) + } } 179.toByte() -> { - return (readValue(buffer) as? List)?.let { RouteTokenOptionsDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + NavigationHeaderStylingOptionsDto.fromList(it) + } } 180.toByte() -> { - return (readValue(buffer) as? List)?.let { DestinationsDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + RouteTokenOptionsDto.fromList(it) + } } 181.toByte() -> { - return (readValue(buffer) as? List)?.let { RoutingOptionsDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + DestinationsDto.fromList(it) + } } 182.toByte() -> { - return (readValue(buffer) as? List)?.let { NavigationDisplayOptionsDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + RoutingOptionsDto.fromList(it) + } } 183.toByte() -> { - return (readValue(buffer) as? List)?.let { NavigationWaypointDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + NavigationDisplayOptionsDto.fromList(it) + } } 184.toByte() -> { return (readValue(buffer) as? List)?.let { - ContinueToNextDestinationResponseDto.fromList(it) + NavigationWaypointDto.fromList(it) } } 185.toByte() -> { - return (readValue(buffer) as? List)?.let { NavigationTimeAndDistanceDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + ContinueToNextDestinationResponseDto.fromList(it) + } } 186.toByte() -> { return (readValue(buffer) as? List)?.let { - NavigationAudioGuidanceSettingsDto.fromList(it) + NavigationTimeAndDistanceDto.fromList(it) } } 187.toByte() -> { - return (readValue(buffer) as? List)?.let { SimulationOptionsDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + NavigationAudioGuidanceSettingsDto.fromList(it) + } } 188.toByte() -> { - return (readValue(buffer) as? List)?.let { LatLngDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + SimulationOptionsDto.fromList(it) + } } 189.toByte() -> { - return (readValue(buffer) as? List)?.let { LatLngBoundsDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + LatLngDto.fromList(it) + } } 190.toByte() -> { - return (readValue(buffer) as? List)?.let { SpeedingUpdatedEventDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + LatLngBoundsDto.fromList(it) + } } 191.toByte() -> { return (readValue(buffer) as? List)?.let { - GpsAvailabilityChangeEventDto.fromList(it) + SpeedingUpdatedEventDto.fromList(it) } } 192.toByte() -> { return (readValue(buffer) as? List)?.let { - SpeedAlertOptionsThresholdPercentageDto.fromList(it) + GpsAvailabilityChangeEventDto.fromList(it) } } 193.toByte() -> { - return (readValue(buffer) as? List)?.let { SpeedAlertOptionsDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + SpeedAlertOptionsThresholdPercentageDto.fromList(it) + } } 194.toByte() -> { return (readValue(buffer) as? List)?.let { - RouteSegmentTrafficDataRoadStretchRenderingDataDto.fromList(it) + SpeedAlertOptionsDto.fromList(it) } } 195.toByte() -> { - return (readValue(buffer) as? List)?.let { RouteSegmentTrafficDataDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + RouteSegmentTrafficDataRoadStretchRenderingDataDto.fromList(it) + } } 196.toByte() -> { - return (readValue(buffer) as? List)?.let { RouteSegmentDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + RouteSegmentTrafficDataDto.fromList(it) + } } 197.toByte() -> { - return (readValue(buffer) as? List)?.let { LaneDirectionDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + RouteSegmentDto.fromList(it) + } } 198.toByte() -> { - return (readValue(buffer) as? List)?.let { LaneDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + LaneDirectionDto.fromList(it) + } } 199.toByte() -> { - return (readValue(buffer) as? List)?.let { StepInfoDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + LaneDto.fromList(it) + } } 200.toByte() -> { - return (readValue(buffer) as? List)?.let { NavInfoDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + StepInfoDto.fromList(it) + } } 201.toByte() -> { return (readValue(buffer) as? List)?.let { - TermsAndConditionsUIParamsDto.fromList(it) + NavInfoDto.fromList(it) } } 202.toByte() -> { + return (readValue(buffer) as? List)?.let { + TermsAndConditionsUIParamsDto.fromList(it) + } + } + 203.toByte() -> { return (readValue(buffer) as? List)?.let { StepImageGenerationOptionsDto.fromList(it) } @@ -2873,8 +2994,7 @@ private open class messagesPigeonCodec : StandardMessageCodec() { else -> super.readValueOfType(type, buffer) } } - - override fun writeValue(stream: ByteArrayOutputStream, value: Any?) { + override fun writeValue(stream: ByteArrayOutputStream, value: Any?) { when (value) { is MapViewTypeDto -> { stream.write(129) @@ -3076,111 +3196,117 @@ private open class messagesPigeonCodec : StandardMessageCodec() { stream.write(178) writeValue(stream, value.toList()) } - is RouteTokenOptionsDto -> { + is NavigationHeaderStylingOptionsDto -> { stream.write(179) writeValue(stream, value.toList()) } - is DestinationsDto -> { + is RouteTokenOptionsDto -> { stream.write(180) writeValue(stream, value.toList()) } - is RoutingOptionsDto -> { + is DestinationsDto -> { stream.write(181) writeValue(stream, value.toList()) } - is NavigationDisplayOptionsDto -> { + is RoutingOptionsDto -> { stream.write(182) writeValue(stream, value.toList()) } - is NavigationWaypointDto -> { + is NavigationDisplayOptionsDto -> { stream.write(183) writeValue(stream, value.toList()) } - is ContinueToNextDestinationResponseDto -> { + is NavigationWaypointDto -> { stream.write(184) writeValue(stream, value.toList()) } - is NavigationTimeAndDistanceDto -> { + is ContinueToNextDestinationResponseDto -> { stream.write(185) writeValue(stream, value.toList()) } - is NavigationAudioGuidanceSettingsDto -> { + is NavigationTimeAndDistanceDto -> { stream.write(186) writeValue(stream, value.toList()) } - is SimulationOptionsDto -> { + is NavigationAudioGuidanceSettingsDto -> { stream.write(187) writeValue(stream, value.toList()) } - is LatLngDto -> { + is SimulationOptionsDto -> { stream.write(188) writeValue(stream, value.toList()) } - is LatLngBoundsDto -> { + is LatLngDto -> { stream.write(189) writeValue(stream, value.toList()) } - is SpeedingUpdatedEventDto -> { + is LatLngBoundsDto -> { stream.write(190) writeValue(stream, value.toList()) } - is GpsAvailabilityChangeEventDto -> { + is SpeedingUpdatedEventDto -> { stream.write(191) writeValue(stream, value.toList()) } - is SpeedAlertOptionsThresholdPercentageDto -> { + is GpsAvailabilityChangeEventDto -> { stream.write(192) writeValue(stream, value.toList()) } - is SpeedAlertOptionsDto -> { + is SpeedAlertOptionsThresholdPercentageDto -> { stream.write(193) writeValue(stream, value.toList()) } - is RouteSegmentTrafficDataRoadStretchRenderingDataDto -> { + is SpeedAlertOptionsDto -> { stream.write(194) writeValue(stream, value.toList()) } - is RouteSegmentTrafficDataDto -> { + is RouteSegmentTrafficDataRoadStretchRenderingDataDto -> { stream.write(195) writeValue(stream, value.toList()) } - is RouteSegmentDto -> { + is RouteSegmentTrafficDataDto -> { stream.write(196) writeValue(stream, value.toList()) } - is LaneDirectionDto -> { + is RouteSegmentDto -> { stream.write(197) writeValue(stream, value.toList()) } - is LaneDto -> { + is LaneDirectionDto -> { stream.write(198) writeValue(stream, value.toList()) } - is StepInfoDto -> { + is LaneDto -> { stream.write(199) writeValue(stream, value.toList()) } - is NavInfoDto -> { + is StepInfoDto -> { stream.write(200) writeValue(stream, value.toList()) } - is TermsAndConditionsUIParamsDto -> { + is NavInfoDto -> { stream.write(201) writeValue(stream, value.toList()) } - is StepImageGenerationOptionsDto -> { + is TermsAndConditionsUIParamsDto -> { stream.write(202) writeValue(stream, value.toList()) } + is StepImageGenerationOptionsDto -> { + stream.write(203) + writeValue(stream, value.toList()) + } else -> super.writeValue(stream, value) } } } + /** - * Dummy interface to force generation of the platform view creation params. Pigeon only generates - * messages if the messages are used in API. [ViewCreationOptionsDto] is encoded and decoded - * directly to generate a PlatformView creation message. + * Dummy interface to force generation of the platform view creation params. + * Pigeon only generates messages if the messages are used in API. + * [ViewCreationOptionsDto] is encoded and decoded directly to generate a + * PlatformView creation message. * * This API should never be used directly. * @@ -3191,37 +3317,25 @@ interface ViewCreationApi { companion object { /** The codec used by ViewCreationApi. */ - val codec: MessageCodec by lazy { messagesPigeonCodec() } - - /** - * Sets up an instance of `ViewCreationApi` to handle messages through the `binaryMessenger`. - */ + val codec: MessageCodec by lazy { + messagesPigeonCodec() + } + /** Sets up an instance of `ViewCreationApi` to handle messages through the `binaryMessenger`. */ @JvmOverloads - fun setUp( - binaryMessenger: BinaryMessenger, - api: ViewCreationApi?, - messageChannelSuffix: String = "", - ) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + fun setUp(binaryMessenger: BinaryMessenger, api: ViewCreationApi?, messageChannelSuffix: String = "") { + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.ViewCreationApi.create$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.ViewCreationApi.create$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val msgArg = args[0] as ViewCreationOptionsDto - val wrapped: List = - try { - api.create(msgArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.create(msgArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -3231,293 +3345,137 @@ interface ViewCreationApi { } } } - /** Generated interface from Pigeon that represents a handler of messages from Flutter. */ interface MapViewApi { fun awaitMapReady(viewId: Long, callback: (Result) -> Unit) - fun isMyLocationEnabled(viewId: Long): Boolean - fun setMyLocationEnabled(viewId: Long, enabled: Boolean) - fun getMyLocation(viewId: Long): LatLngDto? - fun getMapType(viewId: Long): MapTypeDto - fun setMapType(viewId: Long, mapType: MapTypeDto) - fun setMapStyle(viewId: Long, styleJson: String) - fun isNavigationTripProgressBarEnabled(viewId: Long): Boolean - fun setNavigationTripProgressBarEnabled(viewId: Long, enabled: Boolean) - fun isNavigationHeaderEnabled(viewId: Long): Boolean - fun setNavigationHeaderEnabled(viewId: Long, enabled: Boolean) - + fun getNavigationHeaderStylingOptions(viewId: Long): NavigationHeaderStylingOptionsDto + fun setNavigationHeaderStylingOptions(viewId: Long, stylingOptions: NavigationHeaderStylingOptionsDto) fun isNavigationFooterEnabled(viewId: Long): Boolean - fun setNavigationFooterEnabled(viewId: Long, enabled: Boolean) - fun isRecenterButtonEnabled(viewId: Long): Boolean - fun setRecenterButtonEnabled(viewId: Long, enabled: Boolean) - fun isSpeedLimitIconEnabled(viewId: Long): Boolean - fun setSpeedLimitIconEnabled(viewId: Long, enabled: Boolean) - fun isSpeedometerEnabled(viewId: Long): Boolean - fun setSpeedometerEnabled(viewId: Long, enabled: Boolean) - fun isNavigationUIEnabled(viewId: Long): Boolean - fun setNavigationUIEnabled(viewId: Long, enabled: Boolean) - fun isMyLocationButtonEnabled(viewId: Long): Boolean - fun setMyLocationButtonEnabled(viewId: Long, enabled: Boolean) - fun isConsumeMyLocationButtonClickEventsEnabled(viewId: Long): Boolean - fun setConsumeMyLocationButtonClickEventsEnabled(viewId: Long, enabled: Boolean) - fun isZoomGesturesEnabled(viewId: Long): Boolean - fun setZoomGesturesEnabled(viewId: Long, enabled: Boolean) - fun isZoomControlsEnabled(viewId: Long): Boolean - fun setZoomControlsEnabled(viewId: Long, enabled: Boolean) - fun isCompassEnabled(viewId: Long): Boolean - fun setCompassEnabled(viewId: Long, enabled: Boolean) - fun isRotateGesturesEnabled(viewId: Long): Boolean - fun setRotateGesturesEnabled(viewId: Long, enabled: Boolean) - fun isScrollGesturesEnabled(viewId: Long): Boolean - fun setScrollGesturesEnabled(viewId: Long, enabled: Boolean) - fun isScrollGesturesEnabledDuringRotateOrZoom(viewId: Long): Boolean - fun setScrollGesturesDuringRotateOrZoomEnabled(viewId: Long, enabled: Boolean) - fun isTiltGesturesEnabled(viewId: Long): Boolean - fun setTiltGesturesEnabled(viewId: Long, enabled: Boolean) - fun isMapToolbarEnabled(viewId: Long): Boolean - fun setMapToolbarEnabled(viewId: Long, enabled: Boolean) - fun isTrafficEnabled(viewId: Long): Boolean - fun setTrafficEnabled(viewId: Long, enabled: Boolean) - fun isTrafficIncidentCardsEnabled(viewId: Long): Boolean - fun setTrafficIncidentCardsEnabled(viewId: Long, enabled: Boolean) - fun isTrafficPromptsEnabled(viewId: Long): Boolean - fun setTrafficPromptsEnabled(viewId: Long, enabled: Boolean) - fun isReportIncidentButtonEnabled(viewId: Long): Boolean - fun setReportIncidentButtonEnabled(viewId: Long, enabled: Boolean) - fun isIncidentReportingAvailable(viewId: Long): Boolean - fun showReportIncidentsPanel(viewId: Long) - fun isBuildingsEnabled(viewId: Long): Boolean - fun setBuildingsEnabled(viewId: Long, enabled: Boolean) - fun isIndoorEnabled(viewId: Long): Boolean - fun setIndoorEnabled(viewId: Long, enabled: Boolean) - fun isIndoorLevelPickerEnabled(viewId: Long): Boolean - fun setIndoorLevelPickerEnabled(viewId: Long, enabled: Boolean) - fun getFocusedIndoorBuilding(viewId: Long): IndoorBuildingDto? - /** - * Activates the indoor level at [levelIndex] within the currently focused indoor building. Throws - * if no building is focused or the index is out of range. + * Activates the indoor level at [levelIndex] within the currently focused + * indoor building. Throws if no building is focused or the index is out of + * range. */ fun activateIndoorLevel(viewId: Long, levelIndex: Long) - fun getCameraPosition(viewId: Long): CameraPositionDto - fun getVisibleRegion(viewId: Long): LatLngBoundsDto - fun followMyLocation(viewId: Long, perspective: CameraPerspectiveDto, zoomLevel: Double?) - - fun animateCameraToCameraPosition( - viewId: Long, - cameraPosition: CameraPositionDto, - duration: Long?, - callback: (Result) -> Unit, - ) - - fun animateCameraToLatLng( - viewId: Long, - point: LatLngDto, - duration: Long?, - callback: (Result) -> Unit, - ) - - fun animateCameraToLatLngBounds( - viewId: Long, - bounds: LatLngBoundsDto, - padding: Double, - duration: Long?, - callback: (Result) -> Unit, - ) - - fun animateCameraToLatLngZoom( - viewId: Long, - point: LatLngDto, - zoom: Double, - duration: Long?, - callback: (Result) -> Unit, - ) - - fun animateCameraByScroll( - viewId: Long, - scrollByDx: Double, - scrollByDy: Double, - duration: Long?, - callback: (Result) -> Unit, - ) - - fun animateCameraByZoom( - viewId: Long, - zoomBy: Double, - focusDx: Double?, - focusDy: Double?, - duration: Long?, - callback: (Result) -> Unit, - ) - - fun animateCameraToZoom( - viewId: Long, - zoom: Double, - duration: Long?, - callback: (Result) -> Unit, - ) - + fun animateCameraToCameraPosition(viewId: Long, cameraPosition: CameraPositionDto, duration: Long?, callback: (Result) -> Unit) + fun animateCameraToLatLng(viewId: Long, point: LatLngDto, duration: Long?, callback: (Result) -> Unit) + fun animateCameraToLatLngBounds(viewId: Long, bounds: LatLngBoundsDto, padding: Double, duration: Long?, callback: (Result) -> Unit) + fun animateCameraToLatLngZoom(viewId: Long, point: LatLngDto, zoom: Double, duration: Long?, callback: (Result) -> Unit) + fun animateCameraByScroll(viewId: Long, scrollByDx: Double, scrollByDy: Double, duration: Long?, callback: (Result) -> Unit) + fun animateCameraByZoom(viewId: Long, zoomBy: Double, focusDx: Double?, focusDy: Double?, duration: Long?, callback: (Result) -> Unit) + fun animateCameraToZoom(viewId: Long, zoom: Double, duration: Long?, callback: (Result) -> Unit) fun moveCameraToCameraPosition(viewId: Long, cameraPosition: CameraPositionDto) - fun moveCameraToLatLng(viewId: Long, point: LatLngDto) - fun moveCameraToLatLngBounds(viewId: Long, bounds: LatLngBoundsDto, padding: Double) - fun moveCameraToLatLngZoom(viewId: Long, point: LatLngDto, zoom: Double) - fun moveCameraByScroll(viewId: Long, scrollByDx: Double, scrollByDy: Double) - fun moveCameraByZoom(viewId: Long, zoomBy: Double, focusDx: Double?, focusDy: Double?) - fun moveCameraToZoom(viewId: Long, zoom: Double) - fun showRouteOverview(viewId: Long) - fun getMinZoomPreference(viewId: Long): Double - fun getMaxZoomPreference(viewId: Long): Double - fun resetMinMaxZoomPreference(viewId: Long) - fun setMinZoomPreference(viewId: Long, minZoomPreference: Double) - fun setMaxZoomPreference(viewId: Long, maxZoomPreference: Double) - fun getMarkers(viewId: Long): List - fun addMarkers(viewId: Long, markers: List): List - fun updateMarkers(viewId: Long, markers: List): List - fun removeMarkers(viewId: Long, markers: List) - fun clearMarkers(viewId: Long) - fun clear(viewId: Long) - fun getPolygons(viewId: Long): List - fun addPolygons(viewId: Long, polygons: List): List - fun updatePolygons(viewId: Long, polygons: List): List - fun removePolygons(viewId: Long, polygons: List) - fun clearPolygons(viewId: Long) - fun getPolylines(viewId: Long): List - fun addPolylines(viewId: Long, polylines: List): List - fun updatePolylines(viewId: Long, polylines: List): List - fun removePolylines(viewId: Long, polylines: List) - fun clearPolylines(viewId: Long) - fun getCircles(viewId: Long): List - fun addCircles(viewId: Long, circles: List): List - fun updateCircles(viewId: Long, circles: List): List - fun removeCircles(viewId: Long, circles: List) - fun clearCircles(viewId: Long) - fun enableOnCameraChangedEvents(viewId: Long) - fun setPadding(viewId: Long, padding: MapPaddingDto) - fun getPadding(viewId: Long): MapPaddingDto - fun getMapColorScheme(viewId: Long): MapColorSchemeDto - fun setMapColorScheme(viewId: Long, mapColorScheme: MapColorSchemeDto) - fun getForceNightMode(viewId: Long): NavigationForceNightModeDto - fun setForceNightMode(viewId: Long, forceNightMode: NavigationForceNightModeDto) companion object { /** The codec used by MapViewApi. */ - val codec: MessageCodec by lazy { messagesPigeonCodec() } - + val codec: MessageCodec by lazy { + messagesPigeonCodec() + } /** Sets up an instance of `MapViewApi` to handle messages through the `binaryMessenger`. */ @JvmOverloads - fun setUp( - binaryMessenger: BinaryMessenger, - api: MapViewApi?, - messageChannelSuffix: String = "", - ) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + fun setUp(binaryMessenger: BinaryMessenger, api: MapViewApi?, messageChannelSuffix: String = "") { + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.awaitMapReady$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.awaitMapReady$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -3536,22 +3494,16 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMyLocationEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMyLocationEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - listOf(api.isMyLocationEnabled(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.isMyLocationEnabled(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -3559,24 +3511,18 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMyLocationEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMyLocationEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val enabledArg = args[1] as Boolean - val wrapped: List = - try { - api.setMyLocationEnabled(viewIdArg, enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setMyLocationEnabled(viewIdArg, enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -3584,22 +3530,16 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMyLocation$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMyLocation$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - listOf(api.getMyLocation(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.getMyLocation(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -3607,22 +3547,16 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMapType$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMapType$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - listOf(api.getMapType(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.getMapType(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -3630,24 +3564,18 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapType$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapType$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val mapTypeArg = args[1] as MapTypeDto - val wrapped: List = - try { - api.setMapType(viewIdArg, mapTypeArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setMapType(viewIdArg, mapTypeArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -3655,24 +3583,18 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapStyle$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapStyle$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val styleJsonArg = args[1] as String - val wrapped: List = - try { - api.setMapStyle(viewIdArg, styleJsonArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setMapStyle(viewIdArg, styleJsonArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -3680,22 +3602,16 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationTripProgressBarEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationTripProgressBarEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - listOf(api.isNavigationTripProgressBarEnabled(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.isNavigationTripProgressBarEnabled(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -3703,24 +3619,18 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationTripProgressBarEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationTripProgressBarEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val enabledArg = args[1] as Boolean - val wrapped: List = - try { - api.setNavigationTripProgressBarEnabled(viewIdArg, enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setNavigationTripProgressBarEnabled(viewIdArg, enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -3728,22 +3638,16 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationHeaderEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationHeaderEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - listOf(api.isNavigationHeaderEnabled(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.isNavigationHeaderEnabled(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -3751,24 +3655,18 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationHeaderEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationHeaderEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val enabledArg = args[1] as Boolean - val wrapped: List = - try { - api.setNavigationHeaderEnabled(viewIdArg, enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setNavigationHeaderEnabled(viewIdArg, enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -3776,22 +3674,52 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationFooterEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getNavigationHeaderStylingOptions$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - listOf(api.isNavigationFooterEnabled(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.getNavigationHeaderStylingOptions(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } + reply.reply(wrapped) + } + } else { + channel.setMessageHandler(null) + } + } + run { + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationHeaderStylingOptions$separatedMessageChannelSuffix", codec) + if (api != null) { + channel.setMessageHandler { message, reply -> + val args = message as List + val viewIdArg = args[0] as Long + val stylingOptionsArg = args[1] as NavigationHeaderStylingOptionsDto + val wrapped: List = try { + api.setNavigationHeaderStylingOptions(viewIdArg, stylingOptionsArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } + reply.reply(wrapped) + } + } else { + channel.setMessageHandler(null) + } + } + run { + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationFooterEnabled$separatedMessageChannelSuffix", codec) + if (api != null) { + channel.setMessageHandler { message, reply -> + val args = message as List + val viewIdArg = args[0] as Long + val wrapped: List = try { + listOf(api.isNavigationFooterEnabled(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -3799,24 +3727,18 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationFooterEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationFooterEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val enabledArg = args[1] as Boolean - val wrapped: List = - try { - api.setNavigationFooterEnabled(viewIdArg, enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setNavigationFooterEnabled(viewIdArg, enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -3824,22 +3746,16 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isRecenterButtonEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isRecenterButtonEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - listOf(api.isRecenterButtonEnabled(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.isRecenterButtonEnabled(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -3847,24 +3763,18 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setRecenterButtonEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setRecenterButtonEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val enabledArg = args[1] as Boolean - val wrapped: List = - try { - api.setRecenterButtonEnabled(viewIdArg, enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setRecenterButtonEnabled(viewIdArg, enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -3872,22 +3782,16 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isSpeedLimitIconEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isSpeedLimitIconEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - listOf(api.isSpeedLimitIconEnabled(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.isSpeedLimitIconEnabled(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -3895,24 +3799,18 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setSpeedLimitIconEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setSpeedLimitIconEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val enabledArg = args[1] as Boolean - val wrapped: List = - try { - api.setSpeedLimitIconEnabled(viewIdArg, enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setSpeedLimitIconEnabled(viewIdArg, enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -3920,22 +3818,16 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isSpeedometerEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isSpeedometerEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - listOf(api.isSpeedometerEnabled(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.isSpeedometerEnabled(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -3943,24 +3835,18 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setSpeedometerEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setSpeedometerEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val enabledArg = args[1] as Boolean - val wrapped: List = - try { - api.setSpeedometerEnabled(viewIdArg, enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setSpeedometerEnabled(viewIdArg, enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -3968,22 +3854,16 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationUIEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationUIEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - listOf(api.isNavigationUIEnabled(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.isNavigationUIEnabled(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -3991,24 +3871,18 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationUIEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationUIEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val enabledArg = args[1] as Boolean - val wrapped: List = - try { - api.setNavigationUIEnabled(viewIdArg, enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setNavigationUIEnabled(viewIdArg, enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4016,22 +3890,16 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMyLocationButtonEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMyLocationButtonEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - listOf(api.isMyLocationButtonEnabled(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.isMyLocationButtonEnabled(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4039,24 +3907,18 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMyLocationButtonEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMyLocationButtonEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val enabledArg = args[1] as Boolean - val wrapped: List = - try { - api.setMyLocationButtonEnabled(viewIdArg, enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setMyLocationButtonEnabled(viewIdArg, enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4064,22 +3926,16 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isConsumeMyLocationButtonClickEventsEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isConsumeMyLocationButtonClickEventsEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - listOf(api.isConsumeMyLocationButtonClickEventsEnabled(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.isConsumeMyLocationButtonClickEventsEnabled(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4087,24 +3943,18 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setConsumeMyLocationButtonClickEventsEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setConsumeMyLocationButtonClickEventsEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val enabledArg = args[1] as Boolean - val wrapped: List = - try { - api.setConsumeMyLocationButtonClickEventsEnabled(viewIdArg, enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setConsumeMyLocationButtonClickEventsEnabled(viewIdArg, enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4112,22 +3962,16 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isZoomGesturesEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isZoomGesturesEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - listOf(api.isZoomGesturesEnabled(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.isZoomGesturesEnabled(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4135,24 +3979,18 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setZoomGesturesEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setZoomGesturesEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val enabledArg = args[1] as Boolean - val wrapped: List = - try { - api.setZoomGesturesEnabled(viewIdArg, enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setZoomGesturesEnabled(viewIdArg, enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4160,22 +3998,16 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isZoomControlsEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isZoomControlsEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - listOf(api.isZoomControlsEnabled(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.isZoomControlsEnabled(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4183,24 +4015,18 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setZoomControlsEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setZoomControlsEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val enabledArg = args[1] as Boolean - val wrapped: List = - try { - api.setZoomControlsEnabled(viewIdArg, enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setZoomControlsEnabled(viewIdArg, enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4208,22 +4034,16 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isCompassEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isCompassEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - listOf(api.isCompassEnabled(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.isCompassEnabled(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4231,24 +4051,18 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setCompassEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setCompassEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val enabledArg = args[1] as Boolean - val wrapped: List = - try { - api.setCompassEnabled(viewIdArg, enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setCompassEnabled(viewIdArg, enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4256,22 +4070,16 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isRotateGesturesEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isRotateGesturesEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - listOf(api.isRotateGesturesEnabled(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.isRotateGesturesEnabled(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4279,24 +4087,18 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setRotateGesturesEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setRotateGesturesEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val enabledArg = args[1] as Boolean - val wrapped: List = - try { - api.setRotateGesturesEnabled(viewIdArg, enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setRotateGesturesEnabled(viewIdArg, enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4304,22 +4106,16 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isScrollGesturesEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isScrollGesturesEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - listOf(api.isScrollGesturesEnabled(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.isScrollGesturesEnabled(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4327,24 +4123,18 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setScrollGesturesEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setScrollGesturesEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val enabledArg = args[1] as Boolean - val wrapped: List = - try { - api.setScrollGesturesEnabled(viewIdArg, enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setScrollGesturesEnabled(viewIdArg, enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4352,22 +4142,16 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isScrollGesturesEnabledDuringRotateOrZoom$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isScrollGesturesEnabledDuringRotateOrZoom$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - listOf(api.isScrollGesturesEnabledDuringRotateOrZoom(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.isScrollGesturesEnabledDuringRotateOrZoom(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4375,24 +4159,18 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setScrollGesturesDuringRotateOrZoomEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setScrollGesturesDuringRotateOrZoomEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val enabledArg = args[1] as Boolean - val wrapped: List = - try { - api.setScrollGesturesDuringRotateOrZoomEnabled(viewIdArg, enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setScrollGesturesDuringRotateOrZoomEnabled(viewIdArg, enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4400,22 +4178,16 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTiltGesturesEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTiltGesturesEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - listOf(api.isTiltGesturesEnabled(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.isTiltGesturesEnabled(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4423,24 +4195,18 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTiltGesturesEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTiltGesturesEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val enabledArg = args[1] as Boolean - val wrapped: List = - try { - api.setTiltGesturesEnabled(viewIdArg, enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setTiltGesturesEnabled(viewIdArg, enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4448,22 +4214,16 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMapToolbarEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMapToolbarEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - listOf(api.isMapToolbarEnabled(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.isMapToolbarEnabled(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4471,24 +4231,18 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapToolbarEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapToolbarEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val enabledArg = args[1] as Boolean - val wrapped: List = - try { - api.setMapToolbarEnabled(viewIdArg, enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setMapToolbarEnabled(viewIdArg, enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4496,22 +4250,16 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - listOf(api.isTrafficEnabled(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.isTrafficEnabled(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4519,24 +4267,18 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val enabledArg = args[1] as Boolean - val wrapped: List = - try { - api.setTrafficEnabled(viewIdArg, enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setTrafficEnabled(viewIdArg, enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4544,22 +4286,16 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficIncidentCardsEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficIncidentCardsEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - listOf(api.isTrafficIncidentCardsEnabled(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.isTrafficIncidentCardsEnabled(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4567,24 +4303,18 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficIncidentCardsEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficIncidentCardsEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val enabledArg = args[1] as Boolean - val wrapped: List = - try { - api.setTrafficIncidentCardsEnabled(viewIdArg, enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setTrafficIncidentCardsEnabled(viewIdArg, enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4592,22 +4322,16 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficPromptsEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficPromptsEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - listOf(api.isTrafficPromptsEnabled(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.isTrafficPromptsEnabled(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4615,24 +4339,18 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficPromptsEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficPromptsEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val enabledArg = args[1] as Boolean - val wrapped: List = - try { - api.setTrafficPromptsEnabled(viewIdArg, enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setTrafficPromptsEnabled(viewIdArg, enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4640,22 +4358,16 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isReportIncidentButtonEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isReportIncidentButtonEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - listOf(api.isReportIncidentButtonEnabled(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.isReportIncidentButtonEnabled(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4663,24 +4375,18 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setReportIncidentButtonEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setReportIncidentButtonEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val enabledArg = args[1] as Boolean - val wrapped: List = - try { - api.setReportIncidentButtonEnabled(viewIdArg, enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setReportIncidentButtonEnabled(viewIdArg, enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4688,22 +4394,16 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isIncidentReportingAvailable$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isIncidentReportingAvailable$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - listOf(api.isIncidentReportingAvailable(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.isIncidentReportingAvailable(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4711,23 +4411,17 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.showReportIncidentsPanel$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.showReportIncidentsPanel$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - api.showReportIncidentsPanel(viewIdArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.showReportIncidentsPanel(viewIdArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4735,22 +4429,16 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isBuildingsEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isBuildingsEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - listOf(api.isBuildingsEnabled(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.isBuildingsEnabled(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4758,24 +4446,18 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setBuildingsEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setBuildingsEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val enabledArg = args[1] as Boolean - val wrapped: List = - try { - api.setBuildingsEnabled(viewIdArg, enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setBuildingsEnabled(viewIdArg, enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4783,22 +4465,16 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isIndoorEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isIndoorEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - listOf(api.isIndoorEnabled(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.isIndoorEnabled(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4806,24 +4482,18 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setIndoorEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setIndoorEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val enabledArg = args[1] as Boolean - val wrapped: List = - try { - api.setIndoorEnabled(viewIdArg, enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setIndoorEnabled(viewIdArg, enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4831,22 +4501,16 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isIndoorLevelPickerEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isIndoorLevelPickerEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - listOf(api.isIndoorLevelPickerEnabled(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.isIndoorLevelPickerEnabled(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4854,24 +4518,18 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setIndoorLevelPickerEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setIndoorLevelPickerEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val enabledArg = args[1] as Boolean - val wrapped: List = - try { - api.setIndoorLevelPickerEnabled(viewIdArg, enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setIndoorLevelPickerEnabled(viewIdArg, enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4879,22 +4537,16 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getFocusedIndoorBuilding$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getFocusedIndoorBuilding$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - listOf(api.getFocusedIndoorBuilding(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.getFocusedIndoorBuilding(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4902,24 +4554,18 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.activateIndoorLevel$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.activateIndoorLevel$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val levelIndexArg = args[1] as Long - val wrapped: List = - try { - api.activateIndoorLevel(viewIdArg, levelIndexArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.activateIndoorLevel(viewIdArg, levelIndexArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4927,22 +4573,16 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getCameraPosition$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getCameraPosition$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - listOf(api.getCameraPosition(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.getCameraPosition(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4950,22 +4590,16 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getVisibleRegion$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getVisibleRegion$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - listOf(api.getVisibleRegion(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.getVisibleRegion(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4973,25 +4607,19 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.followMyLocation$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.followMyLocation$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val perspectiveArg = args[1] as CameraPerspectiveDto val zoomLevelArg = args[2] as Double? - val wrapped: List = - try { - api.followMyLocation(viewIdArg, perspectiveArg, zoomLevelArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.followMyLocation(viewIdArg, perspectiveArg, zoomLevelArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4999,20 +4627,14 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToCameraPosition$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToCameraPosition$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val cameraPositionArg = args[1] as CameraPositionDto val durationArg = args[2] as Long? - api.animateCameraToCameraPosition(viewIdArg, cameraPositionArg, durationArg) { - result: Result -> + api.animateCameraToCameraPosition(viewIdArg, cameraPositionArg, durationArg) { result: Result -> val error = result.exceptionOrNull() if (error != null) { reply.reply(MessagesPigeonUtils.wrapError(error)) @@ -5027,12 +4649,7 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLng$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLng$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -5054,12 +4671,7 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLngBounds$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLngBounds$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -5067,8 +4679,7 @@ interface MapViewApi { val boundsArg = args[1] as LatLngBoundsDto val paddingArg = args[2] as Double val durationArg = args[3] as Long? - api.animateCameraToLatLngBounds(viewIdArg, boundsArg, paddingArg, durationArg) { - result: Result -> + api.animateCameraToLatLngBounds(viewIdArg, boundsArg, paddingArg, durationArg) { result: Result -> val error = result.exceptionOrNull() if (error != null) { reply.reply(MessagesPigeonUtils.wrapError(error)) @@ -5083,12 +4694,7 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLngZoom$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLngZoom$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -5096,8 +4702,7 @@ interface MapViewApi { val pointArg = args[1] as LatLngDto val zoomArg = args[2] as Double val durationArg = args[3] as Long? - api.animateCameraToLatLngZoom(viewIdArg, pointArg, zoomArg, durationArg) { - result: Result -> + api.animateCameraToLatLngZoom(viewIdArg, pointArg, zoomArg, durationArg) { result: Result -> val error = result.exceptionOrNull() if (error != null) { reply.reply(MessagesPigeonUtils.wrapError(error)) @@ -5112,12 +4717,7 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraByScroll$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraByScroll$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -5125,8 +4725,7 @@ interface MapViewApi { val scrollByDxArg = args[1] as Double val scrollByDyArg = args[2] as Double val durationArg = args[3] as Long? - api.animateCameraByScroll(viewIdArg, scrollByDxArg, scrollByDyArg, durationArg) { - result: Result -> + api.animateCameraByScroll(viewIdArg, scrollByDxArg, scrollByDyArg, durationArg) { result: Result -> val error = result.exceptionOrNull() if (error != null) { reply.reply(MessagesPigeonUtils.wrapError(error)) @@ -5141,12 +4740,7 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraByZoom$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraByZoom$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -5155,8 +4749,7 @@ interface MapViewApi { val focusDxArg = args[2] as Double? val focusDyArg = args[3] as Double? val durationArg = args[4] as Long? - api.animateCameraByZoom(viewIdArg, zoomByArg, focusDxArg, focusDyArg, durationArg) { - result: Result -> + api.animateCameraByZoom(viewIdArg, zoomByArg, focusDxArg, focusDyArg, durationArg) { result: Result -> val error = result.exceptionOrNull() if (error != null) { reply.reply(MessagesPigeonUtils.wrapError(error)) @@ -5171,12 +4764,7 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToZoom$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToZoom$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -5198,24 +4786,18 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToCameraPosition$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToCameraPosition$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val cameraPositionArg = args[1] as CameraPositionDto - val wrapped: List = - try { - api.moveCameraToCameraPosition(viewIdArg, cameraPositionArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.moveCameraToCameraPosition(viewIdArg, cameraPositionArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5223,24 +4805,18 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLng$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLng$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val pointArg = args[1] as LatLngDto - val wrapped: List = - try { - api.moveCameraToLatLng(viewIdArg, pointArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.moveCameraToLatLng(viewIdArg, pointArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5248,25 +4824,19 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLngBounds$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLngBounds$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val boundsArg = args[1] as LatLngBoundsDto val paddingArg = args[2] as Double - val wrapped: List = - try { - api.moveCameraToLatLngBounds(viewIdArg, boundsArg, paddingArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.moveCameraToLatLngBounds(viewIdArg, boundsArg, paddingArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5274,25 +4844,19 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLngZoom$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLngZoom$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val pointArg = args[1] as LatLngDto val zoomArg = args[2] as Double - val wrapped: List = - try { - api.moveCameraToLatLngZoom(viewIdArg, pointArg, zoomArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.moveCameraToLatLngZoom(viewIdArg, pointArg, zoomArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5300,25 +4864,19 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraByScroll$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraByScroll$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val scrollByDxArg = args[1] as Double val scrollByDyArg = args[2] as Double - val wrapped: List = - try { - api.moveCameraByScroll(viewIdArg, scrollByDxArg, scrollByDyArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.moveCameraByScroll(viewIdArg, scrollByDxArg, scrollByDyArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5326,12 +4884,7 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraByZoom$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraByZoom$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -5339,13 +4892,12 @@ interface MapViewApi { val zoomByArg = args[1] as Double val focusDxArg = args[2] as Double? val focusDyArg = args[3] as Double? - val wrapped: List = - try { - api.moveCameraByZoom(viewIdArg, zoomByArg, focusDxArg, focusDyArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.moveCameraByZoom(viewIdArg, zoomByArg, focusDxArg, focusDyArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5353,24 +4905,18 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToZoom$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToZoom$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val zoomArg = args[1] as Double - val wrapped: List = - try { - api.moveCameraToZoom(viewIdArg, zoomArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.moveCameraToZoom(viewIdArg, zoomArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5378,23 +4924,17 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.showRouteOverview$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.showRouteOverview$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - api.showRouteOverview(viewIdArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.showRouteOverview(viewIdArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5402,22 +4942,16 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMinZoomPreference$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMinZoomPreference$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - listOf(api.getMinZoomPreference(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.getMinZoomPreference(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5425,22 +4959,16 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMaxZoomPreference$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMaxZoomPreference$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - listOf(api.getMaxZoomPreference(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.getMaxZoomPreference(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5448,23 +4976,17 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.resetMinMaxZoomPreference$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.resetMinMaxZoomPreference$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - api.resetMinMaxZoomPreference(viewIdArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.resetMinMaxZoomPreference(viewIdArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5472,24 +4994,18 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMinZoomPreference$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMinZoomPreference$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val minZoomPreferenceArg = args[1] as Double - val wrapped: List = - try { - api.setMinZoomPreference(viewIdArg, minZoomPreferenceArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setMinZoomPreference(viewIdArg, minZoomPreferenceArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5497,24 +5013,18 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMaxZoomPreference$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMaxZoomPreference$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val maxZoomPreferenceArg = args[1] as Double - val wrapped: List = - try { - api.setMaxZoomPreference(viewIdArg, maxZoomPreferenceArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setMaxZoomPreference(viewIdArg, maxZoomPreferenceArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5522,22 +5032,16 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMarkers$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMarkers$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - listOf(api.getMarkers(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.getMarkers(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5545,23 +5049,17 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addMarkers$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addMarkers$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val markersArg = args[1] as List - val wrapped: List = - try { - listOf(api.addMarkers(viewIdArg, markersArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.addMarkers(viewIdArg, markersArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5569,23 +5067,17 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updateMarkers$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updateMarkers$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val markersArg = args[1] as List - val wrapped: List = - try { - listOf(api.updateMarkers(viewIdArg, markersArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.updateMarkers(viewIdArg, markersArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5593,24 +5085,18 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removeMarkers$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removeMarkers$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val markersArg = args[1] as List - val wrapped: List = - try { - api.removeMarkers(viewIdArg, markersArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.removeMarkers(viewIdArg, markersArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5618,23 +5104,17 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearMarkers$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearMarkers$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - api.clearMarkers(viewIdArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.clearMarkers(viewIdArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5642,23 +5122,17 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clear$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clear$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - api.clear(viewIdArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.clear(viewIdArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5666,22 +5140,16 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPolygons$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPolygons$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - listOf(api.getPolygons(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.getPolygons(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5689,23 +5157,17 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addPolygons$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addPolygons$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val polygonsArg = args[1] as List - val wrapped: List = - try { - listOf(api.addPolygons(viewIdArg, polygonsArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.addPolygons(viewIdArg, polygonsArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5713,23 +5175,17 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updatePolygons$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updatePolygons$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val polygonsArg = args[1] as List - val wrapped: List = - try { - listOf(api.updatePolygons(viewIdArg, polygonsArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.updatePolygons(viewIdArg, polygonsArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5737,24 +5193,18 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removePolygons$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removePolygons$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val polygonsArg = args[1] as List - val wrapped: List = - try { - api.removePolygons(viewIdArg, polygonsArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.removePolygons(viewIdArg, polygonsArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5762,23 +5212,17 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearPolygons$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearPolygons$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - api.clearPolygons(viewIdArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.clearPolygons(viewIdArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5786,22 +5230,16 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPolylines$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPolylines$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - listOf(api.getPolylines(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.getPolylines(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5809,23 +5247,17 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addPolylines$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addPolylines$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val polylinesArg = args[1] as List - val wrapped: List = - try { - listOf(api.addPolylines(viewIdArg, polylinesArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.addPolylines(viewIdArg, polylinesArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5833,23 +5265,17 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updatePolylines$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updatePolylines$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val polylinesArg = args[1] as List - val wrapped: List = - try { - listOf(api.updatePolylines(viewIdArg, polylinesArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.updatePolylines(viewIdArg, polylinesArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5857,24 +5283,18 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removePolylines$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removePolylines$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val polylinesArg = args[1] as List - val wrapped: List = - try { - api.removePolylines(viewIdArg, polylinesArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.removePolylines(viewIdArg, polylinesArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5882,23 +5302,17 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearPolylines$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearPolylines$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - api.clearPolylines(viewIdArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.clearPolylines(viewIdArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5906,22 +5320,16 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getCircles$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getCircles$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - listOf(api.getCircles(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.getCircles(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5929,23 +5337,17 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addCircles$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addCircles$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val circlesArg = args[1] as List - val wrapped: List = - try { - listOf(api.addCircles(viewIdArg, circlesArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.addCircles(viewIdArg, circlesArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5953,23 +5355,17 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updateCircles$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updateCircles$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val circlesArg = args[1] as List - val wrapped: List = - try { - listOf(api.updateCircles(viewIdArg, circlesArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.updateCircles(viewIdArg, circlesArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5977,24 +5373,18 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removeCircles$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removeCircles$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val circlesArg = args[1] as List - val wrapped: List = - try { - api.removeCircles(viewIdArg, circlesArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.removeCircles(viewIdArg, circlesArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -6002,23 +5392,17 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearCircles$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearCircles$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - api.clearCircles(viewIdArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.clearCircles(viewIdArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -6026,23 +5410,17 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.enableOnCameraChangedEvents$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.enableOnCameraChangedEvents$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - api.enableOnCameraChangedEvents(viewIdArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.enableOnCameraChangedEvents(viewIdArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -6050,24 +5428,18 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setPadding$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setPadding$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val paddingArg = args[1] as MapPaddingDto - val wrapped: List = - try { - api.setPadding(viewIdArg, paddingArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setPadding(viewIdArg, paddingArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -6075,22 +5447,16 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPadding$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPadding$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - listOf(api.getPadding(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.getPadding(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -6098,22 +5464,16 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMapColorScheme$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMapColorScheme$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - listOf(api.getMapColorScheme(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.getMapColorScheme(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -6121,24 +5481,18 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapColorScheme$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapColorScheme$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val mapColorSchemeArg = args[1] as MapColorSchemeDto - val wrapped: List = - try { - api.setMapColorScheme(viewIdArg, mapColorSchemeArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setMapColorScheme(viewIdArg, mapColorSchemeArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -6146,22 +5500,16 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getForceNightMode$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getForceNightMode$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - listOf(api.getForceNightMode(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.getForceNightMode(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -6169,24 +5517,18 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setForceNightMode$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setForceNightMode$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val forceNightModeArg = args[1] as NavigationForceNightModeDto - val wrapped: List = - try { - api.setForceNightMode(viewIdArg, forceNightModeArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setForceNightMode(viewIdArg, forceNightModeArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -6196,47 +5538,25 @@ interface MapViewApi { } } } - /** Generated interface from Pigeon that represents a handler of messages from Flutter. */ interface ImageRegistryApi { - fun registerBitmapImage( - imageId: String, - bytes: ByteArray, - imagePixelRatio: Double, - width: Double?, - height: Double?, - ): ImageDescriptorDto - + fun registerBitmapImage(imageId: String, bytes: ByteArray, imagePixelRatio: Double, width: Double?, height: Double?): ImageDescriptorDto fun unregisterImage(imageDescriptor: ImageDescriptorDto) - fun getRegisteredImages(): List - fun clearRegisteredImages(filter: RegisteredImageTypeDto?) - fun getRegisteredImageData(imageDescriptor: ImageDescriptorDto): ByteArray? companion object { /** The codec used by ImageRegistryApi. */ - val codec: MessageCodec by lazy { messagesPigeonCodec() } - - /** - * Sets up an instance of `ImageRegistryApi` to handle messages through the `binaryMessenger`. - */ + val codec: MessageCodec by lazy { + messagesPigeonCodec() + } + /** Sets up an instance of `ImageRegistryApi` to handle messages through the `binaryMessenger`. */ @JvmOverloads - fun setUp( - binaryMessenger: BinaryMessenger, - api: ImageRegistryApi?, - messageChannelSuffix: String = "", - ) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + fun setUp(binaryMessenger: BinaryMessenger, api: ImageRegistryApi?, messageChannelSuffix: String = "") { + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.registerBitmapImage$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.registerBitmapImage$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -6245,20 +5565,11 @@ interface ImageRegistryApi { val imagePixelRatioArg = args[2] as Double val widthArg = args[3] as Double? val heightArg = args[4] as Double? - val wrapped: List = - try { - listOf( - api.registerBitmapImage( - imageIdArg, - bytesArg, - imagePixelRatioArg, - widthArg, - heightArg, - ) - ) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.registerBitmapImage(imageIdArg, bytesArg, imagePixelRatioArg, widthArg, heightArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -6266,23 +5577,17 @@ interface ImageRegistryApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.unregisterImage$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.unregisterImage$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val imageDescriptorArg = args[0] as ImageDescriptorDto - val wrapped: List = - try { - api.unregisterImage(imageDescriptorArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.unregisterImage(imageDescriptorArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -6290,20 +5595,14 @@ interface ImageRegistryApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.getRegisteredImages$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.getRegisteredImages$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - listOf(api.getRegisteredImages()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.getRegisteredImages()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -6311,23 +5610,17 @@ interface ImageRegistryApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.clearRegisteredImages$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.clearRegisteredImages$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val filterArg = args[0] as RegisteredImageTypeDto? - val wrapped: List = - try { - api.clearRegisteredImages(filterArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.clearRegisteredImages(filterArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -6335,22 +5628,16 @@ interface ImageRegistryApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.getRegisteredImageData$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.getRegisteredImageData$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val imageDescriptorArg = args[0] as ImageDescriptorDto - val wrapped: List = - try { - listOf(api.getRegisteredImageData(imageDescriptorArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.getRegisteredImageData(imageDescriptorArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -6360,22 +5647,18 @@ interface ImageRegistryApi { } } } - /** Generated class from Pigeon that represents Flutter messages that can be called from Kotlin. */ -class ViewEventApi( - private val binaryMessenger: BinaryMessenger, - private val messageChannelSuffix: String = "", -) { +class ViewEventApi(private val binaryMessenger: BinaryMessenger, private val messageChannelSuffix: String = "") { companion object { /** The codec used by ViewEventApi. */ - val codec: MessageCodec by lazy { messagesPigeonCodec() } + val codec: MessageCodec by lazy { + messagesPigeonCodec() + } } - - fun onMapClickEvent(viewIdArg: Long, latLngArg: LatLngDto, callback: (Result) -> Unit) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = - "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMapClickEvent$separatedMessageChannelSuffix" + fun onMapClickEvent(viewIdArg: Long, latLngArg: LatLngDto, callback: (Result) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMapClickEvent$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(viewIdArg, latLngArg)) { if (it is List<*>) { @@ -6386,15 +5669,13 @@ class ViewEventApi( } } else { callback(Result.failure(MessagesPigeonUtils.createConnectionError(channelName))) - } + } } } - - fun onMapLongClickEvent(viewIdArg: Long, latLngArg: LatLngDto, callback: (Result) -> Unit) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = - "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMapLongClickEvent$separatedMessageChannelSuffix" + fun onMapLongClickEvent(viewIdArg: Long, latLngArg: LatLngDto, callback: (Result) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMapLongClickEvent$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(viewIdArg, latLngArg)) { if (it is List<*>) { @@ -6405,15 +5686,13 @@ class ViewEventApi( } } else { callback(Result.failure(MessagesPigeonUtils.createConnectionError(channelName))) - } + } } } - - fun onRecenterButtonClicked(viewIdArg: Long, callback: (Result) -> Unit) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = - "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onRecenterButtonClicked$separatedMessageChannelSuffix" + fun onRecenterButtonClicked(viewIdArg: Long, callback: (Result) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onRecenterButtonClicked$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(viewIdArg)) { if (it is List<*>) { @@ -6424,20 +5703,13 @@ class ViewEventApi( } } else { callback(Result.failure(MessagesPigeonUtils.createConnectionError(channelName))) - } + } } } - - fun onMarkerEvent( - viewIdArg: Long, - markerIdArg: String, - eventTypeArg: MarkerEventTypeDto, - callback: (Result) -> Unit, - ) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = - "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMarkerEvent$separatedMessageChannelSuffix" + fun onMarkerEvent(viewIdArg: Long, markerIdArg: String, eventTypeArg: MarkerEventTypeDto, callback: (Result) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMarkerEvent$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(viewIdArg, markerIdArg, eventTypeArg)) { if (it is List<*>) { @@ -6448,21 +5720,13 @@ class ViewEventApi( } } else { callback(Result.failure(MessagesPigeonUtils.createConnectionError(channelName))) - } + } } } - - fun onMarkerDragEvent( - viewIdArg: Long, - markerIdArg: String, - eventTypeArg: MarkerDragEventTypeDto, - positionArg: LatLngDto, - callback: (Result) -> Unit, - ) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = - "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMarkerDragEvent$separatedMessageChannelSuffix" + fun onMarkerDragEvent(viewIdArg: Long, markerIdArg: String, eventTypeArg: MarkerDragEventTypeDto, positionArg: LatLngDto, callback: (Result) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMarkerDragEvent$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(viewIdArg, markerIdArg, eventTypeArg, positionArg)) { if (it is List<*>) { @@ -6473,15 +5737,13 @@ class ViewEventApi( } } else { callback(Result.failure(MessagesPigeonUtils.createConnectionError(channelName))) - } + } } } - - fun onPolygonClicked(viewIdArg: Long, polygonIdArg: String, callback: (Result) -> Unit) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = - "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPolygonClicked$separatedMessageChannelSuffix" + fun onPolygonClicked(viewIdArg: Long, polygonIdArg: String, callback: (Result) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPolygonClicked$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(viewIdArg, polygonIdArg)) { if (it is List<*>) { @@ -6492,15 +5754,13 @@ class ViewEventApi( } } else { callback(Result.failure(MessagesPigeonUtils.createConnectionError(channelName))) - } + } } } - - fun onPolylineClicked(viewIdArg: Long, polylineIdArg: String, callback: (Result) -> Unit) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = - "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPolylineClicked$separatedMessageChannelSuffix" + fun onPolylineClicked(viewIdArg: Long, polylineIdArg: String, callback: (Result) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPolylineClicked$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(viewIdArg, polylineIdArg)) { if (it is List<*>) { @@ -6511,15 +5771,13 @@ class ViewEventApi( } } else { callback(Result.failure(MessagesPigeonUtils.createConnectionError(channelName))) - } + } } } - - fun onCircleClicked(viewIdArg: Long, circleIdArg: String, callback: (Result) -> Unit) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = - "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onCircleClicked$separatedMessageChannelSuffix" + fun onCircleClicked(viewIdArg: Long, circleIdArg: String, callback: (Result) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onCircleClicked$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(viewIdArg, circleIdArg)) { if (it is List<*>) { @@ -6530,19 +5788,13 @@ class ViewEventApi( } } else { callback(Result.failure(MessagesPigeonUtils.createConnectionError(channelName))) - } + } } } - - fun onPoiClick( - viewIdArg: Long, - pointOfInterestArg: PointOfInterestDto, - callback: (Result) -> Unit, - ) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = - "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPoiClick$separatedMessageChannelSuffix" + fun onPoiClick(viewIdArg: Long, pointOfInterestArg: PointOfInterestDto, callback: (Result) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPoiClick$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(viewIdArg, pointOfInterestArg)) { if (it is List<*>) { @@ -6553,19 +5805,13 @@ class ViewEventApi( } } else { callback(Result.failure(MessagesPigeonUtils.createConnectionError(channelName))) - } + } } } - - fun onNavigationUIEnabledChanged( - viewIdArg: Long, - navigationUIEnabledArg: Boolean, - callback: (Result) -> Unit, - ) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = - "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onNavigationUIEnabledChanged$separatedMessageChannelSuffix" + fun onNavigationUIEnabledChanged(viewIdArg: Long, navigationUIEnabledArg: Boolean, callback: (Result) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onNavigationUIEnabledChanged$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(viewIdArg, navigationUIEnabledArg)) { if (it is List<*>) { @@ -6576,19 +5822,13 @@ class ViewEventApi( } } else { callback(Result.failure(MessagesPigeonUtils.createConnectionError(channelName))) - } + } } } - - fun onPromptVisibilityChanged( - viewIdArg: Long, - promptVisibleArg: Boolean, - callback: (Result) -> Unit, - ) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = - "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPromptVisibilityChanged$separatedMessageChannelSuffix" + fun onPromptVisibilityChanged(viewIdArg: Long, promptVisibleArg: Boolean, callback: (Result) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPromptVisibilityChanged$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(viewIdArg, promptVisibleArg)) { if (it is List<*>) { @@ -6599,15 +5839,13 @@ class ViewEventApi( } } else { callback(Result.failure(MessagesPigeonUtils.createConnectionError(channelName))) - } + } } } - - fun onMyLocationClicked(viewIdArg: Long, callback: (Result) -> Unit) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = - "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMyLocationClicked$separatedMessageChannelSuffix" + fun onMyLocationClicked(viewIdArg: Long, callback: (Result) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMyLocationClicked$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(viewIdArg)) { if (it is List<*>) { @@ -6618,15 +5856,13 @@ class ViewEventApi( } } else { callback(Result.failure(MessagesPigeonUtils.createConnectionError(channelName))) - } + } } } - - fun onMyLocationButtonClicked(viewIdArg: Long, callback: (Result) -> Unit) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = - "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMyLocationButtonClicked$separatedMessageChannelSuffix" + fun onMyLocationButtonClicked(viewIdArg: Long, callback: (Result) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMyLocationButtonClicked$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(viewIdArg)) { if (it is List<*>) { @@ -6637,19 +5873,13 @@ class ViewEventApi( } } else { callback(Result.failure(MessagesPigeonUtils.createConnectionError(channelName))) - } + } } } - - fun onIndoorFocusedBuildingChanged( - viewIdArg: Long, - buildingArg: IndoorBuildingDto?, - callback: (Result) -> Unit, - ) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = - "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onIndoorFocusedBuildingChanged$separatedMessageChannelSuffix" + fun onIndoorFocusedBuildingChanged(viewIdArg: Long, buildingArg: IndoorBuildingDto?, callback: (Result) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onIndoorFocusedBuildingChanged$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(viewIdArg, buildingArg)) { if (it is List<*>) { @@ -6660,19 +5890,13 @@ class ViewEventApi( } } else { callback(Result.failure(MessagesPigeonUtils.createConnectionError(channelName))) - } + } } } - - fun onIndoorActiveLevelChanged( - viewIdArg: Long, - buildingArg: IndoorBuildingDto?, - callback: (Result) -> Unit, - ) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = - "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onIndoorActiveLevelChanged$separatedMessageChannelSuffix" + fun onIndoorActiveLevelChanged(viewIdArg: Long, buildingArg: IndoorBuildingDto?, callback: (Result) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onIndoorActiveLevelChanged$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(viewIdArg, buildingArg)) { if (it is List<*>) { @@ -6683,20 +5907,13 @@ class ViewEventApi( } } else { callback(Result.failure(MessagesPigeonUtils.createConnectionError(channelName))) - } + } } } - - fun onCameraChanged( - viewIdArg: Long, - eventTypeArg: CameraEventTypeDto, - positionArg: CameraPositionDto, - callback: (Result) -> Unit, - ) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = - "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onCameraChanged$separatedMessageChannelSuffix" + fun onCameraChanged(viewIdArg: Long, eventTypeArg: CameraEventTypeDto, positionArg: CameraPositionDto, callback: (Result) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onCameraChanged$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(viewIdArg, eventTypeArg, positionArg)) { if (it is List<*>) { @@ -6707,140 +5924,65 @@ class ViewEventApi( } } else { callback(Result.failure(MessagesPigeonUtils.createConnectionError(channelName))) - } + } } } } - /** Generated interface from Pigeon that represents a handler of messages from Flutter. */ interface NavigationSessionApi { - fun createNavigationSession( - abnormalTerminationReportingEnabled: Boolean, - behavior: TaskRemovedBehaviorDto, - callback: (Result) -> Unit, - ) - + fun createNavigationSession(abnormalTerminationReportingEnabled: Boolean, behavior: TaskRemovedBehaviorDto, callback: (Result) -> Unit) fun isInitialized(): Boolean - fun cleanup(resetSession: Boolean) - - fun showTermsAndConditionsDialog( - title: String, - companyName: String, - shouldOnlyShowDriverAwarenessDisclaimer: Boolean, - uiParams: TermsAndConditionsUIParamsDto?, - callback: (Result) -> Unit, - ) - + fun showTermsAndConditionsDialog(title: String, companyName: String, shouldOnlyShowDriverAwarenessDisclaimer: Boolean, uiParams: TermsAndConditionsUIParamsDto?, callback: (Result) -> Unit) fun areTermsAccepted(): Boolean - fun resetTermsAccepted() - fun getNavSDKVersion(): String - fun isGuidanceRunning(): Boolean - fun startGuidance() - fun stopGuidance() - fun setDestinations(destinations: DestinationsDto, callback: (Result) -> Unit) - fun clearDestinations() - fun continueToNextDestination(callback: (Result) -> Unit) - fun getCurrentTimeAndDistance(): NavigationTimeAndDistanceDto - fun setAudioGuidance(settings: NavigationAudioGuidanceSettingsDto) - fun setSpeedAlertOptions(options: SpeedAlertOptionsDto) - fun getRouteSegments(): List - fun getTraveledRoute(): List - fun getCurrentRouteSegment(): RouteSegmentDto? - fun setUserLocation(location: LatLngDto) - fun removeUserLocation() - fun simulateLocationsAlongExistingRoute() - fun simulateLocationsAlongExistingRouteWithOptions(options: SimulationOptionsDto) - - fun simulateLocationsAlongNewRoute( - waypoints: List, - callback: (Result) -> Unit, - ) - - fun simulateLocationsAlongNewRouteWithRoutingOptions( - waypoints: List, - routingOptions: RoutingOptionsDto, - callback: (Result) -> Unit, - ) - - fun simulateLocationsAlongNewRouteWithRoutingAndSimulationOptions( - waypoints: List, - routingOptions: RoutingOptionsDto, - simulationOptions: SimulationOptionsDto, - callback: (Result) -> Unit, - ) - + fun simulateLocationsAlongNewRoute(waypoints: List, callback: (Result) -> Unit) + fun simulateLocationsAlongNewRouteWithRoutingOptions(waypoints: List, routingOptions: RoutingOptionsDto, callback: (Result) -> Unit) + fun simulateLocationsAlongNewRouteWithRoutingAndSimulationOptions(waypoints: List, routingOptions: RoutingOptionsDto, simulationOptions: SimulationOptionsDto, callback: (Result) -> Unit) fun pauseSimulation() - fun resumeSimulation() - /** iOS-only method. */ fun allowBackgroundLocationUpdates(allow: Boolean) - fun enableRoadSnappedLocationUpdates() - fun disableRoadSnappedLocationUpdates() - - fun enableTurnByTurnNavigationEvents( - numNextStepsToPreview: Long?, - options: StepImageGenerationOptionsDto?, - ) - + fun enableTurnByTurnNavigationEvents(numNextStepsToPreview: Long?, options: StepImageGenerationOptionsDto?) fun disableTurnByTurnNavigationEvents() - - fun registerRemainingTimeOrDistanceChangedListener( - remainingTimeThresholdSeconds: Long, - remainingDistanceThresholdMeters: Long, - ) + fun registerRemainingTimeOrDistanceChangedListener(remainingTimeThresholdSeconds: Long, remainingDistanceThresholdMeters: Long) companion object { /** The codec used by NavigationSessionApi. */ - val codec: MessageCodec by lazy { messagesPigeonCodec() } - - /** - * Sets up an instance of `NavigationSessionApi` to handle messages through the - * `binaryMessenger`. - */ + val codec: MessageCodec by lazy { + messagesPigeonCodec() + } + /** Sets up an instance of `NavigationSessionApi` to handle messages through the `binaryMessenger`. */ @JvmOverloads - fun setUp( - binaryMessenger: BinaryMessenger, - api: NavigationSessionApi?, - messageChannelSuffix: String = "", - ) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + fun setUp(binaryMessenger: BinaryMessenger, api: NavigationSessionApi?, messageChannelSuffix: String = "") { + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.createNavigationSession$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.createNavigationSession$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val abnormalTerminationReportingEnabledArg = args[0] as Boolean val behaviorArg = args[1] as TaskRemovedBehaviorDto - api.createNavigationSession(abnormalTerminationReportingEnabledArg, behaviorArg) { - result: Result -> + api.createNavigationSession(abnormalTerminationReportingEnabledArg, behaviorArg) { result: Result -> val error = result.exceptionOrNull() if (error != null) { reply.reply(MessagesPigeonUtils.wrapError(error)) @@ -6854,20 +5996,14 @@ interface NavigationSessionApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.isInitialized$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.isInitialized$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - listOf(api.isInitialized()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.isInitialized()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -6875,23 +6011,17 @@ interface NavigationSessionApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.cleanup$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.cleanup$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val resetSessionArg = args[0] as Boolean - val wrapped: List = - try { - api.cleanup(resetSessionArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.cleanup(resetSessionArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -6899,12 +6029,7 @@ interface NavigationSessionApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.showTermsAndConditionsDialog$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.showTermsAndConditionsDialog$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -6912,12 +6037,7 @@ interface NavigationSessionApi { val companyNameArg = args[1] as String val shouldOnlyShowDriverAwarenessDisclaimerArg = args[2] as Boolean val uiParamsArg = args[3] as TermsAndConditionsUIParamsDto? - api.showTermsAndConditionsDialog( - titleArg, - companyNameArg, - shouldOnlyShowDriverAwarenessDisclaimerArg, - uiParamsArg, - ) { result: Result -> + api.showTermsAndConditionsDialog(titleArg, companyNameArg, shouldOnlyShowDriverAwarenessDisclaimerArg, uiParamsArg) { result: Result -> val error = result.exceptionOrNull() if (error != null) { reply.reply(MessagesPigeonUtils.wrapError(error)) @@ -6932,20 +6052,14 @@ interface NavigationSessionApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.areTermsAccepted$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.areTermsAccepted$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - listOf(api.areTermsAccepted()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.areTermsAccepted()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -6953,21 +6067,15 @@ interface NavigationSessionApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.resetTermsAccepted$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.resetTermsAccepted$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - api.resetTermsAccepted() - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.resetTermsAccepted() + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -6975,20 +6083,14 @@ interface NavigationSessionApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getNavSDKVersion$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getNavSDKVersion$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - listOf(api.getNavSDKVersion()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.getNavSDKVersion()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -6996,20 +6098,14 @@ interface NavigationSessionApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.isGuidanceRunning$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.isGuidanceRunning$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - listOf(api.isGuidanceRunning()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.isGuidanceRunning()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7017,21 +6113,15 @@ interface NavigationSessionApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.startGuidance$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.startGuidance$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - api.startGuidance() - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.startGuidance() + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7039,21 +6129,15 @@ interface NavigationSessionApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.stopGuidance$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.stopGuidance$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - api.stopGuidance() - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.stopGuidance() + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7061,12 +6145,7 @@ interface NavigationSessionApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setDestinations$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setDestinations$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -7086,21 +6165,15 @@ interface NavigationSessionApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.clearDestinations$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.clearDestinations$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - api.clearDestinations() - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.clearDestinations() + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7108,15 +6181,10 @@ interface NavigationSessionApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.continueToNextDestination$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.continueToNextDestination$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - api.continueToNextDestination { result: Result -> + api.continueToNextDestination{ result: Result -> val error = result.exceptionOrNull() if (error != null) { reply.reply(MessagesPigeonUtils.wrapError(error)) @@ -7131,20 +6199,14 @@ interface NavigationSessionApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getCurrentTimeAndDistance$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getCurrentTimeAndDistance$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - listOf(api.getCurrentTimeAndDistance()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.getCurrentTimeAndDistance()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7152,23 +6214,17 @@ interface NavigationSessionApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setAudioGuidance$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setAudioGuidance$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val settingsArg = args[0] as NavigationAudioGuidanceSettingsDto - val wrapped: List = - try { - api.setAudioGuidance(settingsArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setAudioGuidance(settingsArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7176,23 +6232,17 @@ interface NavigationSessionApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setSpeedAlertOptions$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setSpeedAlertOptions$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val optionsArg = args[0] as SpeedAlertOptionsDto - val wrapped: List = - try { - api.setSpeedAlertOptions(optionsArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setSpeedAlertOptions(optionsArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7200,20 +6250,14 @@ interface NavigationSessionApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getRouteSegments$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getRouteSegments$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - listOf(api.getRouteSegments()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.getRouteSegments()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7221,20 +6265,14 @@ interface NavigationSessionApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getTraveledRoute$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getTraveledRoute$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - listOf(api.getTraveledRoute()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.getTraveledRoute()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7242,20 +6280,14 @@ interface NavigationSessionApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getCurrentRouteSegment$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getCurrentRouteSegment$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - listOf(api.getCurrentRouteSegment()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.getCurrentRouteSegment()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7263,23 +6295,17 @@ interface NavigationSessionApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setUserLocation$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setUserLocation$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val locationArg = args[0] as LatLngDto - val wrapped: List = - try { - api.setUserLocation(locationArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setUserLocation(locationArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7287,21 +6313,15 @@ interface NavigationSessionApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.removeUserLocation$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.removeUserLocation$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - api.removeUserLocation() - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.removeUserLocation() + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7309,21 +6329,15 @@ interface NavigationSessionApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongExistingRoute$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongExistingRoute$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - api.simulateLocationsAlongExistingRoute() - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.simulateLocationsAlongExistingRoute() + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7331,23 +6345,17 @@ interface NavigationSessionApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongExistingRouteWithOptions$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongExistingRouteWithOptions$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val optionsArg = args[0] as SimulationOptionsDto - val wrapped: List = - try { - api.simulateLocationsAlongExistingRouteWithOptions(optionsArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.simulateLocationsAlongExistingRouteWithOptions(optionsArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7355,12 +6363,7 @@ interface NavigationSessionApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRoute$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRoute$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -7380,19 +6383,13 @@ interface NavigationSessionApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRouteWithRoutingOptions$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRouteWithRoutingOptions$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val waypointsArg = args[0] as List val routingOptionsArg = args[1] as RoutingOptionsDto - api.simulateLocationsAlongNewRouteWithRoutingOptions(waypointsArg, routingOptionsArg) { - result: Result -> + api.simulateLocationsAlongNewRouteWithRoutingOptions(waypointsArg, routingOptionsArg) { result: Result -> val error = result.exceptionOrNull() if (error != null) { reply.reply(MessagesPigeonUtils.wrapError(error)) @@ -7407,23 +6404,14 @@ interface NavigationSessionApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRouteWithRoutingAndSimulationOptions$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRouteWithRoutingAndSimulationOptions$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val waypointsArg = args[0] as List val routingOptionsArg = args[1] as RoutingOptionsDto val simulationOptionsArg = args[2] as SimulationOptionsDto - api.simulateLocationsAlongNewRouteWithRoutingAndSimulationOptions( - waypointsArg, - routingOptionsArg, - simulationOptionsArg, - ) { result: Result -> + api.simulateLocationsAlongNewRouteWithRoutingAndSimulationOptions(waypointsArg, routingOptionsArg, simulationOptionsArg) { result: Result -> val error = result.exceptionOrNull() if (error != null) { reply.reply(MessagesPigeonUtils.wrapError(error)) @@ -7438,21 +6426,15 @@ interface NavigationSessionApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.pauseSimulation$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.pauseSimulation$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - api.pauseSimulation() - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.pauseSimulation() + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7460,21 +6442,15 @@ interface NavigationSessionApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.resumeSimulation$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.resumeSimulation$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - api.resumeSimulation() - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.resumeSimulation() + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7482,23 +6458,17 @@ interface NavigationSessionApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.allowBackgroundLocationUpdates$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.allowBackgroundLocationUpdates$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val allowArg = args[0] as Boolean - val wrapped: List = - try { - api.allowBackgroundLocationUpdates(allowArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.allowBackgroundLocationUpdates(allowArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7506,21 +6476,15 @@ interface NavigationSessionApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.enableRoadSnappedLocationUpdates$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.enableRoadSnappedLocationUpdates$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - api.enableRoadSnappedLocationUpdates() - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.enableRoadSnappedLocationUpdates() + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7528,21 +6492,15 @@ interface NavigationSessionApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.disableRoadSnappedLocationUpdates$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.disableRoadSnappedLocationUpdates$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - api.disableRoadSnappedLocationUpdates() - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.disableRoadSnappedLocationUpdates() + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7550,24 +6508,18 @@ interface NavigationSessionApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.enableTurnByTurnNavigationEvents$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.enableTurnByTurnNavigationEvents$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val numNextStepsToPreviewArg = args[0] as Long? val optionsArg = args[1] as StepImageGenerationOptionsDto? - val wrapped: List = - try { - api.enableTurnByTurnNavigationEvents(numNextStepsToPreviewArg, optionsArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.enableTurnByTurnNavigationEvents(numNextStepsToPreviewArg, optionsArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7575,21 +6527,15 @@ interface NavigationSessionApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.disableTurnByTurnNavigationEvents$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.disableTurnByTurnNavigationEvents$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - api.disableTurnByTurnNavigationEvents() - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.disableTurnByTurnNavigationEvents() + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7597,27 +6543,18 @@ interface NavigationSessionApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.registerRemainingTimeOrDistanceChangedListener$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.registerRemainingTimeOrDistanceChangedListener$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val remainingTimeThresholdSecondsArg = args[0] as Long val remainingDistanceThresholdMetersArg = args[1] as Long - val wrapped: List = - try { - api.registerRemainingTimeOrDistanceChangedListener( - remainingTimeThresholdSecondsArg, - remainingDistanceThresholdMetersArg, - ) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.registerRemainingTimeOrDistanceChangedListener(remainingTimeThresholdSecondsArg, remainingDistanceThresholdMetersArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7627,22 +6564,18 @@ interface NavigationSessionApi { } } } - /** Generated class from Pigeon that represents Flutter messages that can be called from Kotlin. */ -class NavigationSessionEventApi( - private val binaryMessenger: BinaryMessenger, - private val messageChannelSuffix: String = "", -) { +class NavigationSessionEventApi(private val binaryMessenger: BinaryMessenger, private val messageChannelSuffix: String = "") { companion object { /** The codec used by NavigationSessionEventApi. */ - val codec: MessageCodec by lazy { messagesPigeonCodec() } + val codec: MessageCodec by lazy { + messagesPigeonCodec() + } } - - fun onSpeedingUpdated(msgArg: SpeedingUpdatedEventDto, callback: (Result) -> Unit) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onSpeedingUpdated$separatedMessageChannelSuffix" + fun onSpeedingUpdated(msgArg: SpeedingUpdatedEventDto, callback: (Result) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onSpeedingUpdated$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(msgArg)) { if (it is List<*>) { @@ -7653,15 +6586,13 @@ class NavigationSessionEventApi( } } else { callback(Result.failure(MessagesPigeonUtils.createConnectionError(channelName))) - } + } } } - - fun onRoadSnappedLocationUpdated(locationArg: LatLngDto, callback: (Result) -> Unit) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRoadSnappedLocationUpdated$separatedMessageChannelSuffix" + fun onRoadSnappedLocationUpdated(locationArg: LatLngDto, callback: (Result) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRoadSnappedLocationUpdated$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(locationArg)) { if (it is List<*>) { @@ -7672,15 +6603,13 @@ class NavigationSessionEventApi( } } else { callback(Result.failure(MessagesPigeonUtils.createConnectionError(channelName))) - } + } } } - - fun onRoadSnappedRawLocationUpdated(locationArg: LatLngDto, callback: (Result) -> Unit) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRoadSnappedRawLocationUpdated$separatedMessageChannelSuffix" + fun onRoadSnappedRawLocationUpdated(locationArg: LatLngDto, callback: (Result) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRoadSnappedRawLocationUpdated$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(locationArg)) { if (it is List<*>) { @@ -7691,15 +6620,13 @@ class NavigationSessionEventApi( } } else { callback(Result.failure(MessagesPigeonUtils.createConnectionError(channelName))) - } + } } } - - fun onArrival(waypointArg: NavigationWaypointDto, callback: (Result) -> Unit) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onArrival$separatedMessageChannelSuffix" + fun onArrival(waypointArg: NavigationWaypointDto, callback: (Result) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onArrival$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(waypointArg)) { if (it is List<*>) { @@ -7710,15 +6637,13 @@ class NavigationSessionEventApi( } } else { callback(Result.failure(MessagesPigeonUtils.createConnectionError(channelName))) - } + } } } - - fun onRouteChanged(callback: (Result) -> Unit) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRouteChanged$separatedMessageChannelSuffix" + fun onRouteChanged(callback: (Result) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRouteChanged$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(null) { if (it is List<*>) { @@ -7729,20 +6654,13 @@ class NavigationSessionEventApi( } } else { callback(Result.failure(MessagesPigeonUtils.createConnectionError(channelName))) - } + } } } - - fun onRemainingTimeOrDistanceChanged( - remainingTimeArg: Double, - remainingDistanceArg: Double, - delaySeverityArg: TrafficDelaySeverityDto, - callback: (Result) -> Unit, - ) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRemainingTimeOrDistanceChanged$separatedMessageChannelSuffix" + fun onRemainingTimeOrDistanceChanged(remainingTimeArg: Double, remainingDistanceArg: Double, delaySeverityArg: TrafficDelaySeverityDto, callback: (Result) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRemainingTimeOrDistanceChanged$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(remainingTimeArg, remainingDistanceArg, delaySeverityArg)) { if (it is List<*>) { @@ -7753,16 +6671,14 @@ class NavigationSessionEventApi( } } else { callback(Result.failure(MessagesPigeonUtils.createConnectionError(channelName))) - } + } } } - /** Android-only event. */ - fun onTrafficUpdated(callback: (Result) -> Unit) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onTrafficUpdated$separatedMessageChannelSuffix" + fun onTrafficUpdated(callback: (Result) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onTrafficUpdated$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(null) { if (it is List<*>) { @@ -7773,16 +6689,14 @@ class NavigationSessionEventApi( } } else { callback(Result.failure(MessagesPigeonUtils.createConnectionError(channelName))) - } + } } } - /** Android-only event. */ - fun onRerouting(callback: (Result) -> Unit) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRerouting$separatedMessageChannelSuffix" + fun onRerouting(callback: (Result) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRerouting$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(null) { if (it is List<*>) { @@ -7793,16 +6707,14 @@ class NavigationSessionEventApi( } } else { callback(Result.failure(MessagesPigeonUtils.createConnectionError(channelName))) - } + } } } - /** Android-only event. */ - fun onGpsAvailabilityUpdate(availableArg: Boolean, callback: (Result) -> Unit) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onGpsAvailabilityUpdate$separatedMessageChannelSuffix" + fun onGpsAvailabilityUpdate(availableArg: Boolean, callback: (Result) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onGpsAvailabilityUpdate$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(availableArg)) { if (it is List<*>) { @@ -7813,19 +6725,14 @@ class NavigationSessionEventApi( } } else { callback(Result.failure(MessagesPigeonUtils.createConnectionError(channelName))) - } + } } } - /** Android-only event. */ - fun onGpsAvailabilityChange( - eventArg: GpsAvailabilityChangeEventDto, - callback: (Result) -> Unit, - ) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onGpsAvailabilityChange$separatedMessageChannelSuffix" + fun onGpsAvailabilityChange(eventArg: GpsAvailabilityChangeEventDto, callback: (Result) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onGpsAvailabilityChange$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(eventArg)) { if (it is List<*>) { @@ -7836,16 +6743,14 @@ class NavigationSessionEventApi( } } else { callback(Result.failure(MessagesPigeonUtils.createConnectionError(channelName))) - } + } } } - /** Turn-by-Turn navigation events. */ - fun onNavInfo(navInfoArg: NavInfoDto, callback: (Result) -> Unit) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onNavInfo$separatedMessageChannelSuffix" + fun onNavInfo(navInfoArg: NavInfoDto, callback: (Result) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onNavInfo$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(navInfoArg)) { if (it is List<*>) { @@ -7856,16 +6761,17 @@ class NavigationSessionEventApi( } } else { callback(Result.failure(MessagesPigeonUtils.createConnectionError(channelName))) - } + } } } - - /** Navigation session event. Called when a new navigation session starts with active guidance. */ - fun onNewNavigationSession(callback: (Result) -> Unit) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onNewNavigationSession$separatedMessageChannelSuffix" + /** + * Navigation session event. Called when a new navigation + * session starts with active guidance. + */ + fun onNewNavigationSession(callback: (Result) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onNewNavigationSession$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(null) { if (it is List<*>) { @@ -7876,269 +6782,137 @@ class NavigationSessionEventApi( } } else { callback(Result.failure(MessagesPigeonUtils.createConnectionError(channelName))) - } + } } } } - /** Generated interface from Pigeon that represents a handler of messages from Flutter. */ interface AutoMapViewApi { /** - * Sets the map options to be used for Android Auto and CarPlay views. Should be called before the - * Auto/CarPlay screen is created. This allows customization of mapId and basic map settings. + * Sets the map options to be used for Android Auto and CarPlay views. + * Should be called before the Auto/CarPlay screen is created. + * This allows customization of mapId and basic map settings. */ fun setAutoMapOptions(mapOptions: AutoMapOptionsDto) - fun isMyLocationEnabled(): Boolean - fun setMyLocationEnabled(enabled: Boolean) - fun getMyLocation(): LatLngDto? - fun getMapType(): MapTypeDto - fun setMapType(mapType: MapTypeDto) - fun setMapStyle(styleJson: String) - fun getCameraPosition(): CameraPositionDto - fun getVisibleRegion(): LatLngBoundsDto - fun followMyLocation(perspective: CameraPerspectiveDto, zoomLevel: Double?) - - fun animateCameraToCameraPosition( - cameraPosition: CameraPositionDto, - duration: Long?, - callback: (Result) -> Unit, - ) - + fun animateCameraToCameraPosition(cameraPosition: CameraPositionDto, duration: Long?, callback: (Result) -> Unit) fun animateCameraToLatLng(point: LatLngDto, duration: Long?, callback: (Result) -> Unit) - - fun animateCameraToLatLngBounds( - bounds: LatLngBoundsDto, - padding: Double, - duration: Long?, - callback: (Result) -> Unit, - ) - - fun animateCameraToLatLngZoom( - point: LatLngDto, - zoom: Double, - duration: Long?, - callback: (Result) -> Unit, - ) - - fun animateCameraByScroll( - scrollByDx: Double, - scrollByDy: Double, - duration: Long?, - callback: (Result) -> Unit, - ) - - fun animateCameraByZoom( - zoomBy: Double, - focusDx: Double?, - focusDy: Double?, - duration: Long?, - callback: (Result) -> Unit, - ) - + fun animateCameraToLatLngBounds(bounds: LatLngBoundsDto, padding: Double, duration: Long?, callback: (Result) -> Unit) + fun animateCameraToLatLngZoom(point: LatLngDto, zoom: Double, duration: Long?, callback: (Result) -> Unit) + fun animateCameraByScroll(scrollByDx: Double, scrollByDy: Double, duration: Long?, callback: (Result) -> Unit) + fun animateCameraByZoom(zoomBy: Double, focusDx: Double?, focusDy: Double?, duration: Long?, callback: (Result) -> Unit) fun animateCameraToZoom(zoom: Double, duration: Long?, callback: (Result) -> Unit) - fun moveCameraToCameraPosition(cameraPosition: CameraPositionDto) - fun moveCameraToLatLng(point: LatLngDto) - fun moveCameraToLatLngBounds(bounds: LatLngBoundsDto, padding: Double) - fun moveCameraToLatLngZoom(point: LatLngDto, zoom: Double) - fun moveCameraByScroll(scrollByDx: Double, scrollByDy: Double) - fun moveCameraByZoom(zoomBy: Double, focusDx: Double?, focusDy: Double?) - fun moveCameraToZoom(zoom: Double) - fun getMinZoomPreference(): Double - fun getMaxZoomPreference(): Double - fun resetMinMaxZoomPreference() - fun setMinZoomPreference(minZoomPreference: Double) - fun setMaxZoomPreference(maxZoomPreference: Double) - fun setMyLocationButtonEnabled(enabled: Boolean) - fun setConsumeMyLocationButtonClickEventsEnabled(enabled: Boolean) - fun setZoomGesturesEnabled(enabled: Boolean) - fun setZoomControlsEnabled(enabled: Boolean) - fun setCompassEnabled(enabled: Boolean) - fun setRotateGesturesEnabled(enabled: Boolean) - fun setScrollGesturesEnabled(enabled: Boolean) - fun setScrollGesturesDuringRotateOrZoomEnabled(enabled: Boolean) - fun setTiltGesturesEnabled(enabled: Boolean) - fun setMapToolbarEnabled(enabled: Boolean) - fun setTrafficEnabled(enabled: Boolean) - fun setTrafficPromptsEnabled(enabled: Boolean) - fun setTrafficIncidentCardsEnabled(enabled: Boolean) - fun setNavigationTripProgressBarEnabled(enabled: Boolean) - fun setSpeedLimitIconEnabled(enabled: Boolean) - fun setSpeedometerEnabled(enabled: Boolean) - fun setNavigationUIEnabled(enabled: Boolean) - fun isMyLocationButtonEnabled(): Boolean - fun isConsumeMyLocationButtonClickEventsEnabled(): Boolean - fun isZoomGesturesEnabled(): Boolean - fun isZoomControlsEnabled(): Boolean - fun isCompassEnabled(): Boolean - fun isRotateGesturesEnabled(): Boolean - fun isScrollGesturesEnabled(): Boolean - fun isScrollGesturesEnabledDuringRotateOrZoom(): Boolean - fun isTiltGesturesEnabled(): Boolean - fun isMapToolbarEnabled(): Boolean - fun isTrafficEnabled(): Boolean - fun isTrafficPromptsEnabled(): Boolean - fun isTrafficIncidentCardsEnabled(): Boolean - fun isNavigationTripProgressBarEnabled(): Boolean - fun isSpeedLimitIconEnabled(): Boolean - fun isSpeedometerEnabled(): Boolean - fun isNavigationUIEnabled(): Boolean - fun isIndoorEnabled(): Boolean - fun setIndoorEnabled(enabled: Boolean) - fun getFocusedIndoorBuilding(): IndoorBuildingDto? - fun activateIndoorLevel(levelIndex: Long) - fun showRouteOverview() - fun getMarkers(): List - fun addMarkers(markers: List): List - fun updateMarkers(markers: List): List - fun removeMarkers(markers: List) - fun clearMarkers() - fun clear() - fun getPolygons(): List - fun addPolygons(polygons: List): List - fun updatePolygons(polygons: List): List - fun removePolygons(polygons: List) - fun clearPolygons() - fun getPolylines(): List - fun addPolylines(polylines: List): List - fun updatePolylines(polylines: List): List - fun removePolylines(polylines: List) - fun clearPolylines() - fun getCircles(): List - fun addCircles(circles: List): List - fun updateCircles(circles: List): List - fun removeCircles(circles: List) - fun clearCircles() - fun enableOnCameraChangedEvents() - fun isAutoScreenAvailable(): Boolean - fun setPadding(padding: MapPaddingDto) - fun getPadding(): MapPaddingDto - fun getMapColorScheme(): MapColorSchemeDto - fun setMapColorScheme(mapColorScheme: MapColorSchemeDto) - fun getForceNightMode(): NavigationForceNightModeDto - fun setForceNightMode(forceNightMode: NavigationForceNightModeDto) - fun sendCustomNavigationAutoEvent(event: String, data: Any) companion object { /** The codec used by AutoMapViewApi. */ - val codec: MessageCodec by lazy { messagesPigeonCodec() } - + val codec: MessageCodec by lazy { + messagesPigeonCodec() + } /** Sets up an instance of `AutoMapViewApi` to handle messages through the `binaryMessenger`. */ @JvmOverloads - fun setUp( - binaryMessenger: BinaryMessenger, - api: AutoMapViewApi?, - messageChannelSuffix: String = "", - ) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + fun setUp(binaryMessenger: BinaryMessenger, api: AutoMapViewApi?, messageChannelSuffix: String = "") { + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setAutoMapOptions$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setAutoMapOptions$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val mapOptionsArg = args[0] as AutoMapOptionsDto - val wrapped: List = - try { - api.setAutoMapOptions(mapOptionsArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setAutoMapOptions(mapOptionsArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8146,20 +6920,14 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isMyLocationEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isMyLocationEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - listOf(api.isMyLocationEnabled()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.isMyLocationEnabled()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8167,23 +6935,17 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMyLocationEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMyLocationEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val enabledArg = args[0] as Boolean - val wrapped: List = - try { - api.setMyLocationEnabled(enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setMyLocationEnabled(enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8191,20 +6953,14 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMyLocation$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMyLocation$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - listOf(api.getMyLocation()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.getMyLocation()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8212,20 +6968,14 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMapType$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMapType$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - listOf(api.getMapType()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.getMapType()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8233,23 +6983,17 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapType$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapType$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val mapTypeArg = args[0] as MapTypeDto - val wrapped: List = - try { - api.setMapType(mapTypeArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setMapType(mapTypeArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8257,23 +7001,17 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapStyle$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapStyle$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val styleJsonArg = args[0] as String - val wrapped: List = - try { - api.setMapStyle(styleJsonArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setMapStyle(styleJsonArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8281,20 +7019,14 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getCameraPosition$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getCameraPosition$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - listOf(api.getCameraPosition()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.getCameraPosition()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8302,20 +7034,14 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getVisibleRegion$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getVisibleRegion$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - listOf(api.getVisibleRegion()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.getVisibleRegion()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8323,24 +7049,18 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.followMyLocation$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.followMyLocation$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val perspectiveArg = args[0] as CameraPerspectiveDto val zoomLevelArg = args[1] as Double? - val wrapped: List = - try { - api.followMyLocation(perspectiveArg, zoomLevelArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.followMyLocation(perspectiveArg, zoomLevelArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8348,19 +7068,13 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToCameraPosition$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToCameraPosition$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val cameraPositionArg = args[0] as CameraPositionDto val durationArg = args[1] as Long? - api.animateCameraToCameraPosition(cameraPositionArg, durationArg) { - result: Result -> + api.animateCameraToCameraPosition(cameraPositionArg, durationArg) { result: Result -> val error = result.exceptionOrNull() if (error != null) { reply.reply(MessagesPigeonUtils.wrapError(error)) @@ -8375,12 +7089,7 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLng$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLng$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -8401,20 +7110,14 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLngBounds$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLngBounds$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val boundsArg = args[0] as LatLngBoundsDto val paddingArg = args[1] as Double val durationArg = args[2] as Long? - api.animateCameraToLatLngBounds(boundsArg, paddingArg, durationArg) { - result: Result -> + api.animateCameraToLatLngBounds(boundsArg, paddingArg, durationArg) { result: Result -> val error = result.exceptionOrNull() if (error != null) { reply.reply(MessagesPigeonUtils.wrapError(error)) @@ -8429,20 +7132,14 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLngZoom$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLngZoom$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val pointArg = args[0] as LatLngDto val zoomArg = args[1] as Double val durationArg = args[2] as Long? - api.animateCameraToLatLngZoom(pointArg, zoomArg, durationArg) { result: Result - -> + api.animateCameraToLatLngZoom(pointArg, zoomArg, durationArg) { result: Result -> val error = result.exceptionOrNull() if (error != null) { reply.reply(MessagesPigeonUtils.wrapError(error)) @@ -8457,20 +7154,14 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraByScroll$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraByScroll$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val scrollByDxArg = args[0] as Double val scrollByDyArg = args[1] as Double val durationArg = args[2] as Long? - api.animateCameraByScroll(scrollByDxArg, scrollByDyArg, durationArg) { - result: Result -> + api.animateCameraByScroll(scrollByDxArg, scrollByDyArg, durationArg) { result: Result -> val error = result.exceptionOrNull() if (error != null) { reply.reply(MessagesPigeonUtils.wrapError(error)) @@ -8485,12 +7176,7 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraByZoom$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraByZoom$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -8498,8 +7184,7 @@ interface AutoMapViewApi { val focusDxArg = args[1] as Double? val focusDyArg = args[2] as Double? val durationArg = args[3] as Long? - api.animateCameraByZoom(zoomByArg, focusDxArg, focusDyArg, durationArg) { - result: Result -> + api.animateCameraByZoom(zoomByArg, focusDxArg, focusDyArg, durationArg) { result: Result -> val error = result.exceptionOrNull() if (error != null) { reply.reply(MessagesPigeonUtils.wrapError(error)) @@ -8514,12 +7199,7 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToZoom$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToZoom$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -8540,23 +7220,17 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToCameraPosition$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToCameraPosition$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val cameraPositionArg = args[0] as CameraPositionDto - val wrapped: List = - try { - api.moveCameraToCameraPosition(cameraPositionArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.moveCameraToCameraPosition(cameraPositionArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8564,23 +7238,17 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLng$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLng$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val pointArg = args[0] as LatLngDto - val wrapped: List = - try { - api.moveCameraToLatLng(pointArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.moveCameraToLatLng(pointArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8588,24 +7256,18 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLngBounds$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLngBounds$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val boundsArg = args[0] as LatLngBoundsDto val paddingArg = args[1] as Double - val wrapped: List = - try { - api.moveCameraToLatLngBounds(boundsArg, paddingArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.moveCameraToLatLngBounds(boundsArg, paddingArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8613,24 +7275,18 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLngZoom$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLngZoom$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val pointArg = args[0] as LatLngDto val zoomArg = args[1] as Double - val wrapped: List = - try { - api.moveCameraToLatLngZoom(pointArg, zoomArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.moveCameraToLatLngZoom(pointArg, zoomArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8638,24 +7294,18 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraByScroll$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraByScroll$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val scrollByDxArg = args[0] as Double val scrollByDyArg = args[1] as Double - val wrapped: List = - try { - api.moveCameraByScroll(scrollByDxArg, scrollByDyArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.moveCameraByScroll(scrollByDxArg, scrollByDyArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8663,25 +7313,19 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraByZoom$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraByZoom$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val zoomByArg = args[0] as Double val focusDxArg = args[1] as Double? val focusDyArg = args[2] as Double? - val wrapped: List = - try { - api.moveCameraByZoom(zoomByArg, focusDxArg, focusDyArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.moveCameraByZoom(zoomByArg, focusDxArg, focusDyArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8689,23 +7333,17 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToZoom$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToZoom$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val zoomArg = args[0] as Double - val wrapped: List = - try { - api.moveCameraToZoom(zoomArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.moveCameraToZoom(zoomArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8713,20 +7351,14 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMinZoomPreference$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMinZoomPreference$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - listOf(api.getMinZoomPreference()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.getMinZoomPreference()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8734,20 +7366,14 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMaxZoomPreference$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMaxZoomPreference$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - listOf(api.getMaxZoomPreference()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.getMaxZoomPreference()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8755,21 +7381,15 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.resetMinMaxZoomPreference$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.resetMinMaxZoomPreference$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - api.resetMinMaxZoomPreference() - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.resetMinMaxZoomPreference() + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8777,23 +7397,17 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMinZoomPreference$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMinZoomPreference$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val minZoomPreferenceArg = args[0] as Double - val wrapped: List = - try { - api.setMinZoomPreference(minZoomPreferenceArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setMinZoomPreference(minZoomPreferenceArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8801,23 +7415,17 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMaxZoomPreference$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMaxZoomPreference$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val maxZoomPreferenceArg = args[0] as Double - val wrapped: List = - try { - api.setMaxZoomPreference(maxZoomPreferenceArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setMaxZoomPreference(maxZoomPreferenceArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8825,23 +7433,17 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMyLocationButtonEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMyLocationButtonEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val enabledArg = args[0] as Boolean - val wrapped: List = - try { - api.setMyLocationButtonEnabled(enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setMyLocationButtonEnabled(enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8849,23 +7451,17 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setConsumeMyLocationButtonClickEventsEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setConsumeMyLocationButtonClickEventsEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val enabledArg = args[0] as Boolean - val wrapped: List = - try { - api.setConsumeMyLocationButtonClickEventsEnabled(enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setConsumeMyLocationButtonClickEventsEnabled(enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8873,23 +7469,17 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setZoomGesturesEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setZoomGesturesEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val enabledArg = args[0] as Boolean - val wrapped: List = - try { - api.setZoomGesturesEnabled(enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setZoomGesturesEnabled(enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8897,23 +7487,17 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setZoomControlsEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setZoomControlsEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val enabledArg = args[0] as Boolean - val wrapped: List = - try { - api.setZoomControlsEnabled(enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setZoomControlsEnabled(enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8921,23 +7505,17 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setCompassEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setCompassEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val enabledArg = args[0] as Boolean - val wrapped: List = - try { - api.setCompassEnabled(enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setCompassEnabled(enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8945,23 +7523,17 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setRotateGesturesEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setRotateGesturesEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val enabledArg = args[0] as Boolean - val wrapped: List = - try { - api.setRotateGesturesEnabled(enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setRotateGesturesEnabled(enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8969,23 +7541,17 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setScrollGesturesEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setScrollGesturesEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val enabledArg = args[0] as Boolean - val wrapped: List = - try { - api.setScrollGesturesEnabled(enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setScrollGesturesEnabled(enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8993,23 +7559,17 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setScrollGesturesDuringRotateOrZoomEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setScrollGesturesDuringRotateOrZoomEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val enabledArg = args[0] as Boolean - val wrapped: List = - try { - api.setScrollGesturesDuringRotateOrZoomEnabled(enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setScrollGesturesDuringRotateOrZoomEnabled(enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -9017,23 +7577,17 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTiltGesturesEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTiltGesturesEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val enabledArg = args[0] as Boolean - val wrapped: List = - try { - api.setTiltGesturesEnabled(enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setTiltGesturesEnabled(enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -9041,23 +7595,17 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapToolbarEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapToolbarEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val enabledArg = args[0] as Boolean - val wrapped: List = - try { - api.setMapToolbarEnabled(enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setMapToolbarEnabled(enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -9065,23 +7613,17 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val enabledArg = args[0] as Boolean - val wrapped: List = - try { - api.setTrafficEnabled(enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setTrafficEnabled(enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -9089,23 +7631,17 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficPromptsEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficPromptsEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val enabledArg = args[0] as Boolean - val wrapped: List = - try { - api.setTrafficPromptsEnabled(enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setTrafficPromptsEnabled(enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -9113,23 +7649,17 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficIncidentCardsEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficIncidentCardsEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val enabledArg = args[0] as Boolean - val wrapped: List = - try { - api.setTrafficIncidentCardsEnabled(enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setTrafficIncidentCardsEnabled(enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -9137,23 +7667,17 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setNavigationTripProgressBarEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setNavigationTripProgressBarEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val enabledArg = args[0] as Boolean - val wrapped: List = - try { - api.setNavigationTripProgressBarEnabled(enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setNavigationTripProgressBarEnabled(enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -9161,23 +7685,17 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setSpeedLimitIconEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setSpeedLimitIconEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val enabledArg = args[0] as Boolean - val wrapped: List = - try { - api.setSpeedLimitIconEnabled(enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setSpeedLimitIconEnabled(enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -9185,23 +7703,17 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setSpeedometerEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setSpeedometerEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val enabledArg = args[0] as Boolean - val wrapped: List = - try { - api.setSpeedometerEnabled(enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setSpeedometerEnabled(enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -9209,23 +7721,17 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setNavigationUIEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setNavigationUIEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val enabledArg = args[0] as Boolean - val wrapped: List = - try { - api.setNavigationUIEnabled(enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setNavigationUIEnabled(enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -9233,20 +7739,14 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isMyLocationButtonEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isMyLocationButtonEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - listOf(api.isMyLocationButtonEnabled()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.isMyLocationButtonEnabled()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -9254,20 +7754,14 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isConsumeMyLocationButtonClickEventsEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isConsumeMyLocationButtonClickEventsEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - listOf(api.isConsumeMyLocationButtonClickEventsEnabled()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.isConsumeMyLocationButtonClickEventsEnabled()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -9275,20 +7769,14 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isZoomGesturesEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isZoomGesturesEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - listOf(api.isZoomGesturesEnabled()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.isZoomGesturesEnabled()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -9296,20 +7784,14 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isZoomControlsEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isZoomControlsEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - listOf(api.isZoomControlsEnabled()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.isZoomControlsEnabled()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -9317,20 +7799,14 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isCompassEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isCompassEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - listOf(api.isCompassEnabled()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.isCompassEnabled()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -9338,20 +7814,14 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isRotateGesturesEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isRotateGesturesEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - listOf(api.isRotateGesturesEnabled()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.isRotateGesturesEnabled()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -9359,20 +7829,14 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isScrollGesturesEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isScrollGesturesEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - listOf(api.isScrollGesturesEnabled()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.isScrollGesturesEnabled()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -9380,20 +7844,14 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isScrollGesturesEnabledDuringRotateOrZoom$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isScrollGesturesEnabledDuringRotateOrZoom$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - listOf(api.isScrollGesturesEnabledDuringRotateOrZoom()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.isScrollGesturesEnabledDuringRotateOrZoom()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -9401,20 +7859,14 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTiltGesturesEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTiltGesturesEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - listOf(api.isTiltGesturesEnabled()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.isTiltGesturesEnabled()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -9422,20 +7874,14 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isMapToolbarEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isMapToolbarEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - listOf(api.isMapToolbarEnabled()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.isMapToolbarEnabled()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -9443,20 +7889,14 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTrafficEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTrafficEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - listOf(api.isTrafficEnabled()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.isTrafficEnabled()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -9464,20 +7904,14 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTrafficPromptsEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTrafficPromptsEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - listOf(api.isTrafficPromptsEnabled()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.isTrafficPromptsEnabled()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -9485,20 +7919,14 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTrafficIncidentCardsEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTrafficIncidentCardsEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - listOf(api.isTrafficIncidentCardsEnabled()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.isTrafficIncidentCardsEnabled()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -9506,20 +7934,14 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isNavigationTripProgressBarEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isNavigationTripProgressBarEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - listOf(api.isNavigationTripProgressBarEnabled()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.isNavigationTripProgressBarEnabled()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -9527,20 +7949,14 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isSpeedLimitIconEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isSpeedLimitIconEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - listOf(api.isSpeedLimitIconEnabled()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.isSpeedLimitIconEnabled()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -9548,20 +7964,14 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isSpeedometerEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isSpeedometerEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - listOf(api.isSpeedometerEnabled()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.isSpeedometerEnabled()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -9569,20 +7979,14 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isNavigationUIEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isNavigationUIEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - listOf(api.isNavigationUIEnabled()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.isNavigationUIEnabled()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -9590,20 +7994,14 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isIndoorEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isIndoorEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - listOf(api.isIndoorEnabled()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.isIndoorEnabled()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -9611,23 +8009,17 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setIndoorEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setIndoorEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val enabledArg = args[0] as Boolean - val wrapped: List = - try { - api.setIndoorEnabled(enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setIndoorEnabled(enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -9635,20 +8027,14 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getFocusedIndoorBuilding$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getFocusedIndoorBuilding$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - listOf(api.getFocusedIndoorBuilding()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.getFocusedIndoorBuilding()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -9656,23 +8042,17 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.activateIndoorLevel$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.activateIndoorLevel$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val levelIndexArg = args[0] as Long - val wrapped: List = - try { - api.activateIndoorLevel(levelIndexArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.activateIndoorLevel(levelIndexArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -9680,21 +8060,15 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.showRouteOverview$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.showRouteOverview$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - api.showRouteOverview() - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.showRouteOverview() + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -9702,20 +8076,14 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMarkers$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMarkers$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - listOf(api.getMarkers()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.getMarkers()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -9723,22 +8091,16 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addMarkers$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addMarkers$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val markersArg = args[0] as List - val wrapped: List = - try { - listOf(api.addMarkers(markersArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.addMarkers(markersArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -9746,22 +8108,16 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updateMarkers$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updateMarkers$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val markersArg = args[0] as List - val wrapped: List = - try { - listOf(api.updateMarkers(markersArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.updateMarkers(markersArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -9769,23 +8125,17 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removeMarkers$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removeMarkers$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val markersArg = args[0] as List - val wrapped: List = - try { - api.removeMarkers(markersArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.removeMarkers(markersArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -9793,21 +8143,15 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearMarkers$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearMarkers$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - api.clearMarkers() - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.clearMarkers() + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -9815,21 +8159,15 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clear$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clear$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - api.clear() - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.clear() + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -9837,20 +8175,14 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getPolygons$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getPolygons$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - listOf(api.getPolygons()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.getPolygons()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -9858,22 +8190,16 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addPolygons$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addPolygons$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val polygonsArg = args[0] as List - val wrapped: List = - try { - listOf(api.addPolygons(polygonsArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.addPolygons(polygonsArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -9881,22 +8207,16 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updatePolygons$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updatePolygons$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val polygonsArg = args[0] as List - val wrapped: List = - try { - listOf(api.updatePolygons(polygonsArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.updatePolygons(polygonsArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -9904,23 +8224,17 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removePolygons$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removePolygons$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val polygonsArg = args[0] as List - val wrapped: List = - try { - api.removePolygons(polygonsArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.removePolygons(polygonsArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -9928,21 +8242,15 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearPolygons$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearPolygons$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - api.clearPolygons() - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.clearPolygons() + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -9950,20 +8258,14 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getPolylines$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getPolylines$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - listOf(api.getPolylines()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.getPolylines()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -9971,22 +8273,16 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addPolylines$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addPolylines$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val polylinesArg = args[0] as List - val wrapped: List = - try { - listOf(api.addPolylines(polylinesArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.addPolylines(polylinesArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -9994,22 +8290,16 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updatePolylines$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updatePolylines$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val polylinesArg = args[0] as List - val wrapped: List = - try { - listOf(api.updatePolylines(polylinesArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.updatePolylines(polylinesArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -10017,23 +8307,17 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removePolylines$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removePolylines$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val polylinesArg = args[0] as List - val wrapped: List = - try { - api.removePolylines(polylinesArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.removePolylines(polylinesArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -10041,21 +8325,15 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearPolylines$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearPolylines$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - api.clearPolylines() - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.clearPolylines() + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -10063,20 +8341,14 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getCircles$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getCircles$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - listOf(api.getCircles()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.getCircles()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -10084,22 +8356,16 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addCircles$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addCircles$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val circlesArg = args[0] as List - val wrapped: List = - try { - listOf(api.addCircles(circlesArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.addCircles(circlesArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -10107,22 +8373,16 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updateCircles$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updateCircles$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val circlesArg = args[0] as List - val wrapped: List = - try { - listOf(api.updateCircles(circlesArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.updateCircles(circlesArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -10130,23 +8390,17 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removeCircles$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removeCircles$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val circlesArg = args[0] as List - val wrapped: List = - try { - api.removeCircles(circlesArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.removeCircles(circlesArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -10154,21 +8408,15 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearCircles$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearCircles$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - api.clearCircles() - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.clearCircles() + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -10176,21 +8424,15 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.enableOnCameraChangedEvents$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.enableOnCameraChangedEvents$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - api.enableOnCameraChangedEvents() - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.enableOnCameraChangedEvents() + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -10198,20 +8440,14 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isAutoScreenAvailable$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isAutoScreenAvailable$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - listOf(api.isAutoScreenAvailable()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.isAutoScreenAvailable()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -10219,23 +8455,17 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setPadding$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setPadding$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val paddingArg = args[0] as MapPaddingDto - val wrapped: List = - try { - api.setPadding(paddingArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setPadding(paddingArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -10243,20 +8473,14 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getPadding$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getPadding$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - listOf(api.getPadding()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.getPadding()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -10264,20 +8488,14 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMapColorScheme$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMapColorScheme$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - listOf(api.getMapColorScheme()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.getMapColorScheme()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -10285,23 +8503,17 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapColorScheme$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapColorScheme$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val mapColorSchemeArg = args[0] as MapColorSchemeDto - val wrapped: List = - try { - api.setMapColorScheme(mapColorSchemeArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setMapColorScheme(mapColorSchemeArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -10309,20 +8521,14 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getForceNightMode$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getForceNightMode$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - listOf(api.getForceNightMode()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.getForceNightMode()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -10330,23 +8536,17 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setForceNightMode$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setForceNightMode$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val forceNightModeArg = args[0] as NavigationForceNightModeDto - val wrapped: List = - try { - api.setForceNightMode(forceNightModeArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setForceNightMode(forceNightModeArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -10354,24 +8554,18 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.sendCustomNavigationAutoEvent$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.sendCustomNavigationAutoEvent$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val eventArg = args[0] as String val dataArg = args[1] as Any - val wrapped: List = - try { - api.sendCustomNavigationAutoEvent(eventArg, dataArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.sendCustomNavigationAutoEvent(eventArg, dataArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -10381,26 +8575,18 @@ interface AutoMapViewApi { } } } - /** Generated class from Pigeon that represents Flutter messages that can be called from Kotlin. */ -class AutoViewEventApi( - private val binaryMessenger: BinaryMessenger, - private val messageChannelSuffix: String = "", -) { +class AutoViewEventApi(private val binaryMessenger: BinaryMessenger, private val messageChannelSuffix: String = "") { companion object { /** The codec used by AutoViewEventApi. */ - val codec: MessageCodec by lazy { messagesPigeonCodec() } - } - - fun onCustomNavigationAutoEvent( - eventArg: String, - dataArg: Any, - callback: (Result) -> Unit, - ) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = - "dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onCustomNavigationAutoEvent$separatedMessageChannelSuffix" + val codec: MessageCodec by lazy { + messagesPigeonCodec() + } + } + fun onCustomNavigationAutoEvent(eventArg: String, dataArg: Any, callback: (Result) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onCustomNavigationAutoEvent$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(eventArg, dataArg)) { if (it is List<*>) { @@ -10411,15 +8597,13 @@ class AutoViewEventApi( } } else { callback(Result.failure(MessagesPigeonUtils.createConnectionError(channelName))) - } + } } } - - fun onAutoScreenAvailabilityChanged(isAvailableArg: Boolean, callback: (Result) -> Unit) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = - "dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onAutoScreenAvailabilityChanged$separatedMessageChannelSuffix" + fun onAutoScreenAvailabilityChanged(isAvailableArg: Boolean, callback: (Result) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onAutoScreenAvailabilityChanged$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(isAvailableArg)) { if (it is List<*>) { @@ -10430,15 +8614,13 @@ class AutoViewEventApi( } } else { callback(Result.failure(MessagesPigeonUtils.createConnectionError(channelName))) - } + } } } - - fun onPromptVisibilityChanged(promptVisibleArg: Boolean, callback: (Result) -> Unit) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = - "dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onPromptVisibilityChanged$separatedMessageChannelSuffix" + fun onPromptVisibilityChanged(promptVisibleArg: Boolean, callback: (Result) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onPromptVisibilityChanged$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(promptVisibleArg)) { if (it is List<*>) { @@ -10449,18 +8631,13 @@ class AutoViewEventApi( } } else { callback(Result.failure(MessagesPigeonUtils.createConnectionError(channelName))) - } + } } } - - fun onNavigationUIEnabledChanged( - navigationUIEnabledArg: Boolean, - callback: (Result) -> Unit, - ) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = - "dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onNavigationUIEnabledChanged$separatedMessageChannelSuffix" + fun onNavigationUIEnabledChanged(navigationUIEnabledArg: Boolean, callback: (Result) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onNavigationUIEnabledChanged$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(navigationUIEnabledArg)) { if (it is List<*>) { @@ -10471,18 +8648,13 @@ class AutoViewEventApi( } } else { callback(Result.failure(MessagesPigeonUtils.createConnectionError(channelName))) - } + } } } - - fun onIndoorFocusedBuildingChanged( - buildingArg: IndoorBuildingDto?, - callback: (Result) -> Unit, - ) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = - "dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onIndoorFocusedBuildingChanged$separatedMessageChannelSuffix" + fun onIndoorFocusedBuildingChanged(buildingArg: IndoorBuildingDto?, callback: (Result) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onIndoorFocusedBuildingChanged$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(buildingArg)) { if (it is List<*>) { @@ -10493,18 +8665,13 @@ class AutoViewEventApi( } } else { callback(Result.failure(MessagesPigeonUtils.createConnectionError(channelName))) - } + } } } - - fun onIndoorActiveLevelChanged( - buildingArg: IndoorBuildingDto?, - callback: (Result) -> Unit, - ) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = - "dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onIndoorActiveLevelChanged$separatedMessageChannelSuffix" + fun onIndoorActiveLevelChanged(buildingArg: IndoorBuildingDto?, callback: (Result) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onIndoorActiveLevelChanged$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(buildingArg)) { if (it is List<*>) { @@ -10515,48 +8682,34 @@ class AutoViewEventApi( } } else { callback(Result.failure(MessagesPigeonUtils.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 { messagesPigeonCodec() } - - /** - * Sets up an instance of `NavigationInspector` to handle messages through the - * `binaryMessenger`. - */ + val codec: MessageCodec by lazy { + messagesPigeonCodec() + } + /** Sets up an instance of `NavigationInspector` to handle messages through the `binaryMessenger`. */ @JvmOverloads - fun setUp( - binaryMessenger: BinaryMessenger, - api: NavigationInspector?, - messageChannelSuffix: String = "", - ) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + fun setUp(binaryMessenger: BinaryMessenger, api: NavigationInspector?, messageChannelSuffix: String = "") { + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.NavigationInspector.isViewAttachedToSession$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationInspector.isViewAttachedToSession$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - listOf(api.isViewAttachedToSession(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.isViewAttachedToSession(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { diff --git a/example/lib/pages/navigation.dart b/example/lib/pages/navigation.dart index f8c87c8f..e886109e 100644 --- a/example/lib/pages/navigation.dart +++ b/example/lib/pages/navigation.dart @@ -108,6 +108,8 @@ class _NavigationPageState extends ExamplePageState { IndoorBuilding? _focusedIndoorBuilding; bool _navigationHeaderEnabled = true; + NavigationHeaderStylingOptions _navigationHeaderStylingOptions = + const NavigationHeaderStylingOptions(); bool _navigationFooterEnabled = true; bool _navigationTripProgressBarEnabled = true; bool _navigationUIEnabled = true; @@ -802,6 +804,8 @@ class _NavigationPageState extends ExamplePageState { if (_navigationViewController != null) { final bool navigationHeaderEnabled = await _navigationViewController! .isNavigationHeaderEnabled(); + final NavigationHeaderStylingOptions navigationHeaderStylingOptions = + await _navigationViewController!.getNavigationHeaderStylingOptions(); final bool navigationFooterEnabled = await _navigationViewController! .isNavigationFooterEnabled(); final bool navigationTripProgressBarEnabled = @@ -830,6 +834,7 @@ class _NavigationPageState extends ExamplePageState { setState(() { _navigationHeaderEnabled = navigationHeaderEnabled; + _navigationHeaderStylingOptions = navigationHeaderStylingOptions; _navigationFooterEnabled = navigationFooterEnabled; _navigationTripProgressBarEnabled = navigationTripProgressBarEnabled; _navigationUIEnabled = navigationUIEnabled; @@ -846,6 +851,21 @@ class _NavigationPageState extends ExamplePageState { } } + Future _applyNavigationHeaderStyling( + NavigationHeaderStylingOptions stylingOptions, + ) async { + if (_navigationViewController == null) { + return; + } + await _navigationViewController!.setNavigationHeaderStylingOptions( + stylingOptions, + ); + if (!mounted) return; + setState(() { + _navigationHeaderStylingOptions = stylingOptions; + }); + } + void _onRecenterButtonClickedEvent( NavigationViewRecenterButtonClickedEvent msg, ) { @@ -2135,6 +2155,51 @@ class _NavigationPageState extends ExamplePageState { }); }, ), + Padding( + padding: const EdgeInsets.symmetric( + horizontal: 16, + vertical: 8, + ), + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Text( + 'Header styling example', + style: Theme.of(context).textTheme.titleSmall, + ), + const SizedBox(height: 8), + Wrap( + spacing: 8, + runSpacing: 8, + children: [ + ElevatedButton( + onPressed: () => _applyNavigationHeaderStyling( + const NavigationHeaderStylingOptions( + primaryDayModeBackgroundColor: Colors.blue, + secondaryDayModeBackgroundColor: Colors.red, + primaryNightModeBackgroundColor: Colors.black, + secondaryNightModeBackgroundColor: + Colors.blueGrey, + ), + ), + child: const Text('Apply sample colors'), + ), + ElevatedButton( + onPressed: () => _applyNavigationHeaderStyling( + const NavigationHeaderStylingOptions(), + ), + child: const Text('Reset header colors'), + ), + ], + ), + const SizedBox(height: 8), + Text( + 'Current primary day color: ' + '${_navigationHeaderStylingOptions.primaryDayModeBackgroundColor ?? 'default'}', + ), + ], + ), + ), ExampleSwitch( title: 'Enable footer', initialValue: _navigationFooterEnabled, diff --git a/ios/google_navigation_flutter/Sources/google_navigation_flutter/GoogleMapsNavigationView.swift b/ios/google_navigation_flutter/Sources/google_navigation_flutter/GoogleMapsNavigationView.swift index effa63e9..26049995 100644 --- a/ios/google_navigation_flutter/Sources/google_navigation_flutter/GoogleMapsNavigationView.swift +++ b/ios/google_navigation_flutter/Sources/google_navigation_flutter/GoogleMapsNavigationView.swift @@ -619,6 +619,26 @@ public class GoogleMapsNavigationView: NSObject, FlutterPlatformView, ViewSettle _mapView.settings.isNavigationHeaderEnabled = enabled } + func getNavigationHeaderStylingOptions() -> NavigationHeaderStylingOptionsDto { + NavigationHeaderStylingOptionsDto( + primaryDayModeBackgroundColor: _mapView.settings.navigationHeaderPrimaryBackgroundColor?.toRgb(), + secondaryDayModeBackgroundColor: _mapView.settings.navigationHeaderSecondaryBackgroundColor?.toRgb(), + primaryNightModeBackgroundColor: _mapView.settings.navigationHeaderPrimaryBackgroundColorNightMode?.toRgb(), + secondaryNightModeBackgroundColor: _mapView.settings.navigationHeaderSecondaryBackgroundColorNightMode?.toRgb() + ) + } + + func setNavigationHeaderStylingOptions(_ stylingOptions: NavigationHeaderStylingOptionsDto) { + _mapView.settings.navigationHeaderPrimaryBackgroundColor = stylingOptions + .primaryDayModeBackgroundColor.map { UIColor(from: $0) } + _mapView.settings.navigationHeaderSecondaryBackgroundColor = stylingOptions + .secondaryDayModeBackgroundColor.map { UIColor(from: $0) } + _mapView.settings.navigationHeaderPrimaryBackgroundColorNightMode = stylingOptions + .primaryNightModeBackgroundColor.map { UIColor(from: $0) } + _mapView.settings.navigationHeaderSecondaryBackgroundColorNightMode = stylingOptions + .secondaryNightModeBackgroundColor.map { UIColor(from: $0) } + } + func isNavigationFooterEnabled() -> Bool { _mapView.settings.isNavigationFooterEnabled } diff --git a/ios/google_navigation_flutter/Sources/google_navigation_flutter/GoogleMapsNavigationViewMessageHandler.swift b/ios/google_navigation_flutter/Sources/google_navigation_flutter/GoogleMapsNavigationViewMessageHandler.swift index 12be8479..40b0e053 100644 --- a/ios/google_navigation_flutter/Sources/google_navigation_flutter/GoogleMapsNavigationViewMessageHandler.swift +++ b/ios/google_navigation_flutter/Sources/google_navigation_flutter/GoogleMapsNavigationViewMessageHandler.swift @@ -358,6 +358,17 @@ class GoogleMapsNavigationViewMessageHandler: MapViewApi { try getView(viewId).setNavigationHeaderEnabled(enabled) } + func getNavigationHeaderStylingOptions(viewId: Int64) throws -> NavigationHeaderStylingOptionsDto { + try getView(viewId).getNavigationHeaderStylingOptions() + } + + func setNavigationHeaderStylingOptions( + viewId: Int64, + stylingOptions: NavigationHeaderStylingOptionsDto + ) throws { + try getView(viewId).setNavigationHeaderStylingOptions(stylingOptions) + } + func setNavigationFooterEnabled(viewId: Int64, enabled: Bool) throws { try getView(viewId).setNavigationFooterEnabled(enabled) } 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 15ff33e1..f0592ee6 100644 --- a/ios/google_navigation_flutter/Sources/google_navigation_flutter/messages.g.swift +++ b/ios/google_navigation_flutter/Sources/google_navigation_flutter/messages.g.swift @@ -70,9 +70,7 @@ private func wrapError(_ error: Any) -> [Any?] { } private func createConnectionError(withChannelName channelName: String) -> PigeonError { - return PigeonError( - code: "channel-error", message: "Unable to establish connection on channel: '\(channelName)'.", - details: "") + return PigeonError(code: "channel-error", message: "Unable to establish connection on channel: '\(channelName)'.", details: "") } private func isNullish(_ value: Any?) -> Bool { @@ -127,12 +125,12 @@ func deepEqualsmessages(_ lhs: Any?, _ rhs: Any?) -> Bool { func deepHashmessages(value: Any?, hasher: inout Hasher) { if let valueList = value as? [AnyHashable] { - for item in valueList { deepHashmessages(value: item, hasher: &hasher) } - return + for item in valueList { deepHashmessages(value: item, hasher: &hasher) } + return } if let valueDict = value as? [AnyHashable: AnyHashable] { - for key in valueDict.keys { + for key in valueDict.keys { hasher.combine(key) deepHashmessages(value: valueDict[key]!, hasher: &hasher) } @@ -146,6 +144,8 @@ func deepHashmessages(value: Any?, hasher: inout Hasher) { return hasher.combine(String(describing: value)) } + + /// Describes the type of map to construct. enum MapViewTypeDto: Int { /// Navigation view supports navigation overlay, and current navigation session is displayed on the map. @@ -517,6 +517,7 @@ struct AutoMapOptionsDto: Hashable { /// Determines the initial visibility of the navigation UI on map initialization. var navigationUIEnabledPreference: NavigationUIEnabledPreferenceDto? = nil + // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> AutoMapOptionsDto? { let cameraPosition: CameraPositionDto? = nilOrValue(pigeonVar_list[0]) @@ -524,8 +525,7 @@ struct AutoMapOptionsDto: Hashable { let mapType: MapTypeDto? = nilOrValue(pigeonVar_list[2]) let mapColorScheme: MapColorSchemeDto? = nilOrValue(pigeonVar_list[3]) let forceNightMode: NavigationForceNightModeDto? = nilOrValue(pigeonVar_list[4]) - let navigationUIEnabledPreference: NavigationUIEnabledPreferenceDto? = nilOrValue( - pigeonVar_list[5]) + let navigationUIEnabledPreference: NavigationUIEnabledPreferenceDto? = nilOrValue(pigeonVar_list[5]) return AutoMapOptionsDto( cameraPosition: cameraPosition, @@ -547,8 +547,7 @@ struct AutoMapOptionsDto: Hashable { ] } static func == (lhs: AutoMapOptionsDto, rhs: AutoMapOptionsDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) - } + return deepEqualsmessages(lhs.toList(), rhs.toList()) } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -593,6 +592,7 @@ struct MapOptionsDto: Hashable { /// The map color scheme mode for the map view. var mapColorScheme: MapColorSchemeDto + // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> MapOptionsDto? { let cameraPosition = pigeonVar_list[0] as! CameraPositionDto @@ -652,8 +652,7 @@ struct MapOptionsDto: Hashable { ] } static func == (lhs: MapOptionsDto, rhs: MapOptionsDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) - } + return deepEqualsmessages(lhs.toList(), rhs.toList()) } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -668,6 +667,7 @@ struct NavigationViewOptionsDto: Hashable { /// Controls the navigation night mode for Navigation UI. var forceNightMode: NavigationForceNightModeDto + // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> NavigationViewOptionsDto? { let navigationUIEnabledPreference = pigeonVar_list[0] as! NavigationUIEnabledPreferenceDto @@ -685,8 +685,7 @@ struct NavigationViewOptionsDto: Hashable { ] } static func == (lhs: NavigationViewOptionsDto, rhs: NavigationViewOptionsDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) - } + return deepEqualsmessages(lhs.toList(), rhs.toList()) } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -703,6 +702,7 @@ struct ViewCreationOptionsDto: Hashable { var mapOptions: MapOptionsDto var navigationViewOptions: NavigationViewOptionsDto? = nil + // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> ViewCreationOptionsDto? { let mapViewType = pigeonVar_list[0] as! MapViewTypeDto @@ -723,8 +723,7 @@ struct ViewCreationOptionsDto: Hashable { ] } static func == (lhs: ViewCreationOptionsDto, rhs: ViewCreationOptionsDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) - } + return deepEqualsmessages(lhs.toList(), rhs.toList()) } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -737,6 +736,7 @@ struct CameraPositionDto: Hashable { var tilt: Double var zoom: Double + // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> CameraPositionDto? { let bearing = pigeonVar_list[0] as! Double @@ -760,8 +760,7 @@ struct CameraPositionDto: Hashable { ] } static func == (lhs: CameraPositionDto, rhs: CameraPositionDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) - } + return deepEqualsmessages(lhs.toList(), rhs.toList()) } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -774,6 +773,7 @@ struct MarkerDto: Hashable { /// Options for marker var options: MarkerOptionsDto + // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> MarkerDto? { let markerId = pigeonVar_list[0] as! String @@ -791,8 +791,7 @@ struct MarkerDto: Hashable { ] } static func == (lhs: MarkerDto, rhs: MarkerDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) - } + return deepEqualsmessages(lhs.toList(), rhs.toList()) } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -812,6 +811,7 @@ struct MarkerOptionsDto: Hashable { var zIndex: Double var icon: ImageDescriptorDto + // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> MarkerOptionsDto? { let alpha = pigeonVar_list[0] as! Double @@ -856,8 +856,7 @@ struct MarkerOptionsDto: Hashable { ] } static func == (lhs: MarkerOptionsDto, rhs: MarkerOptionsDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) - } + return deepEqualsmessages(lhs.toList(), rhs.toList()) } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -871,6 +870,7 @@ struct ImageDescriptorDto: Hashable { var height: Double? = nil var type: RegisteredImageTypeDto + // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> ImageDescriptorDto? { let registeredImageId: String? = nilOrValue(pigeonVar_list[0]) @@ -897,8 +897,7 @@ struct ImageDescriptorDto: Hashable { ] } static func == (lhs: ImageDescriptorDto, rhs: ImageDescriptorDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) - } + return deepEqualsmessages(lhs.toList(), rhs.toList()) } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -910,6 +909,7 @@ struct InfoWindowDto: Hashable { var snippet: String? = nil var anchor: MarkerAnchorDto + // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> InfoWindowDto? { let title: String? = nilOrValue(pigeonVar_list[0]) @@ -930,8 +930,7 @@ struct InfoWindowDto: Hashable { ] } static func == (lhs: InfoWindowDto, rhs: InfoWindowDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) - } + return deepEqualsmessages(lhs.toList(), rhs.toList()) } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -942,6 +941,7 @@ struct MarkerAnchorDto: Hashable { var u: Double var v: Double + // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> MarkerAnchorDto? { let u = pigeonVar_list[0] as! Double @@ -959,8 +959,7 @@ struct MarkerAnchorDto: Hashable { ] } static func == (lhs: MarkerAnchorDto, rhs: MarkerAnchorDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) - } + return deepEqualsmessages(lhs.toList(), rhs.toList()) } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -979,6 +978,7 @@ struct PointOfInterestDto: Hashable { /// The geographical coordinates of the POI. var latLng: LatLngDto + // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> PointOfInterestDto? { let placeID = pigeonVar_list[0] as! String @@ -999,8 +999,7 @@ struct PointOfInterestDto: Hashable { ] } static func == (lhs: PointOfInterestDto, rhs: PointOfInterestDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) - } + return deepEqualsmessages(lhs.toList(), rhs.toList()) } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -1015,6 +1014,7 @@ struct IndoorLevelDto: Hashable { /// Short display name of the level. var shortName: String? = nil + // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> IndoorLevelDto? { let name: String? = nilOrValue(pigeonVar_list[0]) @@ -1032,8 +1032,7 @@ struct IndoorLevelDto: Hashable { ] } static func == (lhs: IndoorLevelDto, rhs: IndoorLevelDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) - } + return deepEqualsmessages(lhs.toList(), rhs.toList()) } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -1052,6 +1051,7 @@ struct IndoorBuildingDto: Hashable { /// Whether building is mostly underground, if known. var isUnderground: Bool? = nil + // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> IndoorBuildingDto? { let levels = pigeonVar_list[0] as! [IndoorLevelDto?] @@ -1075,8 +1075,7 @@ struct IndoorBuildingDto: Hashable { ] } static func == (lhs: IndoorBuildingDto, rhs: IndoorBuildingDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) - } + return deepEqualsmessages(lhs.toList(), rhs.toList()) } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -1087,6 +1086,7 @@ struct PolygonDto: Hashable { var polygonId: String var options: PolygonOptionsDto + // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> PolygonDto? { let polygonId = pigeonVar_list[0] as! String @@ -1104,8 +1104,7 @@ struct PolygonDto: Hashable { ] } static func == (lhs: PolygonDto, rhs: PolygonDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) - } + return deepEqualsmessages(lhs.toList(), rhs.toList()) } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -1123,6 +1122,7 @@ struct PolygonOptionsDto: Hashable { var visible: Bool var zIndex: Double + // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> PolygonOptionsDto? { let points = pigeonVar_list[0] as! [LatLngDto?] @@ -1161,8 +1161,7 @@ struct PolygonOptionsDto: Hashable { ] } static func == (lhs: PolygonOptionsDto, rhs: PolygonOptionsDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) - } + return deepEqualsmessages(lhs.toList(), rhs.toList()) } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -1172,6 +1171,7 @@ struct PolygonOptionsDto: Hashable { struct PolygonHoleDto: Hashable { var points: [LatLngDto?] + // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> PolygonHoleDto? { let points = pigeonVar_list[0] as! [LatLngDto?] @@ -1186,8 +1186,7 @@ struct PolygonHoleDto: Hashable { ] } static func == (lhs: PolygonHoleDto, rhs: PolygonHoleDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) - } + return deepEqualsmessages(lhs.toList(), rhs.toList()) } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -1199,6 +1198,7 @@ struct StyleSpanStrokeStyleDto: Hashable { var fromColor: Int64? = nil var toColor: Int64? = nil + // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> StyleSpanStrokeStyleDto? { let solidColor: Int64? = nilOrValue(pigeonVar_list[0]) @@ -1219,8 +1219,7 @@ struct StyleSpanStrokeStyleDto: Hashable { ] } static func == (lhs: StyleSpanStrokeStyleDto, rhs: StyleSpanStrokeStyleDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) - } + return deepEqualsmessages(lhs.toList(), rhs.toList()) } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -1231,6 +1230,7 @@ struct StyleSpanDto: Hashable { var length: Double var style: StyleSpanStrokeStyleDto + // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> StyleSpanDto? { let length = pigeonVar_list[0] as! Double @@ -1248,8 +1248,7 @@ struct StyleSpanDto: Hashable { ] } static func == (lhs: StyleSpanDto, rhs: StyleSpanDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) - } + return deepEqualsmessages(lhs.toList(), rhs.toList()) } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -1260,6 +1259,7 @@ struct PolylineDto: Hashable { var polylineId: String var options: PolylineOptionsDto + // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> PolylineDto? { let polylineId = pigeonVar_list[0] as! String @@ -1277,8 +1277,7 @@ struct PolylineDto: Hashable { ] } static func == (lhs: PolylineDto, rhs: PolylineDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) - } + return deepEqualsmessages(lhs.toList(), rhs.toList()) } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -1289,6 +1288,7 @@ struct PatternItemDto: Hashable { var type: PatternTypeDto var length: Double? = nil + // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> PatternItemDto? { let type = pigeonVar_list[0] as! PatternTypeDto @@ -1306,8 +1306,7 @@ struct PatternItemDto: Hashable { ] } static func == (lhs: PatternItemDto, rhs: PatternItemDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) - } + return deepEqualsmessages(lhs.toList(), rhs.toList()) } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -1326,6 +1325,7 @@ struct PolylineOptionsDto: Hashable { var zIndex: Double? = nil var spans: [StyleSpanDto?] + // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> PolylineOptionsDto? { let points: [LatLngDto?]? = nilOrValue(pigeonVar_list[0]) @@ -1367,8 +1367,7 @@ struct PolylineOptionsDto: Hashable { ] } static func == (lhs: PolylineOptionsDto, rhs: PolylineOptionsDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) - } + return deepEqualsmessages(lhs.toList(), rhs.toList()) } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -1381,6 +1380,7 @@ struct CircleDto: Hashable { /// Options for circle. var options: CircleOptionsDto + // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> CircleDto? { let circleId = pigeonVar_list[0] as! String @@ -1398,8 +1398,7 @@ struct CircleDto: Hashable { ] } static func == (lhs: CircleDto, rhs: CircleDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) - } + return deepEqualsmessages(lhs.toList(), rhs.toList()) } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -1417,6 +1416,7 @@ struct CircleOptionsDto: Hashable { var visible: Bool var clickable: Bool + // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> CircleOptionsDto? { let position = pigeonVar_list[0] as! LatLngDto @@ -1455,8 +1455,7 @@ struct CircleOptionsDto: Hashable { ] } static func == (lhs: CircleOptionsDto, rhs: CircleOptionsDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) - } + return deepEqualsmessages(lhs.toList(), rhs.toList()) } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -1469,6 +1468,7 @@ struct MapPaddingDto: Hashable { var bottom: Int64 var right: Int64 + // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> MapPaddingDto? { let top = pigeonVar_list[0] as! Int64 @@ -1492,8 +1492,49 @@ struct MapPaddingDto: Hashable { ] } static func == (lhs: MapPaddingDto, rhs: MapPaddingDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) + return deepEqualsmessages(lhs.toList(), rhs.toList()) } + func hash(into hasher: inout Hasher) { + deepHashmessages(value: toList(), hasher: &hasher) } +} + +/// Navigation header background colors. +/// +/// All color values are 32-bit ARGB integers (format: 0xAARRGGBB). +/// Any null value resets that specific color to the native SDK default. +/// +/// Generated class from Pigeon that represents data sent in messages. +struct NavigationHeaderStylingOptionsDto: Hashable { + var primaryDayModeBackgroundColor: Int64? = nil + var secondaryDayModeBackgroundColor: Int64? = nil + var primaryNightModeBackgroundColor: Int64? = nil + var secondaryNightModeBackgroundColor: Int64? = nil + + + // swift-format-ignore: AlwaysUseLowerCamelCase + static func fromList(_ pigeonVar_list: [Any?]) -> NavigationHeaderStylingOptionsDto? { + let primaryDayModeBackgroundColor: Int64? = nilOrValue(pigeonVar_list[0]) + let secondaryDayModeBackgroundColor: Int64? = nilOrValue(pigeonVar_list[1]) + let primaryNightModeBackgroundColor: Int64? = nilOrValue(pigeonVar_list[2]) + let secondaryNightModeBackgroundColor: Int64? = nilOrValue(pigeonVar_list[3]) + + return NavigationHeaderStylingOptionsDto( + primaryDayModeBackgroundColor: primaryDayModeBackgroundColor, + secondaryDayModeBackgroundColor: secondaryDayModeBackgroundColor, + primaryNightModeBackgroundColor: primaryNightModeBackgroundColor, + secondaryNightModeBackgroundColor: secondaryNightModeBackgroundColor + ) + } + func toList() -> [Any?] { + return [ + primaryDayModeBackgroundColor, + secondaryDayModeBackgroundColor, + primaryNightModeBackgroundColor, + secondaryNightModeBackgroundColor, + ] + } + static func == (lhs: NavigationHeaderStylingOptionsDto, rhs: NavigationHeaderStylingOptionsDto) -> Bool { + return deepEqualsmessages(lhs.toList(), rhs.toList()) } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -1504,6 +1545,7 @@ struct RouteTokenOptionsDto: Hashable { var routeToken: String var travelMode: TravelModeDto? = nil + // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> RouteTokenOptionsDto? { let routeToken = pigeonVar_list[0] as! String @@ -1521,8 +1563,7 @@ struct RouteTokenOptionsDto: Hashable { ] } static func == (lhs: RouteTokenOptionsDto, rhs: RouteTokenOptionsDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) - } + return deepEqualsmessages(lhs.toList(), rhs.toList()) } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -1535,6 +1576,7 @@ struct DestinationsDto: Hashable { var routingOptions: RoutingOptionsDto? = nil var routeTokenOptions: RouteTokenOptionsDto? = nil + // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> DestinationsDto? { let waypoints = pigeonVar_list[0] as! [NavigationWaypointDto?] @@ -1558,8 +1600,7 @@ struct DestinationsDto: Hashable { ] } static func == (lhs: DestinationsDto, rhs: DestinationsDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) - } + return deepEqualsmessages(lhs.toList(), rhs.toList()) } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -1576,6 +1617,7 @@ struct RoutingOptionsDto: Hashable { var avoidHighways: Bool? = nil var locationTimeoutMs: Int64? = nil + // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> RoutingOptionsDto? { let alternateRoutesStrategy: AlternateRoutesStrategyDto? = nilOrValue(pigeonVar_list[0]) @@ -1611,8 +1653,7 @@ struct RoutingOptionsDto: Hashable { ] } static func == (lhs: RoutingOptionsDto, rhs: RoutingOptionsDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) - } + return deepEqualsmessages(lhs.toList(), rhs.toList()) } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -1626,6 +1667,7 @@ struct NavigationDisplayOptionsDto: Hashable { /// Deprecated: This option now defaults to true. var showTrafficLights: Bool? = nil + // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> NavigationDisplayOptionsDto? { let showDestinationMarkers: Bool? = nilOrValue(pigeonVar_list[0]) @@ -1646,8 +1688,7 @@ struct NavigationDisplayOptionsDto: Hashable { ] } static func == (lhs: NavigationDisplayOptionsDto, rhs: NavigationDisplayOptionsDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) - } + return deepEqualsmessages(lhs.toList(), rhs.toList()) } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -1661,6 +1702,7 @@ struct NavigationWaypointDto: Hashable { var preferSameSideOfRoad: Bool? = nil var preferredSegmentHeading: Int64? = nil + // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> NavigationWaypointDto? { let title = pigeonVar_list[0] as! String @@ -1687,8 +1729,7 @@ struct NavigationWaypointDto: Hashable { ] } static func == (lhs: NavigationWaypointDto, rhs: NavigationWaypointDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) - } + return deepEqualsmessages(lhs.toList(), rhs.toList()) } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -1699,6 +1740,7 @@ struct ContinueToNextDestinationResponseDto: Hashable { var waypoint: NavigationWaypointDto? = nil var routeStatus: RouteStatusDto? = nil + // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> ContinueToNextDestinationResponseDto? { let waypoint: NavigationWaypointDto? = nilOrValue(pigeonVar_list[0]) @@ -1715,11 +1757,8 @@ struct ContinueToNextDestinationResponseDto: Hashable { routeStatus, ] } - static func == ( - lhs: ContinueToNextDestinationResponseDto, rhs: ContinueToNextDestinationResponseDto - ) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) - } + static func == (lhs: ContinueToNextDestinationResponseDto, rhs: ContinueToNextDestinationResponseDto) -> Bool { + return deepEqualsmessages(lhs.toList(), rhs.toList()) } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -1731,6 +1770,7 @@ struct NavigationTimeAndDistanceDto: Hashable { var distance: Double var delaySeverity: TrafficDelaySeverityDto + // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> NavigationTimeAndDistanceDto? { let time = pigeonVar_list[0] as! Double @@ -1751,8 +1791,7 @@ struct NavigationTimeAndDistanceDto: Hashable { ] } static func == (lhs: NavigationTimeAndDistanceDto, rhs: NavigationTimeAndDistanceDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) - } + return deepEqualsmessages(lhs.toList(), rhs.toList()) } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -1764,6 +1803,7 @@ struct NavigationAudioGuidanceSettingsDto: Hashable { var isVibrationEnabled: Bool? = nil var guidanceType: AudioGuidanceTypeDto? = nil + // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> NavigationAudioGuidanceSettingsDto? { let isBluetoothAudioEnabled: Bool? = nilOrValue(pigeonVar_list[0]) @@ -1783,11 +1823,8 @@ struct NavigationAudioGuidanceSettingsDto: Hashable { guidanceType, ] } - static func == (lhs: NavigationAudioGuidanceSettingsDto, rhs: NavigationAudioGuidanceSettingsDto) - -> Bool - { - return deepEqualsmessages(lhs.toList(), rhs.toList()) - } + static func == (lhs: NavigationAudioGuidanceSettingsDto, rhs: NavigationAudioGuidanceSettingsDto) -> Bool { + return deepEqualsmessages(lhs.toList(), rhs.toList()) } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -1797,6 +1834,7 @@ struct NavigationAudioGuidanceSettingsDto: Hashable { struct SimulationOptionsDto: Hashable { var speedMultiplier: Double + // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> SimulationOptionsDto? { let speedMultiplier = pigeonVar_list[0] as! Double @@ -1811,8 +1849,7 @@ struct SimulationOptionsDto: Hashable { ] } static func == (lhs: SimulationOptionsDto, rhs: SimulationOptionsDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) - } + return deepEqualsmessages(lhs.toList(), rhs.toList()) } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -1823,6 +1860,7 @@ struct LatLngDto: Hashable { var latitude: Double var longitude: Double + // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> LatLngDto? { let latitude = pigeonVar_list[0] as! Double @@ -1840,8 +1878,7 @@ struct LatLngDto: Hashable { ] } static func == (lhs: LatLngDto, rhs: LatLngDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) - } + return deepEqualsmessages(lhs.toList(), rhs.toList()) } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -1852,6 +1889,7 @@ struct LatLngBoundsDto: Hashable { var southwest: LatLngDto var northeast: LatLngDto + // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> LatLngBoundsDto? { let southwest = pigeonVar_list[0] as! LatLngDto @@ -1869,8 +1907,7 @@ struct LatLngBoundsDto: Hashable { ] } static func == (lhs: LatLngBoundsDto, rhs: LatLngBoundsDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) - } + return deepEqualsmessages(lhs.toList(), rhs.toList()) } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -1881,6 +1918,7 @@ struct SpeedingUpdatedEventDto: Hashable { var percentageAboveLimit: Double var severity: SpeedAlertSeverityDto + // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> SpeedingUpdatedEventDto? { let percentageAboveLimit = pigeonVar_list[0] as! Double @@ -1898,8 +1936,7 @@ struct SpeedingUpdatedEventDto: Hashable { ] } static func == (lhs: SpeedingUpdatedEventDto, rhs: SpeedingUpdatedEventDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) - } + return deepEqualsmessages(lhs.toList(), rhs.toList()) } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -1910,6 +1947,7 @@ struct GpsAvailabilityChangeEventDto: Hashable { var isGpsLost: Bool var isGpsValidForNavigation: Bool + // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> GpsAvailabilityChangeEventDto? { let isGpsLost = pigeonVar_list[0] as! Bool @@ -1927,8 +1965,7 @@ struct GpsAvailabilityChangeEventDto: Hashable { ] } static func == (lhs: GpsAvailabilityChangeEventDto, rhs: GpsAvailabilityChangeEventDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) - } + return deepEqualsmessages(lhs.toList(), rhs.toList()) } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -1939,6 +1976,7 @@ struct SpeedAlertOptionsThresholdPercentageDto: Hashable { var percentage: Double var severity: SpeedAlertSeverityDto + // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> SpeedAlertOptionsThresholdPercentageDto? { let percentage = pigeonVar_list[0] as! Double @@ -1955,11 +1993,8 @@ struct SpeedAlertOptionsThresholdPercentageDto: Hashable { severity, ] } - static func == ( - lhs: SpeedAlertOptionsThresholdPercentageDto, rhs: SpeedAlertOptionsThresholdPercentageDto - ) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) - } + static func == (lhs: SpeedAlertOptionsThresholdPercentageDto, rhs: SpeedAlertOptionsThresholdPercentageDto) -> Bool { + return deepEqualsmessages(lhs.toList(), rhs.toList()) } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -1971,6 +2006,7 @@ struct SpeedAlertOptionsDto: Hashable { var minorSpeedAlertThresholdPercentage: Double var majorSpeedAlertThresholdPercentage: Double + // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> SpeedAlertOptionsDto? { let severityUpgradeDurationSeconds = pigeonVar_list[0] as! Double @@ -1991,8 +2027,7 @@ struct SpeedAlertOptionsDto: Hashable { ] } static func == (lhs: SpeedAlertOptionsDto, rhs: SpeedAlertOptionsDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) - } + return deepEqualsmessages(lhs.toList(), rhs.toList()) } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -2004,10 +2039,9 @@ struct RouteSegmentTrafficDataRoadStretchRenderingDataDto: Hashable { var lengthMeters: Int64 var offsetMeters: Int64 + // swift-format-ignore: AlwaysUseLowerCamelCase - static func fromList(_ pigeonVar_list: [Any?]) - -> RouteSegmentTrafficDataRoadStretchRenderingDataDto? - { + static func fromList(_ pigeonVar_list: [Any?]) -> RouteSegmentTrafficDataRoadStretchRenderingDataDto? { let style = pigeonVar_list[0] as! RouteSegmentTrafficDataRoadStretchRenderingDataStyleDto let lengthMeters = pigeonVar_list[1] as! Int64 let offsetMeters = pigeonVar_list[2] as! Int64 @@ -2025,12 +2059,8 @@ struct RouteSegmentTrafficDataRoadStretchRenderingDataDto: Hashable { offsetMeters, ] } - static func == ( - lhs: RouteSegmentTrafficDataRoadStretchRenderingDataDto, - rhs: RouteSegmentTrafficDataRoadStretchRenderingDataDto - ) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) - } + static func == (lhs: RouteSegmentTrafficDataRoadStretchRenderingDataDto, rhs: RouteSegmentTrafficDataRoadStretchRenderingDataDto) -> Bool { + return deepEqualsmessages(lhs.toList(), rhs.toList()) } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -2041,11 +2071,11 @@ struct RouteSegmentTrafficDataDto: Hashable { var status: RouteSegmentTrafficDataStatusDto var roadStretchRenderingDataList: [RouteSegmentTrafficDataRoadStretchRenderingDataDto?] + // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> RouteSegmentTrafficDataDto? { let status = pigeonVar_list[0] as! RouteSegmentTrafficDataStatusDto - let roadStretchRenderingDataList = - pigeonVar_list[1] as! [RouteSegmentTrafficDataRoadStretchRenderingDataDto?] + let roadStretchRenderingDataList = pigeonVar_list[1] as! [RouteSegmentTrafficDataRoadStretchRenderingDataDto?] return RouteSegmentTrafficDataDto( status: status, @@ -2059,8 +2089,7 @@ struct RouteSegmentTrafficDataDto: Hashable { ] } static func == (lhs: RouteSegmentTrafficDataDto, rhs: RouteSegmentTrafficDataDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) - } + return deepEqualsmessages(lhs.toList(), rhs.toList()) } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -2073,6 +2102,7 @@ struct RouteSegmentDto: Hashable { var latLngs: [LatLngDto?]? = nil var destinationWaypoint: NavigationWaypointDto? = nil + // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> RouteSegmentDto? { let trafficData: RouteSegmentTrafficDataDto? = nilOrValue(pigeonVar_list[0]) @@ -2096,8 +2126,7 @@ struct RouteSegmentDto: Hashable { ] } static func == (lhs: RouteSegmentDto, rhs: RouteSegmentDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) - } + return deepEqualsmessages(lhs.toList(), rhs.toList()) } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -2112,6 +2141,7 @@ struct LaneDirectionDto: Hashable { /// Whether this lane is recommended. var isRecommended: Bool + // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> LaneDirectionDto? { let laneShape = pigeonVar_list[0] as! LaneShapeDto @@ -2129,8 +2159,7 @@ struct LaneDirectionDto: Hashable { ] } static func == (lhs: LaneDirectionDto, rhs: LaneDirectionDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) - } + return deepEqualsmessages(lhs.toList(), rhs.toList()) } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -2143,6 +2172,7 @@ struct LaneDto: Hashable { /// List of possible directions a driver can follow when using this lane at the end of the respective route step var laneDirections: [LaneDirectionDto?] + // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> LaneDto? { let laneDirections = pigeonVar_list[0] as! [LaneDirectionDto?] @@ -2157,8 +2187,7 @@ struct LaneDto: Hashable { ] } static func == (lhs: LaneDto, rhs: LaneDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) - } + return deepEqualsmessages(lhs.toList(), rhs.toList()) } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -2198,6 +2227,7 @@ struct StepInfoDto: Hashable { /// This image is generated only if step image generation option includes lane images. var lanesImage: ImageDescriptorDto? = nil + // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> StepInfoDto? { let distanceFromPrevStepMeters: Int64? = nilOrValue(pigeonVar_list[0]) @@ -2248,8 +2278,7 @@ struct StepInfoDto: Hashable { ] } static func == (lhs: StepInfoDto, rhs: StepInfoDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) - } + return deepEqualsmessages(lhs.toList(), rhs.toList()) } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -2289,6 +2318,7 @@ struct NavInfoDto: Hashable { /// Android only. var timeToNextDestinationSeconds: Int64? = nil + // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> NavInfoDto? { let navState = pigeonVar_list[0] as! NavStateDto @@ -2330,8 +2360,7 @@ struct NavInfoDto: Hashable { ] } static func == (lhs: NavInfoDto, rhs: NavInfoDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) - } + return deepEqualsmessages(lhs.toList(), rhs.toList()) } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -2355,6 +2384,7 @@ struct TermsAndConditionsUIParamsDto: Hashable { /// Text color for the cancel button. var cancelButtonTextColor: Int64? = nil + // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> TermsAndConditionsUIParamsDto? { let backgroundColor: Int64? = nilOrValue(pigeonVar_list[0]) @@ -2381,8 +2411,7 @@ struct TermsAndConditionsUIParamsDto: Hashable { ] } static func == (lhs: TermsAndConditionsUIParamsDto, rhs: TermsAndConditionsUIParamsDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) - } + return deepEqualsmessages(lhs.toList(), rhs.toList()) } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -2399,6 +2428,7 @@ struct StepImageGenerationOptionsDto: Hashable { /// Defaults to false if not specified. var generateLaneImages: Bool? = nil + // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> StepImageGenerationOptionsDto? { let generateManeuverImages: Bool? = nilOrValue(pigeonVar_list[0]) @@ -2416,8 +2446,7 @@ struct StepImageGenerationOptionsDto: Hashable { ] } static func == (lhs: StepImageGenerationOptionsDto, rhs: StepImageGenerationOptionsDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) - } + return deepEqualsmessages(lhs.toList(), rhs.toList()) } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -2631,53 +2660,54 @@ private class MessagesPigeonCodecReader: FlutterStandardReader { case 178: return MapPaddingDto.fromList(self.readValue() as! [Any?]) case 179: - return RouteTokenOptionsDto.fromList(self.readValue() as! [Any?]) + return NavigationHeaderStylingOptionsDto.fromList(self.readValue() as! [Any?]) case 180: - return DestinationsDto.fromList(self.readValue() as! [Any?]) + return RouteTokenOptionsDto.fromList(self.readValue() as! [Any?]) case 181: - return RoutingOptionsDto.fromList(self.readValue() as! [Any?]) + return DestinationsDto.fromList(self.readValue() as! [Any?]) case 182: - return NavigationDisplayOptionsDto.fromList(self.readValue() as! [Any?]) + return RoutingOptionsDto.fromList(self.readValue() as! [Any?]) case 183: - return NavigationWaypointDto.fromList(self.readValue() as! [Any?]) + return NavigationDisplayOptionsDto.fromList(self.readValue() as! [Any?]) case 184: - return ContinueToNextDestinationResponseDto.fromList(self.readValue() as! [Any?]) + return NavigationWaypointDto.fromList(self.readValue() as! [Any?]) case 185: - return NavigationTimeAndDistanceDto.fromList(self.readValue() as! [Any?]) + return ContinueToNextDestinationResponseDto.fromList(self.readValue() as! [Any?]) case 186: - return NavigationAudioGuidanceSettingsDto.fromList(self.readValue() as! [Any?]) + return NavigationTimeAndDistanceDto.fromList(self.readValue() as! [Any?]) case 187: - return SimulationOptionsDto.fromList(self.readValue() as! [Any?]) + return NavigationAudioGuidanceSettingsDto.fromList(self.readValue() as! [Any?]) case 188: - return LatLngDto.fromList(self.readValue() as! [Any?]) + return SimulationOptionsDto.fromList(self.readValue() as! [Any?]) case 189: - return LatLngBoundsDto.fromList(self.readValue() as! [Any?]) + return LatLngDto.fromList(self.readValue() as! [Any?]) case 190: - return SpeedingUpdatedEventDto.fromList(self.readValue() as! [Any?]) + return LatLngBoundsDto.fromList(self.readValue() as! [Any?]) case 191: - return GpsAvailabilityChangeEventDto.fromList(self.readValue() as! [Any?]) + return SpeedingUpdatedEventDto.fromList(self.readValue() as! [Any?]) case 192: - return SpeedAlertOptionsThresholdPercentageDto.fromList(self.readValue() as! [Any?]) + return GpsAvailabilityChangeEventDto.fromList(self.readValue() as! [Any?]) case 193: - return SpeedAlertOptionsDto.fromList(self.readValue() as! [Any?]) + return SpeedAlertOptionsThresholdPercentageDto.fromList(self.readValue() as! [Any?]) case 194: - return RouteSegmentTrafficDataRoadStretchRenderingDataDto.fromList( - self.readValue() as! [Any?]) + return SpeedAlertOptionsDto.fromList(self.readValue() as! [Any?]) case 195: - return RouteSegmentTrafficDataDto.fromList(self.readValue() as! [Any?]) + return RouteSegmentTrafficDataRoadStretchRenderingDataDto.fromList(self.readValue() as! [Any?]) case 196: - return RouteSegmentDto.fromList(self.readValue() as! [Any?]) + return RouteSegmentTrafficDataDto.fromList(self.readValue() as! [Any?]) case 197: - return LaneDirectionDto.fromList(self.readValue() as! [Any?]) + return RouteSegmentDto.fromList(self.readValue() as! [Any?]) case 198: - return LaneDto.fromList(self.readValue() as! [Any?]) + return LaneDirectionDto.fromList(self.readValue() as! [Any?]) case 199: - return StepInfoDto.fromList(self.readValue() as! [Any?]) + return LaneDto.fromList(self.readValue() as! [Any?]) case 200: - return NavInfoDto.fromList(self.readValue() as! [Any?]) + return StepInfoDto.fromList(self.readValue() as! [Any?]) case 201: - return TermsAndConditionsUIParamsDto.fromList(self.readValue() as! [Any?]) + return NavInfoDto.fromList(self.readValue() as! [Any?]) case 202: + return TermsAndConditionsUIParamsDto.fromList(self.readValue() as! [Any?]) + case 203: return StepImageGenerationOptionsDto.fromList(self.readValue() as! [Any?]) default: return super.readValue(ofType: type) @@ -2837,78 +2867,81 @@ private class MessagesPigeonCodecWriter: FlutterStandardWriter { } else if let value = value as? MapPaddingDto { super.writeByte(178) super.writeValue(value.toList()) - } else if let value = value as? RouteTokenOptionsDto { + } else if let value = value as? NavigationHeaderStylingOptionsDto { super.writeByte(179) super.writeValue(value.toList()) - } else if let value = value as? DestinationsDto { + } else if let value = value as? RouteTokenOptionsDto { super.writeByte(180) super.writeValue(value.toList()) - } else if let value = value as? RoutingOptionsDto { + } else if let value = value as? DestinationsDto { super.writeByte(181) super.writeValue(value.toList()) - } else if let value = value as? NavigationDisplayOptionsDto { + } else if let value = value as? RoutingOptionsDto { super.writeByte(182) super.writeValue(value.toList()) - } else if let value = value as? NavigationWaypointDto { + } else if let value = value as? NavigationDisplayOptionsDto { super.writeByte(183) super.writeValue(value.toList()) - } else if let value = value as? ContinueToNextDestinationResponseDto { + } else if let value = value as? NavigationWaypointDto { super.writeByte(184) super.writeValue(value.toList()) - } else if let value = value as? NavigationTimeAndDistanceDto { + } else if let value = value as? ContinueToNextDestinationResponseDto { super.writeByte(185) super.writeValue(value.toList()) - } else if let value = value as? NavigationAudioGuidanceSettingsDto { + } else if let value = value as? NavigationTimeAndDistanceDto { super.writeByte(186) super.writeValue(value.toList()) - } else if let value = value as? SimulationOptionsDto { + } else if let value = value as? NavigationAudioGuidanceSettingsDto { super.writeByte(187) super.writeValue(value.toList()) - } else if let value = value as? LatLngDto { + } else if let value = value as? SimulationOptionsDto { super.writeByte(188) super.writeValue(value.toList()) - } else if let value = value as? LatLngBoundsDto { + } else if let value = value as? LatLngDto { super.writeByte(189) super.writeValue(value.toList()) - } else if let value = value as? SpeedingUpdatedEventDto { + } else if let value = value as? LatLngBoundsDto { super.writeByte(190) super.writeValue(value.toList()) - } else if let value = value as? GpsAvailabilityChangeEventDto { + } else if let value = value as? SpeedingUpdatedEventDto { super.writeByte(191) super.writeValue(value.toList()) - } else if let value = value as? SpeedAlertOptionsThresholdPercentageDto { + } else if let value = value as? GpsAvailabilityChangeEventDto { super.writeByte(192) super.writeValue(value.toList()) - } else if let value = value as? SpeedAlertOptionsDto { + } else if let value = value as? SpeedAlertOptionsThresholdPercentageDto { super.writeByte(193) super.writeValue(value.toList()) - } else if let value = value as? RouteSegmentTrafficDataRoadStretchRenderingDataDto { + } else if let value = value as? SpeedAlertOptionsDto { super.writeByte(194) super.writeValue(value.toList()) - } else if let value = value as? RouteSegmentTrafficDataDto { + } else if let value = value as? RouteSegmentTrafficDataRoadStretchRenderingDataDto { super.writeByte(195) super.writeValue(value.toList()) - } else if let value = value as? RouteSegmentDto { + } else if let value = value as? RouteSegmentTrafficDataDto { super.writeByte(196) super.writeValue(value.toList()) - } else if let value = value as? LaneDirectionDto { + } else if let value = value as? RouteSegmentDto { super.writeByte(197) super.writeValue(value.toList()) - } else if let value = value as? LaneDto { + } else if let value = value as? LaneDirectionDto { super.writeByte(198) super.writeValue(value.toList()) - } else if let value = value as? StepInfoDto { + } else if let value = value as? LaneDto { super.writeByte(199) super.writeValue(value.toList()) - } else if let value = value as? NavInfoDto { + } else if let value = value as? StepInfoDto { super.writeByte(200) super.writeValue(value.toList()) - } else if let value = value as? TermsAndConditionsUIParamsDto { + } else if let value = value as? NavInfoDto { super.writeByte(201) super.writeValue(value.toList()) - } else if let value = value as? StepImageGenerationOptionsDto { + } else if let value = value as? TermsAndConditionsUIParamsDto { super.writeByte(202) super.writeValue(value.toList()) + } else if let value = value as? StepImageGenerationOptionsDto { + super.writeByte(203) + super.writeValue(value.toList()) } else { super.writeValue(value) } @@ -2929,6 +2962,7 @@ class MessagesPigeonCodec: FlutterStandardMessageCodec, @unchecked Sendable { static let shared = MessagesPigeonCodec(readerWriter: MessagesPigeonCodecReaderWriter()) } + /// Dummy interface to force generation of the platform view creation params. /// Pigeon only generates messages if the messages are used in API. /// [ViewCreationOptionsDto] is encoded and decoded directly to generate a @@ -2945,14 +2979,9 @@ protocol ViewCreationApi { class ViewCreationApiSetup { static var codec: FlutterStandardMessageCodec { MessagesPigeonCodec.shared } /// Sets up an instance of `ViewCreationApi` to handle messages through the `binaryMessenger`. - static func setUp( - binaryMessenger: FlutterBinaryMessenger, api: ViewCreationApi?, - messageChannelSuffix: String = "" - ) { + static func setUp(binaryMessenger: FlutterBinaryMessenger, api: ViewCreationApi?, messageChannelSuffix: String = "") { let channelSuffix = messageChannelSuffix.count > 0 ? ".\(messageChannelSuffix)" : "" - let createChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.ViewCreationApi.create\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let createChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.ViewCreationApi.create\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { createChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -2982,6 +3011,8 @@ protocol MapViewApi { func setNavigationTripProgressBarEnabled(viewId: Int64, enabled: Bool) throws func isNavigationHeaderEnabled(viewId: Int64) throws -> Bool func setNavigationHeaderEnabled(viewId: Int64, enabled: Bool) throws + func getNavigationHeaderStylingOptions(viewId: Int64) throws -> NavigationHeaderStylingOptionsDto + func setNavigationHeaderStylingOptions(viewId: Int64, stylingOptions: NavigationHeaderStylingOptionsDto) throws func isNavigationFooterEnabled(viewId: Int64) throws -> Bool func setNavigationFooterEnabled(viewId: Int64, enabled: Bool) throws func isRecenterButtonEnabled(viewId: Int64) throws -> Bool @@ -3036,27 +3067,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 @@ -3104,13 +3121,9 @@ protocol MapViewApi { class MapViewApiSetup { static var codec: FlutterStandardMessageCodec { MessagesPigeonCodec.shared } /// Sets up an instance of `MapViewApi` to handle messages through the `binaryMessenger`. - static func setUp( - binaryMessenger: FlutterBinaryMessenger, api: MapViewApi?, messageChannelSuffix: String = "" - ) { + static func setUp(binaryMessenger: FlutterBinaryMessenger, api: MapViewApi?, messageChannelSuffix: String = "") { let channelSuffix = messageChannelSuffix.count > 0 ? ".\(messageChannelSuffix)" : "" - let awaitMapReadyChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.awaitMapReady\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let awaitMapReadyChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.awaitMapReady\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { awaitMapReadyChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3127,10 +3140,7 @@ class MapViewApiSetup { } else { awaitMapReadyChannel.setMessageHandler(nil) } - let isMyLocationEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMyLocationEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let isMyLocationEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMyLocationEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { isMyLocationEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3145,10 +3155,7 @@ class MapViewApiSetup { } else { isMyLocationEnabledChannel.setMessageHandler(nil) } - let setMyLocationEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMyLocationEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let setMyLocationEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMyLocationEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { setMyLocationEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3164,9 +3171,7 @@ class MapViewApiSetup { } else { setMyLocationEnabledChannel.setMessageHandler(nil) } - let getMyLocationChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMyLocation\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let getMyLocationChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMyLocation\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { getMyLocationChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3181,9 +3186,7 @@ class MapViewApiSetup { } else { getMyLocationChannel.setMessageHandler(nil) } - let getMapTypeChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMapType\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let getMapTypeChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMapType\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { getMapTypeChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3198,9 +3201,7 @@ class MapViewApiSetup { } else { getMapTypeChannel.setMessageHandler(nil) } - let setMapTypeChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapType\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let setMapTypeChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapType\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { setMapTypeChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3216,9 +3217,7 @@ class MapViewApiSetup { } else { setMapTypeChannel.setMessageHandler(nil) } - let setMapStyleChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapStyle\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let setMapStyleChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapStyle\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { setMapStyleChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3234,10 +3233,7 @@ class MapViewApiSetup { } else { setMapStyleChannel.setMessageHandler(nil) } - let isNavigationTripProgressBarEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationTripProgressBarEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let isNavigationTripProgressBarEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationTripProgressBarEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { isNavigationTripProgressBarEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3252,10 +3248,7 @@ class MapViewApiSetup { } else { isNavigationTripProgressBarEnabledChannel.setMessageHandler(nil) } - let setNavigationTripProgressBarEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationTripProgressBarEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let setNavigationTripProgressBarEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationTripProgressBarEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { setNavigationTripProgressBarEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3271,10 +3264,7 @@ class MapViewApiSetup { } else { setNavigationTripProgressBarEnabledChannel.setMessageHandler(nil) } - let isNavigationHeaderEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationHeaderEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let isNavigationHeaderEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationHeaderEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { isNavigationHeaderEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3289,10 +3279,7 @@ class MapViewApiSetup { } else { isNavigationHeaderEnabledChannel.setMessageHandler(nil) } - let setNavigationHeaderEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationHeaderEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let setNavigationHeaderEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationHeaderEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { setNavigationHeaderEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3308,10 +3295,38 @@ class MapViewApiSetup { } else { setNavigationHeaderEnabledChannel.setMessageHandler(nil) } - let isNavigationFooterEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationFooterEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let getNavigationHeaderStylingOptionsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getNavigationHeaderStylingOptions\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { + getNavigationHeaderStylingOptionsChannel.setMessageHandler { message, reply in + let args = message as! [Any?] + let viewIdArg = args[0] as! Int64 + do { + let result = try api.getNavigationHeaderStylingOptions(viewId: viewIdArg) + reply(wrapResult(result)) + } catch { + reply(wrapError(error)) + } + } + } else { + getNavigationHeaderStylingOptionsChannel.setMessageHandler(nil) + } + let setNavigationHeaderStylingOptionsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationHeaderStylingOptions\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + if let api = api { + setNavigationHeaderStylingOptionsChannel.setMessageHandler { message, reply in + let args = message as! [Any?] + let viewIdArg = args[0] as! Int64 + let stylingOptionsArg = args[1] as! NavigationHeaderStylingOptionsDto + do { + try api.setNavigationHeaderStylingOptions(viewId: viewIdArg, stylingOptions: stylingOptionsArg) + reply(wrapResult(nil)) + } catch { + reply(wrapError(error)) + } + } + } else { + setNavigationHeaderStylingOptionsChannel.setMessageHandler(nil) + } + let isNavigationFooterEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationFooterEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { isNavigationFooterEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3326,10 +3341,7 @@ class MapViewApiSetup { } else { isNavigationFooterEnabledChannel.setMessageHandler(nil) } - let setNavigationFooterEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationFooterEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let setNavigationFooterEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationFooterEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { setNavigationFooterEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3345,10 +3357,7 @@ class MapViewApiSetup { } else { setNavigationFooterEnabledChannel.setMessageHandler(nil) } - let isRecenterButtonEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isRecenterButtonEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let isRecenterButtonEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isRecenterButtonEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { isRecenterButtonEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3363,10 +3372,7 @@ class MapViewApiSetup { } else { isRecenterButtonEnabledChannel.setMessageHandler(nil) } - let setRecenterButtonEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setRecenterButtonEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let setRecenterButtonEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setRecenterButtonEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { setRecenterButtonEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3382,10 +3388,7 @@ class MapViewApiSetup { } else { setRecenterButtonEnabledChannel.setMessageHandler(nil) } - let isSpeedLimitIconEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isSpeedLimitIconEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let isSpeedLimitIconEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isSpeedLimitIconEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { isSpeedLimitIconEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3400,10 +3403,7 @@ class MapViewApiSetup { } else { isSpeedLimitIconEnabledChannel.setMessageHandler(nil) } - let setSpeedLimitIconEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setSpeedLimitIconEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let setSpeedLimitIconEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setSpeedLimitIconEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { setSpeedLimitIconEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3419,10 +3419,7 @@ class MapViewApiSetup { } else { setSpeedLimitIconEnabledChannel.setMessageHandler(nil) } - let isSpeedometerEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isSpeedometerEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let isSpeedometerEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isSpeedometerEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { isSpeedometerEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3437,10 +3434,7 @@ class MapViewApiSetup { } else { isSpeedometerEnabledChannel.setMessageHandler(nil) } - let setSpeedometerEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setSpeedometerEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let setSpeedometerEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setSpeedometerEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { setSpeedometerEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3456,10 +3450,7 @@ class MapViewApiSetup { } else { setSpeedometerEnabledChannel.setMessageHandler(nil) } - let isNavigationUIEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationUIEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let isNavigationUIEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationUIEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { isNavigationUIEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3474,10 +3465,7 @@ class MapViewApiSetup { } else { isNavigationUIEnabledChannel.setMessageHandler(nil) } - let setNavigationUIEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationUIEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let setNavigationUIEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationUIEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { setNavigationUIEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3493,10 +3481,7 @@ class MapViewApiSetup { } else { setNavigationUIEnabledChannel.setMessageHandler(nil) } - let isMyLocationButtonEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMyLocationButtonEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let isMyLocationButtonEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMyLocationButtonEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { isMyLocationButtonEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3511,10 +3496,7 @@ class MapViewApiSetup { } else { isMyLocationButtonEnabledChannel.setMessageHandler(nil) } - let setMyLocationButtonEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMyLocationButtonEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let setMyLocationButtonEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMyLocationButtonEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { setMyLocationButtonEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3530,10 +3512,7 @@ class MapViewApiSetup { } else { setMyLocationButtonEnabledChannel.setMessageHandler(nil) } - let isConsumeMyLocationButtonClickEventsEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isConsumeMyLocationButtonClickEventsEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let isConsumeMyLocationButtonClickEventsEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isConsumeMyLocationButtonClickEventsEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { isConsumeMyLocationButtonClickEventsEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3548,18 +3527,14 @@ class MapViewApiSetup { } else { isConsumeMyLocationButtonClickEventsEnabledChannel.setMessageHandler(nil) } - let setConsumeMyLocationButtonClickEventsEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setConsumeMyLocationButtonClickEventsEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let setConsumeMyLocationButtonClickEventsEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setConsumeMyLocationButtonClickEventsEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { setConsumeMyLocationButtonClickEventsEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] as! Int64 let enabledArg = args[1] as! Bool do { - try api.setConsumeMyLocationButtonClickEventsEnabled( - viewId: viewIdArg, enabled: enabledArg) + try api.setConsumeMyLocationButtonClickEventsEnabled(viewId: viewIdArg, enabled: enabledArg) reply(wrapResult(nil)) } catch { reply(wrapError(error)) @@ -3568,10 +3543,7 @@ class MapViewApiSetup { } else { setConsumeMyLocationButtonClickEventsEnabledChannel.setMessageHandler(nil) } - let isZoomGesturesEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isZoomGesturesEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let isZoomGesturesEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isZoomGesturesEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { isZoomGesturesEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3586,10 +3558,7 @@ class MapViewApiSetup { } else { isZoomGesturesEnabledChannel.setMessageHandler(nil) } - let setZoomGesturesEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setZoomGesturesEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let setZoomGesturesEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setZoomGesturesEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { setZoomGesturesEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3605,10 +3574,7 @@ class MapViewApiSetup { } else { setZoomGesturesEnabledChannel.setMessageHandler(nil) } - let isZoomControlsEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isZoomControlsEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let isZoomControlsEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isZoomControlsEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { isZoomControlsEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3623,10 +3589,7 @@ class MapViewApiSetup { } else { isZoomControlsEnabledChannel.setMessageHandler(nil) } - let setZoomControlsEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setZoomControlsEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let setZoomControlsEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setZoomControlsEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { setZoomControlsEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3642,10 +3605,7 @@ class MapViewApiSetup { } else { setZoomControlsEnabledChannel.setMessageHandler(nil) } - let isCompassEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isCompassEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let isCompassEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isCompassEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { isCompassEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3660,10 +3620,7 @@ class MapViewApiSetup { } else { isCompassEnabledChannel.setMessageHandler(nil) } - let setCompassEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setCompassEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let setCompassEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setCompassEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { setCompassEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3679,10 +3636,7 @@ class MapViewApiSetup { } else { setCompassEnabledChannel.setMessageHandler(nil) } - let isRotateGesturesEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isRotateGesturesEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let isRotateGesturesEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isRotateGesturesEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { isRotateGesturesEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3697,10 +3651,7 @@ class MapViewApiSetup { } else { isRotateGesturesEnabledChannel.setMessageHandler(nil) } - let setRotateGesturesEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setRotateGesturesEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let setRotateGesturesEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setRotateGesturesEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { setRotateGesturesEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3716,10 +3667,7 @@ class MapViewApiSetup { } else { setRotateGesturesEnabledChannel.setMessageHandler(nil) } - let isScrollGesturesEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isScrollGesturesEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let isScrollGesturesEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isScrollGesturesEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { isScrollGesturesEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3734,10 +3682,7 @@ class MapViewApiSetup { } else { isScrollGesturesEnabledChannel.setMessageHandler(nil) } - let setScrollGesturesEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setScrollGesturesEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let setScrollGesturesEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setScrollGesturesEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { setScrollGesturesEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3753,10 +3698,7 @@ class MapViewApiSetup { } else { setScrollGesturesEnabledChannel.setMessageHandler(nil) } - let isScrollGesturesEnabledDuringRotateOrZoomChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isScrollGesturesEnabledDuringRotateOrZoom\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let isScrollGesturesEnabledDuringRotateOrZoomChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isScrollGesturesEnabledDuringRotateOrZoom\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { isScrollGesturesEnabledDuringRotateOrZoomChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3771,10 +3713,7 @@ class MapViewApiSetup { } else { isScrollGesturesEnabledDuringRotateOrZoomChannel.setMessageHandler(nil) } - let setScrollGesturesDuringRotateOrZoomEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setScrollGesturesDuringRotateOrZoomEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let setScrollGesturesDuringRotateOrZoomEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setScrollGesturesDuringRotateOrZoomEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { setScrollGesturesDuringRotateOrZoomEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3790,10 +3729,7 @@ class MapViewApiSetup { } else { setScrollGesturesDuringRotateOrZoomEnabledChannel.setMessageHandler(nil) } - let isTiltGesturesEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTiltGesturesEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let isTiltGesturesEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTiltGesturesEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { isTiltGesturesEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3808,10 +3744,7 @@ class MapViewApiSetup { } else { isTiltGesturesEnabledChannel.setMessageHandler(nil) } - let setTiltGesturesEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTiltGesturesEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let setTiltGesturesEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTiltGesturesEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { setTiltGesturesEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3827,10 +3760,7 @@ class MapViewApiSetup { } else { setTiltGesturesEnabledChannel.setMessageHandler(nil) } - let isMapToolbarEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMapToolbarEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let isMapToolbarEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMapToolbarEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { isMapToolbarEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3845,10 +3775,7 @@ class MapViewApiSetup { } else { isMapToolbarEnabledChannel.setMessageHandler(nil) } - let setMapToolbarEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapToolbarEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let setMapToolbarEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapToolbarEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { setMapToolbarEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3864,10 +3791,7 @@ class MapViewApiSetup { } else { setMapToolbarEnabledChannel.setMessageHandler(nil) } - let isTrafficEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let isTrafficEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { isTrafficEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3882,10 +3806,7 @@ class MapViewApiSetup { } else { isTrafficEnabledChannel.setMessageHandler(nil) } - let setTrafficEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let setTrafficEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { setTrafficEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3901,10 +3822,7 @@ class MapViewApiSetup { } else { setTrafficEnabledChannel.setMessageHandler(nil) } - let isTrafficIncidentCardsEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficIncidentCardsEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let isTrafficIncidentCardsEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficIncidentCardsEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { isTrafficIncidentCardsEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3919,10 +3837,7 @@ class MapViewApiSetup { } else { isTrafficIncidentCardsEnabledChannel.setMessageHandler(nil) } - let setTrafficIncidentCardsEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficIncidentCardsEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let setTrafficIncidentCardsEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficIncidentCardsEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { setTrafficIncidentCardsEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3938,10 +3853,7 @@ class MapViewApiSetup { } else { setTrafficIncidentCardsEnabledChannel.setMessageHandler(nil) } - let isTrafficPromptsEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficPromptsEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let isTrafficPromptsEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficPromptsEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { isTrafficPromptsEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3956,10 +3868,7 @@ class MapViewApiSetup { } else { isTrafficPromptsEnabledChannel.setMessageHandler(nil) } - let setTrafficPromptsEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficPromptsEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let setTrafficPromptsEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficPromptsEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { setTrafficPromptsEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3975,10 +3884,7 @@ class MapViewApiSetup { } else { setTrafficPromptsEnabledChannel.setMessageHandler(nil) } - let isReportIncidentButtonEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isReportIncidentButtonEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let isReportIncidentButtonEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isReportIncidentButtonEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { isReportIncidentButtonEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3993,10 +3899,7 @@ class MapViewApiSetup { } else { isReportIncidentButtonEnabledChannel.setMessageHandler(nil) } - let setReportIncidentButtonEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setReportIncidentButtonEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let setReportIncidentButtonEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setReportIncidentButtonEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { setReportIncidentButtonEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4012,10 +3915,7 @@ class MapViewApiSetup { } else { setReportIncidentButtonEnabledChannel.setMessageHandler(nil) } - let isIncidentReportingAvailableChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isIncidentReportingAvailable\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let isIncidentReportingAvailableChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isIncidentReportingAvailable\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { isIncidentReportingAvailableChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4030,10 +3930,7 @@ class MapViewApiSetup { } else { isIncidentReportingAvailableChannel.setMessageHandler(nil) } - let showReportIncidentsPanelChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.showReportIncidentsPanel\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let showReportIncidentsPanelChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.showReportIncidentsPanel\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { showReportIncidentsPanelChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4048,10 +3945,7 @@ class MapViewApiSetup { } else { showReportIncidentsPanelChannel.setMessageHandler(nil) } - let isBuildingsEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isBuildingsEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let isBuildingsEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isBuildingsEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { isBuildingsEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4066,10 +3960,7 @@ class MapViewApiSetup { } else { isBuildingsEnabledChannel.setMessageHandler(nil) } - let setBuildingsEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setBuildingsEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let setBuildingsEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setBuildingsEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { setBuildingsEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4085,10 +3976,7 @@ class MapViewApiSetup { } else { setBuildingsEnabledChannel.setMessageHandler(nil) } - let isIndoorEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isIndoorEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let isIndoorEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isIndoorEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { isIndoorEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4103,10 +3991,7 @@ class MapViewApiSetup { } else { isIndoorEnabledChannel.setMessageHandler(nil) } - let setIndoorEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setIndoorEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let setIndoorEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setIndoorEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { setIndoorEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4122,10 +4007,7 @@ class MapViewApiSetup { } else { setIndoorEnabledChannel.setMessageHandler(nil) } - let isIndoorLevelPickerEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isIndoorLevelPickerEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let isIndoorLevelPickerEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isIndoorLevelPickerEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { isIndoorLevelPickerEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4140,10 +4022,7 @@ class MapViewApiSetup { } else { isIndoorLevelPickerEnabledChannel.setMessageHandler(nil) } - let setIndoorLevelPickerEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setIndoorLevelPickerEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let setIndoorLevelPickerEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setIndoorLevelPickerEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { setIndoorLevelPickerEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4159,10 +4038,7 @@ class MapViewApiSetup { } else { setIndoorLevelPickerEnabledChannel.setMessageHandler(nil) } - let getFocusedIndoorBuildingChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getFocusedIndoorBuilding\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let getFocusedIndoorBuildingChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getFocusedIndoorBuilding\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { getFocusedIndoorBuildingChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4180,10 +4056,7 @@ class MapViewApiSetup { /// Activates the indoor level at [levelIndex] within the currently focused /// indoor building. Throws if no building is focused or the index is out of /// range. - let activateIndoorLevelChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.activateIndoorLevel\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let activateIndoorLevelChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.activateIndoorLevel\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { activateIndoorLevelChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4199,10 +4072,7 @@ class MapViewApiSetup { } else { activateIndoorLevelChannel.setMessageHandler(nil) } - let getCameraPositionChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getCameraPosition\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let getCameraPositionChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getCameraPosition\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { getCameraPositionChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4217,10 +4087,7 @@ class MapViewApiSetup { } else { getCameraPositionChannel.setMessageHandler(nil) } - let getVisibleRegionChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getVisibleRegion\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let getVisibleRegionChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getVisibleRegion\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { getVisibleRegionChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4235,10 +4102,7 @@ class MapViewApiSetup { } else { getVisibleRegionChannel.setMessageHandler(nil) } - let followMyLocationChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.followMyLocation\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let followMyLocationChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.followMyLocation\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { followMyLocationChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4246,8 +4110,7 @@ class MapViewApiSetup { let perspectiveArg = args[1] as! CameraPerspectiveDto let zoomLevelArg: Double? = nilOrValue(args[2]) do { - try api.followMyLocation( - viewId: viewIdArg, perspective: perspectiveArg, zoomLevel: zoomLevelArg) + try api.followMyLocation(viewId: viewIdArg, perspective: perspectiveArg, zoomLevel: zoomLevelArg) reply(wrapResult(nil)) } catch { reply(wrapError(error)) @@ -4256,19 +4119,14 @@ class MapViewApiSetup { } else { followMyLocationChannel.setMessageHandler(nil) } - let animateCameraToCameraPositionChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToCameraPosition\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let animateCameraToCameraPositionChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToCameraPosition\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { animateCameraToCameraPositionChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] as! Int64 let cameraPositionArg = args[1] as! CameraPositionDto let durationArg: Int64? = nilOrValue(args[2]) - api.animateCameraToCameraPosition( - viewId: viewIdArg, cameraPosition: cameraPositionArg, duration: durationArg - ) { result in + api.animateCameraToCameraPosition(viewId: viewIdArg, cameraPosition: cameraPositionArg, duration: durationArg) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -4280,18 +4138,14 @@ class MapViewApiSetup { } else { animateCameraToCameraPositionChannel.setMessageHandler(nil) } - let animateCameraToLatLngChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLng\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let animateCameraToLatLngChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLng\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { animateCameraToLatLngChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] as! Int64 let pointArg = args[1] as! LatLngDto let durationArg: Int64? = nilOrValue(args[2]) - api.animateCameraToLatLng(viewId: viewIdArg, point: pointArg, duration: durationArg) { - result in + api.animateCameraToLatLng(viewId: viewIdArg, point: pointArg, duration: durationArg) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -4303,10 +4157,7 @@ class MapViewApiSetup { } else { animateCameraToLatLngChannel.setMessageHandler(nil) } - let animateCameraToLatLngBoundsChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLngBounds\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let animateCameraToLatLngBoundsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLngBounds\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { animateCameraToLatLngBoundsChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4314,9 +4165,7 @@ class MapViewApiSetup { let boundsArg = args[1] as! LatLngBoundsDto let paddingArg = args[2] as! Double let durationArg: Int64? = nilOrValue(args[3]) - api.animateCameraToLatLngBounds( - viewId: viewIdArg, bounds: boundsArg, padding: paddingArg, duration: durationArg - ) { result in + api.animateCameraToLatLngBounds(viewId: viewIdArg, bounds: boundsArg, padding: paddingArg, duration: durationArg) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -4328,10 +4177,7 @@ class MapViewApiSetup { } else { animateCameraToLatLngBoundsChannel.setMessageHandler(nil) } - let animateCameraToLatLngZoomChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLngZoom\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let animateCameraToLatLngZoomChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLngZoom\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { animateCameraToLatLngZoomChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4339,9 +4185,7 @@ class MapViewApiSetup { let pointArg = args[1] as! LatLngDto let zoomArg = args[2] as! Double let durationArg: Int64? = nilOrValue(args[3]) - api.animateCameraToLatLngZoom( - viewId: viewIdArg, point: pointArg, zoom: zoomArg, duration: durationArg - ) { result in + api.animateCameraToLatLngZoom(viewId: viewIdArg, point: pointArg, zoom: zoomArg, duration: durationArg) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -4353,10 +4197,7 @@ class MapViewApiSetup { } else { animateCameraToLatLngZoomChannel.setMessageHandler(nil) } - let animateCameraByScrollChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraByScroll\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let animateCameraByScrollChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraByScroll\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { animateCameraByScrollChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4364,10 +4205,7 @@ class MapViewApiSetup { let scrollByDxArg = args[1] as! Double let scrollByDyArg = args[2] as! Double let durationArg: Int64? = nilOrValue(args[3]) - api.animateCameraByScroll( - viewId: viewIdArg, scrollByDx: scrollByDxArg, scrollByDy: scrollByDyArg, - duration: durationArg - ) { result in + api.animateCameraByScroll(viewId: viewIdArg, scrollByDx: scrollByDxArg, scrollByDy: scrollByDyArg, duration: durationArg) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -4379,10 +4217,7 @@ class MapViewApiSetup { } else { animateCameraByScrollChannel.setMessageHandler(nil) } - let animateCameraByZoomChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraByZoom\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let animateCameraByZoomChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraByZoom\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { animateCameraByZoomChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4391,10 +4226,7 @@ class MapViewApiSetup { let focusDxArg: Double? = nilOrValue(args[2]) let focusDyArg: Double? = nilOrValue(args[3]) let durationArg: Int64? = nilOrValue(args[4]) - api.animateCameraByZoom( - viewId: viewIdArg, zoomBy: zoomByArg, focusDx: focusDxArg, focusDy: focusDyArg, - duration: durationArg - ) { result in + api.animateCameraByZoom(viewId: viewIdArg, zoomBy: zoomByArg, focusDx: focusDxArg, focusDy: focusDyArg, duration: durationArg) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -4406,10 +4238,7 @@ class MapViewApiSetup { } else { animateCameraByZoomChannel.setMessageHandler(nil) } - let animateCameraToZoomChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToZoom\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let animateCameraToZoomChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToZoom\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { animateCameraToZoomChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4428,10 +4257,7 @@ class MapViewApiSetup { } else { animateCameraToZoomChannel.setMessageHandler(nil) } - let moveCameraToCameraPositionChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToCameraPosition\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let moveCameraToCameraPositionChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToCameraPosition\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { moveCameraToCameraPositionChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4447,10 +4273,7 @@ class MapViewApiSetup { } else { moveCameraToCameraPositionChannel.setMessageHandler(nil) } - let moveCameraToLatLngChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLng\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let moveCameraToLatLngChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLng\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { moveCameraToLatLngChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4466,10 +4289,7 @@ class MapViewApiSetup { } else { moveCameraToLatLngChannel.setMessageHandler(nil) } - let moveCameraToLatLngBoundsChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLngBounds\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let moveCameraToLatLngBoundsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLngBounds\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { moveCameraToLatLngBoundsChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4477,8 +4297,7 @@ class MapViewApiSetup { let boundsArg = args[1] as! LatLngBoundsDto let paddingArg = args[2] as! Double do { - try api.moveCameraToLatLngBounds( - viewId: viewIdArg, bounds: boundsArg, padding: paddingArg) + try api.moveCameraToLatLngBounds(viewId: viewIdArg, bounds: boundsArg, padding: paddingArg) reply(wrapResult(nil)) } catch { reply(wrapError(error)) @@ -4487,10 +4306,7 @@ class MapViewApiSetup { } else { moveCameraToLatLngBoundsChannel.setMessageHandler(nil) } - let moveCameraToLatLngZoomChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLngZoom\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let moveCameraToLatLngZoomChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLngZoom\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { moveCameraToLatLngZoomChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4507,10 +4323,7 @@ class MapViewApiSetup { } else { moveCameraToLatLngZoomChannel.setMessageHandler(nil) } - let moveCameraByScrollChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraByScroll\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let moveCameraByScrollChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraByScroll\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { moveCameraByScrollChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4518,8 +4331,7 @@ class MapViewApiSetup { let scrollByDxArg = args[1] as! Double let scrollByDyArg = args[2] as! Double do { - try api.moveCameraByScroll( - viewId: viewIdArg, scrollByDx: scrollByDxArg, scrollByDy: scrollByDyArg) + try api.moveCameraByScroll(viewId: viewIdArg, scrollByDx: scrollByDxArg, scrollByDy: scrollByDyArg) reply(wrapResult(nil)) } catch { reply(wrapError(error)) @@ -4528,10 +4340,7 @@ class MapViewApiSetup { } else { moveCameraByScrollChannel.setMessageHandler(nil) } - let moveCameraByZoomChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraByZoom\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let moveCameraByZoomChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraByZoom\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { moveCameraByZoomChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4540,8 +4349,7 @@ class MapViewApiSetup { let focusDxArg: Double? = nilOrValue(args[2]) let focusDyArg: Double? = nilOrValue(args[3]) do { - try api.moveCameraByZoom( - viewId: viewIdArg, zoomBy: zoomByArg, focusDx: focusDxArg, focusDy: focusDyArg) + try api.moveCameraByZoom(viewId: viewIdArg, zoomBy: zoomByArg, focusDx: focusDxArg, focusDy: focusDyArg) reply(wrapResult(nil)) } catch { reply(wrapError(error)) @@ -4550,10 +4358,7 @@ class MapViewApiSetup { } else { moveCameraByZoomChannel.setMessageHandler(nil) } - let moveCameraToZoomChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToZoom\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let moveCameraToZoomChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToZoom\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { moveCameraToZoomChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4569,10 +4374,7 @@ class MapViewApiSetup { } else { moveCameraToZoomChannel.setMessageHandler(nil) } - let showRouteOverviewChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.showRouteOverview\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let showRouteOverviewChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.showRouteOverview\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { showRouteOverviewChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4587,10 +4389,7 @@ class MapViewApiSetup { } else { showRouteOverviewChannel.setMessageHandler(nil) } - let getMinZoomPreferenceChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMinZoomPreference\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let getMinZoomPreferenceChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMinZoomPreference\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { getMinZoomPreferenceChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4605,10 +4404,7 @@ class MapViewApiSetup { } else { getMinZoomPreferenceChannel.setMessageHandler(nil) } - let getMaxZoomPreferenceChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMaxZoomPreference\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let getMaxZoomPreferenceChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMaxZoomPreference\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { getMaxZoomPreferenceChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4623,10 +4419,7 @@ class MapViewApiSetup { } else { getMaxZoomPreferenceChannel.setMessageHandler(nil) } - let resetMinMaxZoomPreferenceChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.resetMinMaxZoomPreference\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let resetMinMaxZoomPreferenceChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.resetMinMaxZoomPreference\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { resetMinMaxZoomPreferenceChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4641,10 +4434,7 @@ class MapViewApiSetup { } else { resetMinMaxZoomPreferenceChannel.setMessageHandler(nil) } - let setMinZoomPreferenceChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMinZoomPreference\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let setMinZoomPreferenceChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMinZoomPreference\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { setMinZoomPreferenceChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4660,10 +4450,7 @@ class MapViewApiSetup { } else { setMinZoomPreferenceChannel.setMessageHandler(nil) } - let setMaxZoomPreferenceChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMaxZoomPreference\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let setMaxZoomPreferenceChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMaxZoomPreference\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { setMaxZoomPreferenceChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4679,9 +4466,7 @@ class MapViewApiSetup { } else { setMaxZoomPreferenceChannel.setMessageHandler(nil) } - let getMarkersChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMarkers\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let getMarkersChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMarkers\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { getMarkersChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4696,9 +4481,7 @@ class MapViewApiSetup { } else { getMarkersChannel.setMessageHandler(nil) } - let addMarkersChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addMarkers\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let addMarkersChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addMarkers\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { addMarkersChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4714,9 +4497,7 @@ class MapViewApiSetup { } else { addMarkersChannel.setMessageHandler(nil) } - let updateMarkersChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updateMarkers\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let updateMarkersChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updateMarkers\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { updateMarkersChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4732,9 +4513,7 @@ class MapViewApiSetup { } else { updateMarkersChannel.setMessageHandler(nil) } - let removeMarkersChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removeMarkers\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let removeMarkersChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removeMarkers\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { removeMarkersChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4750,9 +4529,7 @@ class MapViewApiSetup { } else { removeMarkersChannel.setMessageHandler(nil) } - let clearMarkersChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearMarkers\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let clearMarkersChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearMarkers\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { clearMarkersChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4767,9 +4544,7 @@ class MapViewApiSetup { } else { clearMarkersChannel.setMessageHandler(nil) } - let clearChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clear\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let clearChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clear\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { clearChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4784,9 +4559,7 @@ class MapViewApiSetup { } else { clearChannel.setMessageHandler(nil) } - let getPolygonsChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPolygons\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let getPolygonsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPolygons\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { getPolygonsChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4801,9 +4574,7 @@ class MapViewApiSetup { } else { getPolygonsChannel.setMessageHandler(nil) } - let addPolygonsChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addPolygons\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let addPolygonsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addPolygons\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { addPolygonsChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4819,10 +4590,7 @@ class MapViewApiSetup { } else { addPolygonsChannel.setMessageHandler(nil) } - let updatePolygonsChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updatePolygons\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let updatePolygonsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updatePolygons\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { updatePolygonsChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4838,10 +4606,7 @@ class MapViewApiSetup { } else { updatePolygonsChannel.setMessageHandler(nil) } - let removePolygonsChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removePolygons\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let removePolygonsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removePolygons\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { removePolygonsChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4857,9 +4622,7 @@ class MapViewApiSetup { } else { removePolygonsChannel.setMessageHandler(nil) } - let clearPolygonsChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearPolygons\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let clearPolygonsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearPolygons\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { clearPolygonsChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4874,9 +4637,7 @@ class MapViewApiSetup { } else { clearPolygonsChannel.setMessageHandler(nil) } - let getPolylinesChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPolylines\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let getPolylinesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPolylines\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { getPolylinesChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4891,9 +4652,7 @@ class MapViewApiSetup { } else { getPolylinesChannel.setMessageHandler(nil) } - let addPolylinesChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addPolylines\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let addPolylinesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addPolylines\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { addPolylinesChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4909,10 +4668,7 @@ class MapViewApiSetup { } else { addPolylinesChannel.setMessageHandler(nil) } - let updatePolylinesChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updatePolylines\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let updatePolylinesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updatePolylines\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { updatePolylinesChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4928,10 +4684,7 @@ class MapViewApiSetup { } else { updatePolylinesChannel.setMessageHandler(nil) } - let removePolylinesChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removePolylines\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let removePolylinesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removePolylines\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { removePolylinesChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4947,10 +4700,7 @@ class MapViewApiSetup { } else { removePolylinesChannel.setMessageHandler(nil) } - let clearPolylinesChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearPolylines\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let clearPolylinesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearPolylines\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { clearPolylinesChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4965,9 +4715,7 @@ class MapViewApiSetup { } else { clearPolylinesChannel.setMessageHandler(nil) } - let getCirclesChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getCircles\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let getCirclesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getCircles\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { getCirclesChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4982,9 +4730,7 @@ class MapViewApiSetup { } else { getCirclesChannel.setMessageHandler(nil) } - let addCirclesChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addCircles\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let addCirclesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addCircles\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { addCirclesChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -5000,9 +4746,7 @@ class MapViewApiSetup { } else { addCirclesChannel.setMessageHandler(nil) } - let updateCirclesChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updateCircles\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let updateCirclesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updateCircles\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { updateCirclesChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -5018,9 +4762,7 @@ class MapViewApiSetup { } else { updateCirclesChannel.setMessageHandler(nil) } - let removeCirclesChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removeCircles\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let removeCirclesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removeCircles\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { removeCirclesChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -5036,9 +4778,7 @@ class MapViewApiSetup { } else { removeCirclesChannel.setMessageHandler(nil) } - let clearCirclesChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearCircles\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let clearCirclesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearCircles\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { clearCirclesChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -5053,10 +4793,7 @@ class MapViewApiSetup { } else { clearCirclesChannel.setMessageHandler(nil) } - let enableOnCameraChangedEventsChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.enableOnCameraChangedEvents\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let enableOnCameraChangedEventsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.enableOnCameraChangedEvents\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { enableOnCameraChangedEventsChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -5071,9 +4808,7 @@ class MapViewApiSetup { } else { enableOnCameraChangedEventsChannel.setMessageHandler(nil) } - let setPaddingChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setPadding\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let setPaddingChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setPadding\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { setPaddingChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -5089,9 +4824,7 @@ class MapViewApiSetup { } else { setPaddingChannel.setMessageHandler(nil) } - let getPaddingChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPadding\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let getPaddingChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPadding\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { getPaddingChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -5106,10 +4839,7 @@ class MapViewApiSetup { } else { getPaddingChannel.setMessageHandler(nil) } - let getMapColorSchemeChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMapColorScheme\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let getMapColorSchemeChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMapColorScheme\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { getMapColorSchemeChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -5124,10 +4854,7 @@ class MapViewApiSetup { } else { getMapColorSchemeChannel.setMessageHandler(nil) } - let setMapColorSchemeChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapColorScheme\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let setMapColorSchemeChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapColorScheme\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { setMapColorSchemeChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -5143,10 +4870,7 @@ class MapViewApiSetup { } else { setMapColorSchemeChannel.setMessageHandler(nil) } - let getForceNightModeChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getForceNightMode\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let getForceNightModeChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getForceNightMode\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { getForceNightModeChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -5161,10 +4885,7 @@ class MapViewApiSetup { } else { getForceNightModeChannel.setMessageHandler(nil) } - let setForceNightModeChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setForceNightMode\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let setForceNightModeChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setForceNightMode\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { setForceNightModeChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -5184,30 +4905,20 @@ class MapViewApiSetup { } /// Generated protocol from Pigeon that represents a handler of messages from Flutter. protocol ImageRegistryApi { - func registerBitmapImage( - imageId: String, bytes: FlutterStandardTypedData, imagePixelRatio: Double, width: Double?, - height: Double? - ) throws -> ImageDescriptorDto + func registerBitmapImage(imageId: String, bytes: FlutterStandardTypedData, imagePixelRatio: Double, width: Double?, height: Double?) throws -> ImageDescriptorDto func unregisterImage(imageDescriptor: ImageDescriptorDto) throws func getRegisteredImages() throws -> [ImageDescriptorDto] func clearRegisteredImages(filter: RegisteredImageTypeDto?) throws - func getRegisteredImageData(imageDescriptor: ImageDescriptorDto) throws - -> FlutterStandardTypedData? + func getRegisteredImageData(imageDescriptor: ImageDescriptorDto) throws -> FlutterStandardTypedData? } /// Generated setup class from Pigeon to handle messages through the `binaryMessenger`. class ImageRegistryApiSetup { static var codec: FlutterStandardMessageCodec { MessagesPigeonCodec.shared } /// Sets up an instance of `ImageRegistryApi` to handle messages through the `binaryMessenger`. - static func setUp( - binaryMessenger: FlutterBinaryMessenger, api: ImageRegistryApi?, - messageChannelSuffix: String = "" - ) { + static func setUp(binaryMessenger: FlutterBinaryMessenger, api: ImageRegistryApi?, messageChannelSuffix: String = "") { let channelSuffix = messageChannelSuffix.count > 0 ? ".\(messageChannelSuffix)" : "" - let registerBitmapImageChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.registerBitmapImage\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let registerBitmapImageChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.registerBitmapImage\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { registerBitmapImageChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -5217,9 +4928,7 @@ class ImageRegistryApiSetup { let widthArg: Double? = nilOrValue(args[3]) let heightArg: Double? = nilOrValue(args[4]) do { - let result = try api.registerBitmapImage( - imageId: imageIdArg, bytes: bytesArg, imagePixelRatio: imagePixelRatioArg, - width: widthArg, height: heightArg) + let result = try api.registerBitmapImage(imageId: imageIdArg, bytes: bytesArg, imagePixelRatio: imagePixelRatioArg, width: widthArg, height: heightArg) reply(wrapResult(result)) } catch { reply(wrapError(error)) @@ -5228,10 +4937,7 @@ class ImageRegistryApiSetup { } else { registerBitmapImageChannel.setMessageHandler(nil) } - let unregisterImageChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.unregisterImage\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let unregisterImageChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.unregisterImage\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { unregisterImageChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -5246,10 +4952,7 @@ class ImageRegistryApiSetup { } else { unregisterImageChannel.setMessageHandler(nil) } - let getRegisteredImagesChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.getRegisteredImages\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let getRegisteredImagesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.getRegisteredImages\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { getRegisteredImagesChannel.setMessageHandler { _, reply in do { @@ -5262,10 +4965,7 @@ class ImageRegistryApiSetup { } else { getRegisteredImagesChannel.setMessageHandler(nil) } - let clearRegisteredImagesChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.clearRegisteredImages\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let clearRegisteredImagesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.clearRegisteredImages\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { clearRegisteredImagesChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -5280,10 +4980,7 @@ class ImageRegistryApiSetup { } else { clearRegisteredImagesChannel.setMessageHandler(nil) } - let getRegisteredImageDataChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.getRegisteredImageData\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let getRegisteredImageDataChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.getRegisteredImageData\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { getRegisteredImageDataChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -5302,54 +4999,22 @@ class ImageRegistryApiSetup { } /// Generated protocol from Pigeon that represents Flutter messages that can be called from Swift. protocol ViewEventApiProtocol { - func onMapClickEvent( - viewId viewIdArg: Int64, latLng latLngArg: LatLngDto, - completion: @escaping (Result) -> Void) - func onMapLongClickEvent( - viewId viewIdArg: Int64, latLng latLngArg: LatLngDto, - completion: @escaping (Result) -> Void) - func onRecenterButtonClicked( - viewId viewIdArg: Int64, completion: @escaping (Result) -> Void) - func onMarkerEvent( - viewId viewIdArg: Int64, markerId markerIdArg: String, - eventType eventTypeArg: MarkerEventTypeDto, - completion: @escaping (Result) -> Void) - func onMarkerDragEvent( - viewId viewIdArg: Int64, markerId markerIdArg: String, - eventType eventTypeArg: MarkerDragEventTypeDto, position positionArg: LatLngDto, - completion: @escaping (Result) -> Void) - func onPolygonClicked( - viewId viewIdArg: Int64, polygonId polygonIdArg: String, - completion: @escaping (Result) -> Void) - func onPolylineClicked( - viewId viewIdArg: Int64, polylineId polylineIdArg: String, - completion: @escaping (Result) -> Void) - func onCircleClicked( - viewId viewIdArg: Int64, circleId circleIdArg: String, - completion: @escaping (Result) -> Void) - func onPoiClick( - viewId viewIdArg: Int64, pointOfInterest pointOfInterestArg: PointOfInterestDto, - completion: @escaping (Result) -> Void) - func onNavigationUIEnabledChanged( - viewId viewIdArg: Int64, navigationUIEnabled navigationUIEnabledArg: Bool, - completion: @escaping (Result) -> Void) - func onPromptVisibilityChanged( - viewId viewIdArg: Int64, promptVisible promptVisibleArg: Bool, - completion: @escaping (Result) -> Void) - func onMyLocationClicked( - viewId viewIdArg: Int64, completion: @escaping (Result) -> Void) - func onMyLocationButtonClicked( - viewId viewIdArg: Int64, completion: @escaping (Result) -> Void) - func onIndoorFocusedBuildingChanged( - viewId viewIdArg: Int64, building buildingArg: IndoorBuildingDto?, - completion: @escaping (Result) -> Void) - func onIndoorActiveLevelChanged( - viewId viewIdArg: Int64, building buildingArg: IndoorBuildingDto?, - completion: @escaping (Result) -> Void) - func onCameraChanged( - viewId viewIdArg: Int64, eventType eventTypeArg: CameraEventTypeDto, - position positionArg: CameraPositionDto, - completion: @escaping (Result) -> Void) + func onMapClickEvent(viewId viewIdArg: Int64, latLng latLngArg: LatLngDto, completion: @escaping (Result) -> Void) + func onMapLongClickEvent(viewId viewIdArg: Int64, latLng latLngArg: LatLngDto, completion: @escaping (Result) -> Void) + func onRecenterButtonClicked(viewId viewIdArg: Int64, completion: @escaping (Result) -> Void) + func onMarkerEvent(viewId viewIdArg: Int64, markerId markerIdArg: String, eventType eventTypeArg: MarkerEventTypeDto, completion: @escaping (Result) -> Void) + func onMarkerDragEvent(viewId viewIdArg: Int64, markerId markerIdArg: String, eventType eventTypeArg: MarkerDragEventTypeDto, position positionArg: LatLngDto, completion: @escaping (Result) -> Void) + func onPolygonClicked(viewId viewIdArg: Int64, polygonId polygonIdArg: String, completion: @escaping (Result) -> Void) + func onPolylineClicked(viewId viewIdArg: Int64, polylineId polylineIdArg: String, completion: @escaping (Result) -> Void) + func onCircleClicked(viewId viewIdArg: Int64, circleId circleIdArg: String, completion: @escaping (Result) -> Void) + func onPoiClick(viewId viewIdArg: Int64, pointOfInterest pointOfInterestArg: PointOfInterestDto, completion: @escaping (Result) -> Void) + func onNavigationUIEnabledChanged(viewId viewIdArg: Int64, navigationUIEnabled navigationUIEnabledArg: Bool, completion: @escaping (Result) -> Void) + func onPromptVisibilityChanged(viewId viewIdArg: Int64, promptVisible promptVisibleArg: Bool, completion: @escaping (Result) -> Void) + func onMyLocationClicked(viewId viewIdArg: Int64, completion: @escaping (Result) -> Void) + func onMyLocationButtonClicked(viewId viewIdArg: Int64, completion: @escaping (Result) -> Void) + func onIndoorFocusedBuildingChanged(viewId viewIdArg: Int64, building buildingArg: IndoorBuildingDto?, completion: @escaping (Result) -> Void) + func onIndoorActiveLevelChanged(viewId viewIdArg: Int64, building buildingArg: IndoorBuildingDto?, completion: @escaping (Result) -> Void) + func onCameraChanged(viewId viewIdArg: Int64, eventType eventTypeArg: CameraEventTypeDto, position positionArg: CameraPositionDto, completion: @escaping (Result) -> Void) } class ViewEventApi: ViewEventApiProtocol { private let binaryMessenger: FlutterBinaryMessenger @@ -5361,14 +5026,9 @@ class ViewEventApi: ViewEventApiProtocol { var codec: MessagesPigeonCodec { return MessagesPigeonCodec.shared } - func onMapClickEvent( - viewId viewIdArg: Int64, latLng latLngArg: LatLngDto, - completion: @escaping (Result) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMapClickEvent\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func onMapClickEvent(viewId viewIdArg: Int64, latLng latLngArg: LatLngDto, completion: @escaping (Result) -> Void) { + let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMapClickEvent\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([viewIdArg, latLngArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5384,14 +5044,9 @@ class ViewEventApi: ViewEventApiProtocol { } } } - func onMapLongClickEvent( - viewId viewIdArg: Int64, latLng latLngArg: LatLngDto, - completion: @escaping (Result) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMapLongClickEvent\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func onMapLongClickEvent(viewId viewIdArg: Int64, latLng latLngArg: LatLngDto, completion: @escaping (Result) -> Void) { + let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMapLongClickEvent\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([viewIdArg, latLngArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5407,13 +5062,9 @@ class ViewEventApi: ViewEventApiProtocol { } } } - func onRecenterButtonClicked( - viewId viewIdArg: Int64, completion: @escaping (Result) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onRecenterButtonClicked\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func onRecenterButtonClicked(viewId viewIdArg: Int64, completion: @escaping (Result) -> Void) { + let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onRecenterButtonClicked\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([viewIdArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5429,15 +5080,9 @@ class ViewEventApi: ViewEventApiProtocol { } } } - func onMarkerEvent( - viewId viewIdArg: Int64, markerId markerIdArg: String, - eventType eventTypeArg: MarkerEventTypeDto, - completion: @escaping (Result) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMarkerEvent\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func onMarkerEvent(viewId viewIdArg: Int64, markerId markerIdArg: String, eventType eventTypeArg: MarkerEventTypeDto, completion: @escaping (Result) -> Void) { + let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMarkerEvent\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([viewIdArg, markerIdArg, eventTypeArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5453,15 +5098,9 @@ class ViewEventApi: ViewEventApiProtocol { } } } - func onMarkerDragEvent( - viewId viewIdArg: Int64, markerId markerIdArg: String, - eventType eventTypeArg: MarkerDragEventTypeDto, position positionArg: LatLngDto, - completion: @escaping (Result) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMarkerDragEvent\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func onMarkerDragEvent(viewId viewIdArg: Int64, markerId markerIdArg: String, eventType eventTypeArg: MarkerDragEventTypeDto, position positionArg: LatLngDto, completion: @escaping (Result) -> Void) { + let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMarkerDragEvent\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([viewIdArg, markerIdArg, eventTypeArg, positionArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5477,14 +5116,9 @@ class ViewEventApi: ViewEventApiProtocol { } } } - func onPolygonClicked( - viewId viewIdArg: Int64, polygonId polygonIdArg: String, - completion: @escaping (Result) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPolygonClicked\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func onPolygonClicked(viewId viewIdArg: Int64, polygonId polygonIdArg: String, completion: @escaping (Result) -> Void) { + let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPolygonClicked\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([viewIdArg, polygonIdArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5500,14 +5134,9 @@ class ViewEventApi: ViewEventApiProtocol { } } } - func onPolylineClicked( - viewId viewIdArg: Int64, polylineId polylineIdArg: String, - completion: @escaping (Result) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPolylineClicked\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func onPolylineClicked(viewId viewIdArg: Int64, polylineId polylineIdArg: String, completion: @escaping (Result) -> Void) { + let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPolylineClicked\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([viewIdArg, polylineIdArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5523,14 +5152,9 @@ class ViewEventApi: ViewEventApiProtocol { } } } - func onCircleClicked( - viewId viewIdArg: Int64, circleId circleIdArg: String, - completion: @escaping (Result) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onCircleClicked\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func onCircleClicked(viewId viewIdArg: Int64, circleId circleIdArg: String, completion: @escaping (Result) -> Void) { + let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onCircleClicked\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([viewIdArg, circleIdArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5546,14 +5170,9 @@ class ViewEventApi: ViewEventApiProtocol { } } } - func onPoiClick( - viewId viewIdArg: Int64, pointOfInterest pointOfInterestArg: PointOfInterestDto, - completion: @escaping (Result) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPoiClick\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func onPoiClick(viewId viewIdArg: Int64, pointOfInterest pointOfInterestArg: PointOfInterestDto, completion: @escaping (Result) -> Void) { + let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPoiClick\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([viewIdArg, pointOfInterestArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5569,14 +5188,9 @@ class ViewEventApi: ViewEventApiProtocol { } } } - func onNavigationUIEnabledChanged( - viewId viewIdArg: Int64, navigationUIEnabled navigationUIEnabledArg: Bool, - completion: @escaping (Result) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onNavigationUIEnabledChanged\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func onNavigationUIEnabledChanged(viewId viewIdArg: Int64, navigationUIEnabled navigationUIEnabledArg: Bool, completion: @escaping (Result) -> Void) { + let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onNavigationUIEnabledChanged\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([viewIdArg, navigationUIEnabledArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5592,14 +5206,9 @@ class ViewEventApi: ViewEventApiProtocol { } } } - func onPromptVisibilityChanged( - viewId viewIdArg: Int64, promptVisible promptVisibleArg: Bool, - completion: @escaping (Result) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPromptVisibilityChanged\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func onPromptVisibilityChanged(viewId viewIdArg: Int64, promptVisible promptVisibleArg: Bool, completion: @escaping (Result) -> Void) { + let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPromptVisibilityChanged\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([viewIdArg, promptVisibleArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5615,13 +5224,9 @@ class ViewEventApi: ViewEventApiProtocol { } } } - func onMyLocationClicked( - viewId viewIdArg: Int64, completion: @escaping (Result) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMyLocationClicked\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func onMyLocationClicked(viewId viewIdArg: Int64, completion: @escaping (Result) -> Void) { + let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMyLocationClicked\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([viewIdArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5637,13 +5242,9 @@ class ViewEventApi: ViewEventApiProtocol { } } } - func onMyLocationButtonClicked( - viewId viewIdArg: Int64, completion: @escaping (Result) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMyLocationButtonClicked\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func onMyLocationButtonClicked(viewId viewIdArg: Int64, completion: @escaping (Result) -> Void) { + let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMyLocationButtonClicked\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([viewIdArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5659,14 +5260,9 @@ class ViewEventApi: ViewEventApiProtocol { } } } - func onIndoorFocusedBuildingChanged( - viewId viewIdArg: Int64, building buildingArg: IndoorBuildingDto?, - completion: @escaping (Result) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onIndoorFocusedBuildingChanged\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func onIndoorFocusedBuildingChanged(viewId viewIdArg: Int64, building buildingArg: IndoorBuildingDto?, completion: @escaping (Result) -> Void) { + let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onIndoorFocusedBuildingChanged\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([viewIdArg, buildingArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5682,14 +5278,9 @@ class ViewEventApi: ViewEventApiProtocol { } } } - func onIndoorActiveLevelChanged( - viewId viewIdArg: Int64, building buildingArg: IndoorBuildingDto?, - completion: @escaping (Result) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onIndoorActiveLevelChanged\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func onIndoorActiveLevelChanged(viewId viewIdArg: Int64, building buildingArg: IndoorBuildingDto?, completion: @escaping (Result) -> Void) { + let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onIndoorActiveLevelChanged\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([viewIdArg, buildingArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5705,15 +5296,9 @@ class ViewEventApi: ViewEventApiProtocol { } } } - func onCameraChanged( - viewId viewIdArg: Int64, eventType eventTypeArg: CameraEventTypeDto, - position positionArg: CameraPositionDto, - completion: @escaping (Result) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onCameraChanged\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func onCameraChanged(viewId viewIdArg: Int64, eventType eventTypeArg: CameraEventTypeDto, position positionArg: CameraPositionDto, completion: @escaping (Result) -> Void) { + let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onCameraChanged\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([viewIdArg, eventTypeArg, positionArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5732,25 +5317,19 @@ class ViewEventApi: ViewEventApiProtocol { } /// Generated protocol from Pigeon that represents a handler of messages from Flutter. protocol NavigationSessionApi { - 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(resetSession: Bool) throws - func showTermsAndConditionsDialog( - title: String, companyName: String, shouldOnlyShowDriverAwarenessDisclaimer: Bool, - uiParams: TermsAndConditionsUIParamsDto?, completion: @escaping (Result) -> Void) + func showTermsAndConditionsDialog(title: String, companyName: String, shouldOnlyShowDriverAwarenessDisclaimer: Bool, uiParams: TermsAndConditionsUIParamsDto?, completion: @escaping (Result) -> Void) func areTermsAccepted() throws -> Bool func resetTermsAccepted() throws func getNavSDKVersion() throws -> String func isGuidanceRunning() throws -> Bool func startGuidance() throws func stopGuidance() throws - func setDestinations( - destinations: DestinationsDto, completion: @escaping (Result) -> Void) + func setDestinations(destinations: DestinationsDto, completion: @escaping (Result) -> Void) func clearDestinations() throws - func continueToNextDestination( - completion: @escaping (Result) -> Void) + func continueToNextDestination(completion: @escaping (Result) -> Void) func getCurrentTimeAndDistance() throws -> NavigationTimeAndDistanceDto func setAudioGuidance(settings: NavigationAudioGuidanceSettingsDto) throws func setSpeedAlertOptions(options: SpeedAlertOptionsDto) throws @@ -5761,51 +5340,33 @@ protocol NavigationSessionApi { func removeUserLocation() throws func simulateLocationsAlongExistingRoute() throws func simulateLocationsAlongExistingRouteWithOptions(options: SimulationOptionsDto) throws - func simulateLocationsAlongNewRoute( - waypoints: [NavigationWaypointDto], - completion: @escaping (Result) -> Void) - func simulateLocationsAlongNewRouteWithRoutingOptions( - waypoints: [NavigationWaypointDto], routingOptions: RoutingOptionsDto, - completion: @escaping (Result) -> Void) - func simulateLocationsAlongNewRouteWithRoutingAndSimulationOptions( - waypoints: [NavigationWaypointDto], routingOptions: RoutingOptionsDto, - simulationOptions: SimulationOptionsDto, - completion: @escaping (Result) -> Void) + func simulateLocationsAlongNewRoute(waypoints: [NavigationWaypointDto], completion: @escaping (Result) -> Void) + func simulateLocationsAlongNewRouteWithRoutingOptions(waypoints: [NavigationWaypointDto], routingOptions: RoutingOptionsDto, completion: @escaping (Result) -> Void) + func simulateLocationsAlongNewRouteWithRoutingAndSimulationOptions(waypoints: [NavigationWaypointDto], routingOptions: RoutingOptionsDto, simulationOptions: SimulationOptionsDto, completion: @escaping (Result) -> Void) func pauseSimulation() throws func resumeSimulation() throws /// iOS-only method. func allowBackgroundLocationUpdates(allow: Bool) throws func enableRoadSnappedLocationUpdates() throws func disableRoadSnappedLocationUpdates() throws - func enableTurnByTurnNavigationEvents( - numNextStepsToPreview: Int64?, options: StepImageGenerationOptionsDto?) throws + func enableTurnByTurnNavigationEvents(numNextStepsToPreview: Int64?, options: StepImageGenerationOptionsDto?) throws func disableTurnByTurnNavigationEvents() throws - func registerRemainingTimeOrDistanceChangedListener( - remainingTimeThresholdSeconds: Int64, remainingDistanceThresholdMeters: Int64) throws + func registerRemainingTimeOrDistanceChangedListener(remainingTimeThresholdSeconds: Int64, remainingDistanceThresholdMeters: Int64) throws } /// Generated setup class from Pigeon to handle messages through the `binaryMessenger`. class NavigationSessionApiSetup { static var codec: FlutterStandardMessageCodec { MessagesPigeonCodec.shared } /// Sets up an instance of `NavigationSessionApi` to handle messages through the `binaryMessenger`. - static func setUp( - binaryMessenger: FlutterBinaryMessenger, api: NavigationSessionApi?, - messageChannelSuffix: String = "" - ) { + static func setUp(binaryMessenger: FlutterBinaryMessenger, api: NavigationSessionApi?, messageChannelSuffix: String = "") { let channelSuffix = messageChannelSuffix.count > 0 ? ".\(messageChannelSuffix)" : "" - let createNavigationSessionChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.createNavigationSession\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let createNavigationSessionChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.createNavigationSession\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { createNavigationSessionChannel.setMessageHandler { message, reply in let args = message as! [Any?] let abnormalTerminationReportingEnabledArg = args[0] as! Bool let behaviorArg = args[1] as! TaskRemovedBehaviorDto - api.createNavigationSession( - abnormalTerminationReportingEnabled: abnormalTerminationReportingEnabledArg, - behavior: behaviorArg - ) { result in + api.createNavigationSession(abnormalTerminationReportingEnabled: abnormalTerminationReportingEnabledArg, behavior: behaviorArg) { result in switch result { case .success: reply(wrapResult(nil)) @@ -5817,10 +5378,7 @@ class NavigationSessionApiSetup { } else { createNavigationSessionChannel.setMessageHandler(nil) } - let isInitializedChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.isInitialized\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let isInitializedChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.isInitialized\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { isInitializedChannel.setMessageHandler { _, reply in do { @@ -5833,10 +5391,7 @@ class NavigationSessionApiSetup { } else { isInitializedChannel.setMessageHandler(nil) } - let cleanupChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.cleanup\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let cleanupChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.cleanup\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { cleanupChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -5851,10 +5406,7 @@ class NavigationSessionApiSetup { } else { cleanupChannel.setMessageHandler(nil) } - let showTermsAndConditionsDialogChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.showTermsAndConditionsDialog\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let showTermsAndConditionsDialogChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.showTermsAndConditionsDialog\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { showTermsAndConditionsDialogChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -5862,11 +5414,7 @@ class NavigationSessionApiSetup { let companyNameArg = args[1] as! String let shouldOnlyShowDriverAwarenessDisclaimerArg = args[2] as! Bool let uiParamsArg: TermsAndConditionsUIParamsDto? = nilOrValue(args[3]) - api.showTermsAndConditionsDialog( - title: titleArg, companyName: companyNameArg, - shouldOnlyShowDriverAwarenessDisclaimer: shouldOnlyShowDriverAwarenessDisclaimerArg, - uiParams: uiParamsArg - ) { result in + api.showTermsAndConditionsDialog(title: titleArg, companyName: companyNameArg, shouldOnlyShowDriverAwarenessDisclaimer: shouldOnlyShowDriverAwarenessDisclaimerArg, uiParams: uiParamsArg) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -5878,10 +5426,7 @@ class NavigationSessionApiSetup { } else { showTermsAndConditionsDialogChannel.setMessageHandler(nil) } - let areTermsAcceptedChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.areTermsAccepted\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let areTermsAcceptedChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.areTermsAccepted\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { areTermsAcceptedChannel.setMessageHandler { _, reply in do { @@ -5894,10 +5439,7 @@ class NavigationSessionApiSetup { } else { areTermsAcceptedChannel.setMessageHandler(nil) } - let resetTermsAcceptedChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.resetTermsAccepted\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let resetTermsAcceptedChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.resetTermsAccepted\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { resetTermsAcceptedChannel.setMessageHandler { _, reply in do { @@ -5910,10 +5452,7 @@ class NavigationSessionApiSetup { } else { resetTermsAcceptedChannel.setMessageHandler(nil) } - let getNavSDKVersionChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getNavSDKVersion\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let getNavSDKVersionChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getNavSDKVersion\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { getNavSDKVersionChannel.setMessageHandler { _, reply in do { @@ -5926,10 +5465,7 @@ class NavigationSessionApiSetup { } else { getNavSDKVersionChannel.setMessageHandler(nil) } - let isGuidanceRunningChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.isGuidanceRunning\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let isGuidanceRunningChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.isGuidanceRunning\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { isGuidanceRunningChannel.setMessageHandler { _, reply in do { @@ -5942,10 +5478,7 @@ class NavigationSessionApiSetup { } else { isGuidanceRunningChannel.setMessageHandler(nil) } - let startGuidanceChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.startGuidance\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let startGuidanceChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.startGuidance\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { startGuidanceChannel.setMessageHandler { _, reply in do { @@ -5958,10 +5491,7 @@ class NavigationSessionApiSetup { } else { startGuidanceChannel.setMessageHandler(nil) } - let stopGuidanceChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.stopGuidance\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let stopGuidanceChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.stopGuidance\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { stopGuidanceChannel.setMessageHandler { _, reply in do { @@ -5974,10 +5504,7 @@ class NavigationSessionApiSetup { } else { stopGuidanceChannel.setMessageHandler(nil) } - let setDestinationsChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setDestinations\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let setDestinationsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setDestinations\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { setDestinationsChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -5994,10 +5521,7 @@ class NavigationSessionApiSetup { } else { setDestinationsChannel.setMessageHandler(nil) } - let clearDestinationsChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.clearDestinations\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let clearDestinationsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.clearDestinations\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { clearDestinationsChannel.setMessageHandler { _, reply in do { @@ -6010,10 +5534,7 @@ class NavigationSessionApiSetup { } else { clearDestinationsChannel.setMessageHandler(nil) } - let continueToNextDestinationChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.continueToNextDestination\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let continueToNextDestinationChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.continueToNextDestination\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { continueToNextDestinationChannel.setMessageHandler { _, reply in api.continueToNextDestination { result in @@ -6028,10 +5549,7 @@ class NavigationSessionApiSetup { } else { continueToNextDestinationChannel.setMessageHandler(nil) } - let getCurrentTimeAndDistanceChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getCurrentTimeAndDistance\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let getCurrentTimeAndDistanceChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getCurrentTimeAndDistance\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { getCurrentTimeAndDistanceChannel.setMessageHandler { _, reply in do { @@ -6044,10 +5562,7 @@ class NavigationSessionApiSetup { } else { getCurrentTimeAndDistanceChannel.setMessageHandler(nil) } - let setAudioGuidanceChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setAudioGuidance\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let setAudioGuidanceChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setAudioGuidance\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { setAudioGuidanceChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -6062,10 +5577,7 @@ class NavigationSessionApiSetup { } else { setAudioGuidanceChannel.setMessageHandler(nil) } - let setSpeedAlertOptionsChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setSpeedAlertOptions\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let setSpeedAlertOptionsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setSpeedAlertOptions\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { setSpeedAlertOptionsChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -6080,10 +5592,7 @@ class NavigationSessionApiSetup { } else { setSpeedAlertOptionsChannel.setMessageHandler(nil) } - let getRouteSegmentsChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getRouteSegments\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let getRouteSegmentsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getRouteSegments\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { getRouteSegmentsChannel.setMessageHandler { _, reply in do { @@ -6096,10 +5605,7 @@ class NavigationSessionApiSetup { } else { getRouteSegmentsChannel.setMessageHandler(nil) } - let getTraveledRouteChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getTraveledRoute\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let getTraveledRouteChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getTraveledRoute\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { getTraveledRouteChannel.setMessageHandler { _, reply in do { @@ -6112,10 +5618,7 @@ class NavigationSessionApiSetup { } else { getTraveledRouteChannel.setMessageHandler(nil) } - let getCurrentRouteSegmentChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getCurrentRouteSegment\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let getCurrentRouteSegmentChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getCurrentRouteSegment\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { getCurrentRouteSegmentChannel.setMessageHandler { _, reply in do { @@ -6128,10 +5631,7 @@ class NavigationSessionApiSetup { } else { getCurrentRouteSegmentChannel.setMessageHandler(nil) } - let setUserLocationChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setUserLocation\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let setUserLocationChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setUserLocation\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { setUserLocationChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -6146,10 +5646,7 @@ class NavigationSessionApiSetup { } else { setUserLocationChannel.setMessageHandler(nil) } - let removeUserLocationChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.removeUserLocation\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let removeUserLocationChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.removeUserLocation\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { removeUserLocationChannel.setMessageHandler { _, reply in do { @@ -6162,10 +5659,7 @@ class NavigationSessionApiSetup { } else { removeUserLocationChannel.setMessageHandler(nil) } - let simulateLocationsAlongExistingRouteChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongExistingRoute\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let simulateLocationsAlongExistingRouteChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongExistingRoute\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { simulateLocationsAlongExistingRouteChannel.setMessageHandler { _, reply in do { @@ -6178,10 +5672,7 @@ class NavigationSessionApiSetup { } else { simulateLocationsAlongExistingRouteChannel.setMessageHandler(nil) } - let simulateLocationsAlongExistingRouteWithOptionsChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongExistingRouteWithOptions\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let simulateLocationsAlongExistingRouteWithOptionsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongExistingRouteWithOptions\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { simulateLocationsAlongExistingRouteWithOptionsChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -6196,10 +5687,7 @@ class NavigationSessionApiSetup { } else { simulateLocationsAlongExistingRouteWithOptionsChannel.setMessageHandler(nil) } - let simulateLocationsAlongNewRouteChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRoute\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let simulateLocationsAlongNewRouteChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRoute\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { simulateLocationsAlongNewRouteChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -6216,18 +5704,13 @@ class NavigationSessionApiSetup { } else { simulateLocationsAlongNewRouteChannel.setMessageHandler(nil) } - let simulateLocationsAlongNewRouteWithRoutingOptionsChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRouteWithRoutingOptions\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let simulateLocationsAlongNewRouteWithRoutingOptionsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRouteWithRoutingOptions\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { simulateLocationsAlongNewRouteWithRoutingOptionsChannel.setMessageHandler { message, reply in let args = message as! [Any?] let waypointsArg = args[0] as! [NavigationWaypointDto] let routingOptionsArg = args[1] as! RoutingOptionsDto - api.simulateLocationsAlongNewRouteWithRoutingOptions( - waypoints: waypointsArg, routingOptions: routingOptionsArg - ) { result in + api.simulateLocationsAlongNewRouteWithRoutingOptions(waypoints: waypointsArg, routingOptions: routingOptionsArg) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -6239,22 +5722,14 @@ class NavigationSessionApiSetup { } else { simulateLocationsAlongNewRouteWithRoutingOptionsChannel.setMessageHandler(nil) } - let simulateLocationsAlongNewRouteWithRoutingAndSimulationOptionsChannel = - FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRouteWithRoutingAndSimulationOptions\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let simulateLocationsAlongNewRouteWithRoutingAndSimulationOptionsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRouteWithRoutingAndSimulationOptions\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { - simulateLocationsAlongNewRouteWithRoutingAndSimulationOptionsChannel.setMessageHandler { - message, reply in + simulateLocationsAlongNewRouteWithRoutingAndSimulationOptionsChannel.setMessageHandler { message, reply in let args = message as! [Any?] let waypointsArg = args[0] as! [NavigationWaypointDto] let routingOptionsArg = args[1] as! RoutingOptionsDto let simulationOptionsArg = args[2] as! SimulationOptionsDto - api.simulateLocationsAlongNewRouteWithRoutingAndSimulationOptions( - waypoints: waypointsArg, routingOptions: routingOptionsArg, - simulationOptions: simulationOptionsArg - ) { result in + api.simulateLocationsAlongNewRouteWithRoutingAndSimulationOptions(waypoints: waypointsArg, routingOptions: routingOptionsArg, simulationOptions: simulationOptionsArg) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -6266,10 +5741,7 @@ class NavigationSessionApiSetup { } else { simulateLocationsAlongNewRouteWithRoutingAndSimulationOptionsChannel.setMessageHandler(nil) } - let pauseSimulationChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.pauseSimulation\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let pauseSimulationChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.pauseSimulation\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { pauseSimulationChannel.setMessageHandler { _, reply in do { @@ -6282,10 +5754,7 @@ class NavigationSessionApiSetup { } else { pauseSimulationChannel.setMessageHandler(nil) } - let resumeSimulationChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.resumeSimulation\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let resumeSimulationChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.resumeSimulation\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { resumeSimulationChannel.setMessageHandler { _, reply in do { @@ -6299,10 +5768,7 @@ class NavigationSessionApiSetup { resumeSimulationChannel.setMessageHandler(nil) } /// iOS-only method. - let allowBackgroundLocationUpdatesChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.allowBackgroundLocationUpdates\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let allowBackgroundLocationUpdatesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.allowBackgroundLocationUpdates\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { allowBackgroundLocationUpdatesChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -6317,10 +5783,7 @@ class NavigationSessionApiSetup { } else { allowBackgroundLocationUpdatesChannel.setMessageHandler(nil) } - let enableRoadSnappedLocationUpdatesChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.enableRoadSnappedLocationUpdates\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let enableRoadSnappedLocationUpdatesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.enableRoadSnappedLocationUpdates\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { enableRoadSnappedLocationUpdatesChannel.setMessageHandler { _, reply in do { @@ -6333,10 +5796,7 @@ class NavigationSessionApiSetup { } else { enableRoadSnappedLocationUpdatesChannel.setMessageHandler(nil) } - let disableRoadSnappedLocationUpdatesChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.disableRoadSnappedLocationUpdates\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let disableRoadSnappedLocationUpdatesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.disableRoadSnappedLocationUpdates\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { disableRoadSnappedLocationUpdatesChannel.setMessageHandler { _, reply in do { @@ -6349,18 +5809,14 @@ class NavigationSessionApiSetup { } else { disableRoadSnappedLocationUpdatesChannel.setMessageHandler(nil) } - let enableTurnByTurnNavigationEventsChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.enableTurnByTurnNavigationEvents\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let enableTurnByTurnNavigationEventsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.enableTurnByTurnNavigationEvents\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { enableTurnByTurnNavigationEventsChannel.setMessageHandler { message, reply in let args = message as! [Any?] let numNextStepsToPreviewArg: Int64? = nilOrValue(args[0]) let optionsArg: StepImageGenerationOptionsDto? = nilOrValue(args[1]) do { - try api.enableTurnByTurnNavigationEvents( - numNextStepsToPreview: numNextStepsToPreviewArg, options: optionsArg) + try api.enableTurnByTurnNavigationEvents(numNextStepsToPreview: numNextStepsToPreviewArg, options: optionsArg) reply(wrapResult(nil)) } catch { reply(wrapError(error)) @@ -6369,10 +5825,7 @@ class NavigationSessionApiSetup { } else { enableTurnByTurnNavigationEventsChannel.setMessageHandler(nil) } - let disableTurnByTurnNavigationEventsChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.disableTurnByTurnNavigationEvents\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let disableTurnByTurnNavigationEventsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.disableTurnByTurnNavigationEvents\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { disableTurnByTurnNavigationEventsChannel.setMessageHandler { _, reply in do { @@ -6385,19 +5838,14 @@ class NavigationSessionApiSetup { } else { disableTurnByTurnNavigationEventsChannel.setMessageHandler(nil) } - let registerRemainingTimeOrDistanceChangedListenerChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.registerRemainingTimeOrDistanceChangedListener\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let registerRemainingTimeOrDistanceChangedListenerChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.registerRemainingTimeOrDistanceChangedListener\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { registerRemainingTimeOrDistanceChangedListenerChannel.setMessageHandler { message, reply in let args = message as! [Any?] let remainingTimeThresholdSecondsArg = args[0] as! Int64 let remainingDistanceThresholdMetersArg = args[1] as! Int64 do { - try api.registerRemainingTimeOrDistanceChangedListener( - remainingTimeThresholdSeconds: remainingTimeThresholdSecondsArg, - remainingDistanceThresholdMeters: remainingDistanceThresholdMetersArg) + try api.registerRemainingTimeOrDistanceChangedListener(remainingTimeThresholdSeconds: remainingTimeThresholdSecondsArg, remainingDistanceThresholdMeters: remainingDistanceThresholdMetersArg) reply(wrapResult(nil)) } catch { reply(wrapError(error)) @@ -6410,34 +5858,22 @@ class NavigationSessionApiSetup { } /// Generated protocol from Pigeon that represents Flutter messages that can be called from Swift. protocol NavigationSessionEventApiProtocol { - func onSpeedingUpdated( - msg msgArg: SpeedingUpdatedEventDto, completion: @escaping (Result) -> Void) - func onRoadSnappedLocationUpdated( - location locationArg: LatLngDto, completion: @escaping (Result) -> Void) - func onRoadSnappedRawLocationUpdated( - location locationArg: LatLngDto, completion: @escaping (Result) -> Void) - func onArrival( - waypoint waypointArg: NavigationWaypointDto, - completion: @escaping (Result) -> Void) + func onSpeedingUpdated(msg msgArg: SpeedingUpdatedEventDto, completion: @escaping (Result) -> Void) + func onRoadSnappedLocationUpdated(location locationArg: LatLngDto, completion: @escaping (Result) -> Void) + func onRoadSnappedRawLocationUpdated(location locationArg: LatLngDto, completion: @escaping (Result) -> Void) + func onArrival(waypoint waypointArg: NavigationWaypointDto, completion: @escaping (Result) -> Void) func onRouteChanged(completion: @escaping (Result) -> Void) - func onRemainingTimeOrDistanceChanged( - remainingTime remainingTimeArg: Double, remainingDistance remainingDistanceArg: Double, - delaySeverity delaySeverityArg: TrafficDelaySeverityDto, - completion: @escaping (Result) -> Void) + func onRemainingTimeOrDistanceChanged(remainingTime remainingTimeArg: Double, remainingDistance remainingDistanceArg: Double, delaySeverity delaySeverityArg: TrafficDelaySeverityDto, completion: @escaping (Result) -> Void) /// Android-only event. func onTrafficUpdated(completion: @escaping (Result) -> Void) /// Android-only event. func onRerouting(completion: @escaping (Result) -> Void) /// Android-only event. - func onGpsAvailabilityUpdate( - available availableArg: Bool, completion: @escaping (Result) -> Void) + func onGpsAvailabilityUpdate(available availableArg: Bool, completion: @escaping (Result) -> Void) /// Android-only event. - func onGpsAvailabilityChange( - event eventArg: GpsAvailabilityChangeEventDto, - completion: @escaping (Result) -> Void) + func onGpsAvailabilityChange(event eventArg: GpsAvailabilityChangeEventDto, completion: @escaping (Result) -> Void) /// Turn-by-Turn navigation events. - func onNavInfo( - navInfo navInfoArg: NavInfoDto, completion: @escaping (Result) -> Void) + func onNavInfo(navInfo navInfoArg: NavInfoDto, completion: @escaping (Result) -> Void) /// Navigation session event. Called when a new navigation /// session starts with active guidance. func onNewNavigationSession(completion: @escaping (Result) -> Void) @@ -6452,13 +5888,9 @@ class NavigationSessionEventApi: NavigationSessionEventApiProtocol { var codec: MessagesPigeonCodec { return MessagesPigeonCodec.shared } - func onSpeedingUpdated( - msg msgArg: SpeedingUpdatedEventDto, completion: @escaping (Result) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onSpeedingUpdated\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func onSpeedingUpdated(msg msgArg: SpeedingUpdatedEventDto, completion: @escaping (Result) -> Void) { + let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onSpeedingUpdated\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([msgArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -6474,13 +5906,9 @@ class NavigationSessionEventApi: NavigationSessionEventApiProtocol { } } } - func onRoadSnappedLocationUpdated( - location locationArg: LatLngDto, completion: @escaping (Result) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRoadSnappedLocationUpdated\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func onRoadSnappedLocationUpdated(location locationArg: LatLngDto, completion: @escaping (Result) -> Void) { + let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRoadSnappedLocationUpdated\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([locationArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -6496,13 +5924,9 @@ class NavigationSessionEventApi: NavigationSessionEventApiProtocol { } } } - func onRoadSnappedRawLocationUpdated( - location locationArg: LatLngDto, completion: @escaping (Result) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRoadSnappedRawLocationUpdated\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func onRoadSnappedRawLocationUpdated(location locationArg: LatLngDto, completion: @escaping (Result) -> Void) { + let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRoadSnappedRawLocationUpdated\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([locationArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -6518,14 +5942,9 @@ class NavigationSessionEventApi: NavigationSessionEventApiProtocol { } } } - func onArrival( - waypoint waypointArg: NavigationWaypointDto, - completion: @escaping (Result) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onArrival\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func onArrival(waypoint waypointArg: NavigationWaypointDto, completion: @escaping (Result) -> Void) { + let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onArrival\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([waypointArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -6542,10 +5961,8 @@ class NavigationSessionEventApi: NavigationSessionEventApiProtocol { } } func onRouteChanged(completion: @escaping (Result) -> Void) { - let channelName: String = - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRouteChanged\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRouteChanged\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage(nil) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -6561,17 +5978,10 @@ class NavigationSessionEventApi: NavigationSessionEventApiProtocol { } } } - func onRemainingTimeOrDistanceChanged( - remainingTime remainingTimeArg: Double, remainingDistance remainingDistanceArg: Double, - delaySeverity delaySeverityArg: TrafficDelaySeverityDto, - completion: @escaping (Result) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRemainingTimeOrDistanceChanged\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) - channel.sendMessage([remainingTimeArg, remainingDistanceArg, delaySeverityArg] as [Any?]) { - response in + func onRemainingTimeOrDistanceChanged(remainingTime remainingTimeArg: Double, remainingDistance remainingDistanceArg: Double, delaySeverity delaySeverityArg: TrafficDelaySeverityDto, completion: @escaping (Result) -> Void) { + let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRemainingTimeOrDistanceChanged\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + channel.sendMessage([remainingTimeArg, remainingDistanceArg, delaySeverityArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) return @@ -6588,10 +5998,8 @@ class NavigationSessionEventApi: NavigationSessionEventApiProtocol { } /// Android-only event. func onTrafficUpdated(completion: @escaping (Result) -> Void) { - let channelName: String = - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onTrafficUpdated\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onTrafficUpdated\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage(nil) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -6609,10 +6017,8 @@ class NavigationSessionEventApi: NavigationSessionEventApiProtocol { } /// Android-only event. func onRerouting(completion: @escaping (Result) -> Void) { - let channelName: String = - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRerouting\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRerouting\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage(nil) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -6629,13 +6035,9 @@ class NavigationSessionEventApi: NavigationSessionEventApiProtocol { } } /// Android-only event. - func onGpsAvailabilityUpdate( - available availableArg: Bool, completion: @escaping (Result) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onGpsAvailabilityUpdate\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func onGpsAvailabilityUpdate(available availableArg: Bool, completion: @escaping (Result) -> Void) { + let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onGpsAvailabilityUpdate\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([availableArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -6652,14 +6054,9 @@ class NavigationSessionEventApi: NavigationSessionEventApiProtocol { } } /// Android-only event. - func onGpsAvailabilityChange( - event eventArg: GpsAvailabilityChangeEventDto, - completion: @escaping (Result) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onGpsAvailabilityChange\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func onGpsAvailabilityChange(event eventArg: GpsAvailabilityChangeEventDto, completion: @escaping (Result) -> Void) { + let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onGpsAvailabilityChange\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([eventArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -6676,13 +6073,9 @@ class NavigationSessionEventApi: NavigationSessionEventApiProtocol { } } /// Turn-by-Turn navigation events. - func onNavInfo( - navInfo navInfoArg: NavInfoDto, completion: @escaping (Result) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onNavInfo\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func onNavInfo(navInfo navInfoArg: NavInfoDto, completion: @escaping (Result) -> Void) { + let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onNavInfo\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([navInfoArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -6701,10 +6094,8 @@ class NavigationSessionEventApi: NavigationSessionEventApiProtocol { /// Navigation session event. Called when a new navigation /// session starts with active guidance. func onNewNavigationSession(completion: @escaping (Result) -> Void) { - let channelName: String = - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onNewNavigationSession\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onNewNavigationSession\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage(nil) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -6736,25 +6127,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 @@ -6842,17 +6221,12 @@ protocol AutoMapViewApi { class AutoMapViewApiSetup { static var codec: FlutterStandardMessageCodec { MessagesPigeonCodec.shared } /// Sets up an instance of `AutoMapViewApi` to handle messages through the `binaryMessenger`. - static func setUp( - binaryMessenger: FlutterBinaryMessenger, api: AutoMapViewApi?, messageChannelSuffix: String = "" - ) { + static func setUp(binaryMessenger: FlutterBinaryMessenger, api: AutoMapViewApi?, messageChannelSuffix: String = "") { let channelSuffix = messageChannelSuffix.count > 0 ? ".\(messageChannelSuffix)" : "" /// Sets the map options to be used for Android Auto and CarPlay views. /// Should be called before the Auto/CarPlay screen is created. /// This allows customization of mapId and basic map settings. - let setAutoMapOptionsChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setAutoMapOptions\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let setAutoMapOptionsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setAutoMapOptions\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { setAutoMapOptionsChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -6867,10 +6241,7 @@ class AutoMapViewApiSetup { } else { setAutoMapOptionsChannel.setMessageHandler(nil) } - let isMyLocationEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isMyLocationEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let isMyLocationEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isMyLocationEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { isMyLocationEnabledChannel.setMessageHandler { _, reply in do { @@ -6883,10 +6254,7 @@ class AutoMapViewApiSetup { } else { isMyLocationEnabledChannel.setMessageHandler(nil) } - let setMyLocationEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMyLocationEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let setMyLocationEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMyLocationEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { setMyLocationEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -6901,10 +6269,7 @@ class AutoMapViewApiSetup { } else { setMyLocationEnabledChannel.setMessageHandler(nil) } - let getMyLocationChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMyLocation\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let getMyLocationChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMyLocation\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { getMyLocationChannel.setMessageHandler { _, reply in do { @@ -6917,10 +6282,7 @@ class AutoMapViewApiSetup { } else { getMyLocationChannel.setMessageHandler(nil) } - let getMapTypeChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMapType\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let getMapTypeChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMapType\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { getMapTypeChannel.setMessageHandler { _, reply in do { @@ -6933,10 +6295,7 @@ class AutoMapViewApiSetup { } else { getMapTypeChannel.setMessageHandler(nil) } - let setMapTypeChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapType\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let setMapTypeChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapType\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { setMapTypeChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -6951,10 +6310,7 @@ class AutoMapViewApiSetup { } else { setMapTypeChannel.setMessageHandler(nil) } - let setMapStyleChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapStyle\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let setMapStyleChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapStyle\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { setMapStyleChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -6969,10 +6325,7 @@ class AutoMapViewApiSetup { } else { setMapStyleChannel.setMessageHandler(nil) } - let getCameraPositionChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getCameraPosition\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let getCameraPositionChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getCameraPosition\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { getCameraPositionChannel.setMessageHandler { _, reply in do { @@ -6985,10 +6338,7 @@ class AutoMapViewApiSetup { } else { getCameraPositionChannel.setMessageHandler(nil) } - let getVisibleRegionChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getVisibleRegion\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let getVisibleRegionChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getVisibleRegion\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { getVisibleRegionChannel.setMessageHandler { _, reply in do { @@ -7001,10 +6351,7 @@ class AutoMapViewApiSetup { } else { getVisibleRegionChannel.setMessageHandler(nil) } - let followMyLocationChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.followMyLocation\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let followMyLocationChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.followMyLocation\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { followMyLocationChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -7020,17 +6367,13 @@ class AutoMapViewApiSetup { } else { followMyLocationChannel.setMessageHandler(nil) } - let animateCameraToCameraPositionChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToCameraPosition\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let animateCameraToCameraPositionChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToCameraPosition\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { animateCameraToCameraPositionChannel.setMessageHandler { message, reply in let args = message as! [Any?] let cameraPositionArg = args[0] as! CameraPositionDto let durationArg: Int64? = nilOrValue(args[1]) - api.animateCameraToCameraPosition(cameraPosition: cameraPositionArg, duration: durationArg) - { result in + api.animateCameraToCameraPosition(cameraPosition: cameraPositionArg, duration: durationArg) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -7042,10 +6385,7 @@ class AutoMapViewApiSetup { } else { animateCameraToCameraPositionChannel.setMessageHandler(nil) } - let animateCameraToLatLngChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLng\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let animateCameraToLatLngChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLng\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { animateCameraToLatLngChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -7063,19 +6403,14 @@ class AutoMapViewApiSetup { } else { animateCameraToLatLngChannel.setMessageHandler(nil) } - let animateCameraToLatLngBoundsChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLngBounds\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let animateCameraToLatLngBoundsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLngBounds\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { animateCameraToLatLngBoundsChannel.setMessageHandler { message, reply in let args = message as! [Any?] let boundsArg = args[0] as! LatLngBoundsDto let paddingArg = args[1] as! Double let durationArg: Int64? = nilOrValue(args[2]) - api.animateCameraToLatLngBounds( - bounds: boundsArg, padding: paddingArg, duration: durationArg - ) { result in + api.animateCameraToLatLngBounds(bounds: boundsArg, padding: paddingArg, duration: durationArg) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -7087,18 +6422,14 @@ class AutoMapViewApiSetup { } else { animateCameraToLatLngBoundsChannel.setMessageHandler(nil) } - let animateCameraToLatLngZoomChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLngZoom\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let animateCameraToLatLngZoomChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLngZoom\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { animateCameraToLatLngZoomChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pointArg = args[0] as! LatLngDto let zoomArg = args[1] as! Double let durationArg: Int64? = nilOrValue(args[2]) - api.animateCameraToLatLngZoom(point: pointArg, zoom: zoomArg, duration: durationArg) { - result in + api.animateCameraToLatLngZoom(point: pointArg, zoom: zoomArg, duration: durationArg) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -7110,19 +6441,14 @@ class AutoMapViewApiSetup { } else { animateCameraToLatLngZoomChannel.setMessageHandler(nil) } - let animateCameraByScrollChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraByScroll\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let animateCameraByScrollChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraByScroll\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { animateCameraByScrollChannel.setMessageHandler { message, reply in let args = message as! [Any?] let scrollByDxArg = args[0] as! Double let scrollByDyArg = args[1] as! Double let durationArg: Int64? = nilOrValue(args[2]) - api.animateCameraByScroll( - scrollByDx: scrollByDxArg, scrollByDy: scrollByDyArg, duration: durationArg - ) { result in + api.animateCameraByScroll(scrollByDx: scrollByDxArg, scrollByDy: scrollByDyArg, duration: durationArg) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -7134,10 +6460,7 @@ class AutoMapViewApiSetup { } else { animateCameraByScrollChannel.setMessageHandler(nil) } - let animateCameraByZoomChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraByZoom\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let animateCameraByZoomChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraByZoom\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { animateCameraByZoomChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -7145,9 +6468,7 @@ class AutoMapViewApiSetup { let focusDxArg: Double? = nilOrValue(args[1]) let focusDyArg: Double? = nilOrValue(args[2]) let durationArg: Int64? = nilOrValue(args[3]) - api.animateCameraByZoom( - zoomBy: zoomByArg, focusDx: focusDxArg, focusDy: focusDyArg, duration: durationArg - ) { result in + api.animateCameraByZoom(zoomBy: zoomByArg, focusDx: focusDxArg, focusDy: focusDyArg, duration: durationArg) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -7159,10 +6480,7 @@ class AutoMapViewApiSetup { } else { animateCameraByZoomChannel.setMessageHandler(nil) } - let animateCameraToZoomChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToZoom\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let animateCameraToZoomChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToZoom\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { animateCameraToZoomChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -7180,10 +6498,7 @@ class AutoMapViewApiSetup { } else { animateCameraToZoomChannel.setMessageHandler(nil) } - let moveCameraToCameraPositionChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToCameraPosition\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let moveCameraToCameraPositionChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToCameraPosition\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { moveCameraToCameraPositionChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -7198,10 +6513,7 @@ class AutoMapViewApiSetup { } else { moveCameraToCameraPositionChannel.setMessageHandler(nil) } - let moveCameraToLatLngChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLng\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let moveCameraToLatLngChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLng\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { moveCameraToLatLngChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -7216,10 +6528,7 @@ class AutoMapViewApiSetup { } else { moveCameraToLatLngChannel.setMessageHandler(nil) } - let moveCameraToLatLngBoundsChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLngBounds\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let moveCameraToLatLngBoundsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLngBounds\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { moveCameraToLatLngBoundsChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -7235,10 +6544,7 @@ class AutoMapViewApiSetup { } else { moveCameraToLatLngBoundsChannel.setMessageHandler(nil) } - let moveCameraToLatLngZoomChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLngZoom\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let moveCameraToLatLngZoomChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLngZoom\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { moveCameraToLatLngZoomChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -7254,10 +6560,7 @@ class AutoMapViewApiSetup { } else { moveCameraToLatLngZoomChannel.setMessageHandler(nil) } - let moveCameraByScrollChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraByScroll\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let moveCameraByScrollChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraByScroll\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { moveCameraByScrollChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -7273,10 +6576,7 @@ class AutoMapViewApiSetup { } else { moveCameraByScrollChannel.setMessageHandler(nil) } - let moveCameraByZoomChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraByZoom\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let moveCameraByZoomChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraByZoom\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { moveCameraByZoomChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -7293,10 +6593,7 @@ class AutoMapViewApiSetup { } else { moveCameraByZoomChannel.setMessageHandler(nil) } - let moveCameraToZoomChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToZoom\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let moveCameraToZoomChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToZoom\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { moveCameraToZoomChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -7311,10 +6608,7 @@ class AutoMapViewApiSetup { } else { moveCameraToZoomChannel.setMessageHandler(nil) } - let getMinZoomPreferenceChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMinZoomPreference\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let getMinZoomPreferenceChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMinZoomPreference\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { getMinZoomPreferenceChannel.setMessageHandler { _, reply in do { @@ -7327,10 +6621,7 @@ class AutoMapViewApiSetup { } else { getMinZoomPreferenceChannel.setMessageHandler(nil) } - let getMaxZoomPreferenceChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMaxZoomPreference\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let getMaxZoomPreferenceChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMaxZoomPreference\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { getMaxZoomPreferenceChannel.setMessageHandler { _, reply in do { @@ -7343,10 +6634,7 @@ class AutoMapViewApiSetup { } else { getMaxZoomPreferenceChannel.setMessageHandler(nil) } - let resetMinMaxZoomPreferenceChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.resetMinMaxZoomPreference\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let resetMinMaxZoomPreferenceChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.resetMinMaxZoomPreference\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { resetMinMaxZoomPreferenceChannel.setMessageHandler { _, reply in do { @@ -7359,10 +6647,7 @@ class AutoMapViewApiSetup { } else { resetMinMaxZoomPreferenceChannel.setMessageHandler(nil) } - let setMinZoomPreferenceChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMinZoomPreference\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let setMinZoomPreferenceChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMinZoomPreference\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { setMinZoomPreferenceChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -7377,10 +6662,7 @@ class AutoMapViewApiSetup { } else { setMinZoomPreferenceChannel.setMessageHandler(nil) } - let setMaxZoomPreferenceChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMaxZoomPreference\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let setMaxZoomPreferenceChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMaxZoomPreference\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { setMaxZoomPreferenceChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -7395,10 +6677,7 @@ class AutoMapViewApiSetup { } else { setMaxZoomPreferenceChannel.setMessageHandler(nil) } - let setMyLocationButtonEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMyLocationButtonEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let setMyLocationButtonEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMyLocationButtonEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { setMyLocationButtonEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -7413,10 +6692,7 @@ class AutoMapViewApiSetup { } else { setMyLocationButtonEnabledChannel.setMessageHandler(nil) } - let setConsumeMyLocationButtonClickEventsEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setConsumeMyLocationButtonClickEventsEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let setConsumeMyLocationButtonClickEventsEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setConsumeMyLocationButtonClickEventsEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { setConsumeMyLocationButtonClickEventsEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -7431,10 +6707,7 @@ class AutoMapViewApiSetup { } else { setConsumeMyLocationButtonClickEventsEnabledChannel.setMessageHandler(nil) } - let setZoomGesturesEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setZoomGesturesEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let setZoomGesturesEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setZoomGesturesEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { setZoomGesturesEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -7449,10 +6722,7 @@ class AutoMapViewApiSetup { } else { setZoomGesturesEnabledChannel.setMessageHandler(nil) } - let setZoomControlsEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setZoomControlsEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let setZoomControlsEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setZoomControlsEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { setZoomControlsEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -7467,10 +6737,7 @@ class AutoMapViewApiSetup { } else { setZoomControlsEnabledChannel.setMessageHandler(nil) } - let setCompassEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setCompassEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let setCompassEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setCompassEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { setCompassEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -7485,10 +6752,7 @@ class AutoMapViewApiSetup { } else { setCompassEnabledChannel.setMessageHandler(nil) } - let setRotateGesturesEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setRotateGesturesEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let setRotateGesturesEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setRotateGesturesEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { setRotateGesturesEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -7503,10 +6767,7 @@ class AutoMapViewApiSetup { } else { setRotateGesturesEnabledChannel.setMessageHandler(nil) } - let setScrollGesturesEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setScrollGesturesEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let setScrollGesturesEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setScrollGesturesEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { setScrollGesturesEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -7521,10 +6782,7 @@ class AutoMapViewApiSetup { } else { setScrollGesturesEnabledChannel.setMessageHandler(nil) } - let setScrollGesturesDuringRotateOrZoomEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setScrollGesturesDuringRotateOrZoomEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let setScrollGesturesDuringRotateOrZoomEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setScrollGesturesDuringRotateOrZoomEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { setScrollGesturesDuringRotateOrZoomEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -7539,10 +6797,7 @@ class AutoMapViewApiSetup { } else { setScrollGesturesDuringRotateOrZoomEnabledChannel.setMessageHandler(nil) } - let setTiltGesturesEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTiltGesturesEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let setTiltGesturesEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTiltGesturesEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { setTiltGesturesEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -7557,10 +6812,7 @@ class AutoMapViewApiSetup { } else { setTiltGesturesEnabledChannel.setMessageHandler(nil) } - let setMapToolbarEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapToolbarEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let setMapToolbarEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapToolbarEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { setMapToolbarEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -7575,10 +6827,7 @@ class AutoMapViewApiSetup { } else { setMapToolbarEnabledChannel.setMessageHandler(nil) } - let setTrafficEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let setTrafficEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { setTrafficEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -7593,10 +6842,7 @@ class AutoMapViewApiSetup { } else { setTrafficEnabledChannel.setMessageHandler(nil) } - let setTrafficPromptsEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficPromptsEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let setTrafficPromptsEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficPromptsEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { setTrafficPromptsEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -7611,10 +6857,7 @@ class AutoMapViewApiSetup { } else { setTrafficPromptsEnabledChannel.setMessageHandler(nil) } - let setTrafficIncidentCardsEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficIncidentCardsEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let setTrafficIncidentCardsEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficIncidentCardsEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { setTrafficIncidentCardsEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -7629,10 +6872,7 @@ class AutoMapViewApiSetup { } else { setTrafficIncidentCardsEnabledChannel.setMessageHandler(nil) } - let setNavigationTripProgressBarEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setNavigationTripProgressBarEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let setNavigationTripProgressBarEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setNavigationTripProgressBarEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { setNavigationTripProgressBarEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -7647,10 +6887,7 @@ class AutoMapViewApiSetup { } else { setNavigationTripProgressBarEnabledChannel.setMessageHandler(nil) } - let setSpeedLimitIconEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setSpeedLimitIconEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let setSpeedLimitIconEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setSpeedLimitIconEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { setSpeedLimitIconEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -7665,10 +6902,7 @@ class AutoMapViewApiSetup { } else { setSpeedLimitIconEnabledChannel.setMessageHandler(nil) } - let setSpeedometerEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setSpeedometerEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let setSpeedometerEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setSpeedometerEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { setSpeedometerEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -7683,10 +6917,7 @@ class AutoMapViewApiSetup { } else { setSpeedometerEnabledChannel.setMessageHandler(nil) } - let setNavigationUIEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setNavigationUIEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let setNavigationUIEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setNavigationUIEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { setNavigationUIEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -7701,10 +6932,7 @@ class AutoMapViewApiSetup { } else { setNavigationUIEnabledChannel.setMessageHandler(nil) } - let isMyLocationButtonEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isMyLocationButtonEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let isMyLocationButtonEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isMyLocationButtonEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { isMyLocationButtonEnabledChannel.setMessageHandler { _, reply in do { @@ -7717,10 +6945,7 @@ class AutoMapViewApiSetup { } else { isMyLocationButtonEnabledChannel.setMessageHandler(nil) } - let isConsumeMyLocationButtonClickEventsEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isConsumeMyLocationButtonClickEventsEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let isConsumeMyLocationButtonClickEventsEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isConsumeMyLocationButtonClickEventsEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { isConsumeMyLocationButtonClickEventsEnabledChannel.setMessageHandler { _, reply in do { @@ -7733,10 +6958,7 @@ class AutoMapViewApiSetup { } else { isConsumeMyLocationButtonClickEventsEnabledChannel.setMessageHandler(nil) } - let isZoomGesturesEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isZoomGesturesEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let isZoomGesturesEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isZoomGesturesEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { isZoomGesturesEnabledChannel.setMessageHandler { _, reply in do { @@ -7749,10 +6971,7 @@ class AutoMapViewApiSetup { } else { isZoomGesturesEnabledChannel.setMessageHandler(nil) } - let isZoomControlsEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isZoomControlsEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let isZoomControlsEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isZoomControlsEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { isZoomControlsEnabledChannel.setMessageHandler { _, reply in do { @@ -7765,10 +6984,7 @@ class AutoMapViewApiSetup { } else { isZoomControlsEnabledChannel.setMessageHandler(nil) } - let isCompassEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isCompassEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let isCompassEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isCompassEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { isCompassEnabledChannel.setMessageHandler { _, reply in do { @@ -7781,10 +6997,7 @@ class AutoMapViewApiSetup { } else { isCompassEnabledChannel.setMessageHandler(nil) } - let isRotateGesturesEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isRotateGesturesEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let isRotateGesturesEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isRotateGesturesEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { isRotateGesturesEnabledChannel.setMessageHandler { _, reply in do { @@ -7797,10 +7010,7 @@ class AutoMapViewApiSetup { } else { isRotateGesturesEnabledChannel.setMessageHandler(nil) } - let isScrollGesturesEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isScrollGesturesEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let isScrollGesturesEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isScrollGesturesEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { isScrollGesturesEnabledChannel.setMessageHandler { _, reply in do { @@ -7813,10 +7023,7 @@ class AutoMapViewApiSetup { } else { isScrollGesturesEnabledChannel.setMessageHandler(nil) } - let isScrollGesturesEnabledDuringRotateOrZoomChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isScrollGesturesEnabledDuringRotateOrZoom\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let isScrollGesturesEnabledDuringRotateOrZoomChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isScrollGesturesEnabledDuringRotateOrZoom\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { isScrollGesturesEnabledDuringRotateOrZoomChannel.setMessageHandler { _, reply in do { @@ -7829,10 +7036,7 @@ class AutoMapViewApiSetup { } else { isScrollGesturesEnabledDuringRotateOrZoomChannel.setMessageHandler(nil) } - let isTiltGesturesEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTiltGesturesEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let isTiltGesturesEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTiltGesturesEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { isTiltGesturesEnabledChannel.setMessageHandler { _, reply in do { @@ -7845,10 +7049,7 @@ class AutoMapViewApiSetup { } else { isTiltGesturesEnabledChannel.setMessageHandler(nil) } - let isMapToolbarEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isMapToolbarEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let isMapToolbarEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isMapToolbarEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { isMapToolbarEnabledChannel.setMessageHandler { _, reply in do { @@ -7861,10 +7062,7 @@ class AutoMapViewApiSetup { } else { isMapToolbarEnabledChannel.setMessageHandler(nil) } - let isTrafficEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTrafficEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let isTrafficEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTrafficEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { isTrafficEnabledChannel.setMessageHandler { _, reply in do { @@ -7877,10 +7075,7 @@ class AutoMapViewApiSetup { } else { isTrafficEnabledChannel.setMessageHandler(nil) } - let isTrafficPromptsEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTrafficPromptsEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let isTrafficPromptsEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTrafficPromptsEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { isTrafficPromptsEnabledChannel.setMessageHandler { _, reply in do { @@ -7893,10 +7088,7 @@ class AutoMapViewApiSetup { } else { isTrafficPromptsEnabledChannel.setMessageHandler(nil) } - let isTrafficIncidentCardsEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTrafficIncidentCardsEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let isTrafficIncidentCardsEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTrafficIncidentCardsEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { isTrafficIncidentCardsEnabledChannel.setMessageHandler { _, reply in do { @@ -7909,10 +7101,7 @@ class AutoMapViewApiSetup { } else { isTrafficIncidentCardsEnabledChannel.setMessageHandler(nil) } - let isNavigationTripProgressBarEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isNavigationTripProgressBarEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let isNavigationTripProgressBarEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isNavigationTripProgressBarEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { isNavigationTripProgressBarEnabledChannel.setMessageHandler { _, reply in do { @@ -7925,10 +7114,7 @@ class AutoMapViewApiSetup { } else { isNavigationTripProgressBarEnabledChannel.setMessageHandler(nil) } - let isSpeedLimitIconEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isSpeedLimitIconEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let isSpeedLimitIconEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isSpeedLimitIconEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { isSpeedLimitIconEnabledChannel.setMessageHandler { _, reply in do { @@ -7941,10 +7127,7 @@ class AutoMapViewApiSetup { } else { isSpeedLimitIconEnabledChannel.setMessageHandler(nil) } - let isSpeedometerEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isSpeedometerEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let isSpeedometerEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isSpeedometerEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { isSpeedometerEnabledChannel.setMessageHandler { _, reply in do { @@ -7957,10 +7140,7 @@ class AutoMapViewApiSetup { } else { isSpeedometerEnabledChannel.setMessageHandler(nil) } - let isNavigationUIEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isNavigationUIEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let isNavigationUIEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isNavigationUIEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { isNavigationUIEnabledChannel.setMessageHandler { _, reply in do { @@ -7973,10 +7153,7 @@ class AutoMapViewApiSetup { } else { isNavigationUIEnabledChannel.setMessageHandler(nil) } - let isIndoorEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isIndoorEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let isIndoorEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isIndoorEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { isIndoorEnabledChannel.setMessageHandler { _, reply in do { @@ -7989,10 +7166,7 @@ class AutoMapViewApiSetup { } else { isIndoorEnabledChannel.setMessageHandler(nil) } - let setIndoorEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setIndoorEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let setIndoorEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setIndoorEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { setIndoorEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -8007,10 +7181,7 @@ class AutoMapViewApiSetup { } else { setIndoorEnabledChannel.setMessageHandler(nil) } - let getFocusedIndoorBuildingChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getFocusedIndoorBuilding\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let getFocusedIndoorBuildingChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getFocusedIndoorBuilding\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { getFocusedIndoorBuildingChannel.setMessageHandler { _, reply in do { @@ -8023,10 +7194,7 @@ class AutoMapViewApiSetup { } else { getFocusedIndoorBuildingChannel.setMessageHandler(nil) } - let activateIndoorLevelChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.activateIndoorLevel\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let activateIndoorLevelChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.activateIndoorLevel\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { activateIndoorLevelChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -8041,10 +7209,7 @@ class AutoMapViewApiSetup { } else { activateIndoorLevelChannel.setMessageHandler(nil) } - let showRouteOverviewChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.showRouteOverview\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let showRouteOverviewChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.showRouteOverview\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { showRouteOverviewChannel.setMessageHandler { _, reply in do { @@ -8057,10 +7222,7 @@ class AutoMapViewApiSetup { } else { showRouteOverviewChannel.setMessageHandler(nil) } - let getMarkersChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMarkers\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let getMarkersChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMarkers\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { getMarkersChannel.setMessageHandler { _, reply in do { @@ -8073,10 +7235,7 @@ class AutoMapViewApiSetup { } else { getMarkersChannel.setMessageHandler(nil) } - let addMarkersChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addMarkers\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let addMarkersChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addMarkers\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { addMarkersChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -8091,10 +7250,7 @@ class AutoMapViewApiSetup { } else { addMarkersChannel.setMessageHandler(nil) } - let updateMarkersChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updateMarkers\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let updateMarkersChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updateMarkers\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { updateMarkersChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -8109,10 +7265,7 @@ class AutoMapViewApiSetup { } else { updateMarkersChannel.setMessageHandler(nil) } - let removeMarkersChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removeMarkers\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let removeMarkersChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removeMarkers\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { removeMarkersChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -8127,10 +7280,7 @@ class AutoMapViewApiSetup { } else { removeMarkersChannel.setMessageHandler(nil) } - let clearMarkersChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearMarkers\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let clearMarkersChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearMarkers\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { clearMarkersChannel.setMessageHandler { _, reply in do { @@ -8143,9 +7293,7 @@ class AutoMapViewApiSetup { } else { clearMarkersChannel.setMessageHandler(nil) } - let clearChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clear\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let clearChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clear\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { clearChannel.setMessageHandler { _, reply in do { @@ -8158,10 +7306,7 @@ class AutoMapViewApiSetup { } else { clearChannel.setMessageHandler(nil) } - let getPolygonsChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getPolygons\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let getPolygonsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getPolygons\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { getPolygonsChannel.setMessageHandler { _, reply in do { @@ -8174,10 +7319,7 @@ class AutoMapViewApiSetup { } else { getPolygonsChannel.setMessageHandler(nil) } - let addPolygonsChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addPolygons\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let addPolygonsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addPolygons\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { addPolygonsChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -8192,10 +7334,7 @@ class AutoMapViewApiSetup { } else { addPolygonsChannel.setMessageHandler(nil) } - let updatePolygonsChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updatePolygons\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let updatePolygonsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updatePolygons\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { updatePolygonsChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -8210,10 +7349,7 @@ class AutoMapViewApiSetup { } else { updatePolygonsChannel.setMessageHandler(nil) } - let removePolygonsChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removePolygons\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let removePolygonsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removePolygons\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { removePolygonsChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -8228,10 +7364,7 @@ class AutoMapViewApiSetup { } else { removePolygonsChannel.setMessageHandler(nil) } - let clearPolygonsChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearPolygons\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let clearPolygonsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearPolygons\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { clearPolygonsChannel.setMessageHandler { _, reply in do { @@ -8244,10 +7377,7 @@ class AutoMapViewApiSetup { } else { clearPolygonsChannel.setMessageHandler(nil) } - let getPolylinesChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getPolylines\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let getPolylinesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getPolylines\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { getPolylinesChannel.setMessageHandler { _, reply in do { @@ -8260,10 +7390,7 @@ class AutoMapViewApiSetup { } else { getPolylinesChannel.setMessageHandler(nil) } - let addPolylinesChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addPolylines\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let addPolylinesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addPolylines\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { addPolylinesChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -8278,10 +7405,7 @@ class AutoMapViewApiSetup { } else { addPolylinesChannel.setMessageHandler(nil) } - let updatePolylinesChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updatePolylines\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let updatePolylinesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updatePolylines\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { updatePolylinesChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -8296,10 +7420,7 @@ class AutoMapViewApiSetup { } else { updatePolylinesChannel.setMessageHandler(nil) } - let removePolylinesChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removePolylines\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let removePolylinesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removePolylines\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { removePolylinesChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -8314,10 +7435,7 @@ class AutoMapViewApiSetup { } else { removePolylinesChannel.setMessageHandler(nil) } - let clearPolylinesChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearPolylines\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let clearPolylinesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearPolylines\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { clearPolylinesChannel.setMessageHandler { _, reply in do { @@ -8330,10 +7448,7 @@ class AutoMapViewApiSetup { } else { clearPolylinesChannel.setMessageHandler(nil) } - let getCirclesChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getCircles\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let getCirclesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getCircles\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { getCirclesChannel.setMessageHandler { _, reply in do { @@ -8346,10 +7461,7 @@ class AutoMapViewApiSetup { } else { getCirclesChannel.setMessageHandler(nil) } - let addCirclesChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addCircles\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let addCirclesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addCircles\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { addCirclesChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -8364,10 +7476,7 @@ class AutoMapViewApiSetup { } else { addCirclesChannel.setMessageHandler(nil) } - let updateCirclesChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updateCircles\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let updateCirclesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updateCircles\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { updateCirclesChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -8382,10 +7491,7 @@ class AutoMapViewApiSetup { } else { updateCirclesChannel.setMessageHandler(nil) } - let removeCirclesChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removeCircles\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let removeCirclesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removeCircles\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { removeCirclesChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -8400,10 +7506,7 @@ class AutoMapViewApiSetup { } else { removeCirclesChannel.setMessageHandler(nil) } - let clearCirclesChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearCircles\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let clearCirclesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearCircles\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { clearCirclesChannel.setMessageHandler { _, reply in do { @@ -8416,10 +7519,7 @@ class AutoMapViewApiSetup { } else { clearCirclesChannel.setMessageHandler(nil) } - let enableOnCameraChangedEventsChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.enableOnCameraChangedEvents\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let enableOnCameraChangedEventsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.enableOnCameraChangedEvents\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { enableOnCameraChangedEventsChannel.setMessageHandler { _, reply in do { @@ -8432,10 +7532,7 @@ class AutoMapViewApiSetup { } else { enableOnCameraChangedEventsChannel.setMessageHandler(nil) } - let isAutoScreenAvailableChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isAutoScreenAvailable\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let isAutoScreenAvailableChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isAutoScreenAvailable\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { isAutoScreenAvailableChannel.setMessageHandler { _, reply in do { @@ -8448,10 +7545,7 @@ class AutoMapViewApiSetup { } else { isAutoScreenAvailableChannel.setMessageHandler(nil) } - let setPaddingChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setPadding\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let setPaddingChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setPadding\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { setPaddingChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -8466,10 +7560,7 @@ class AutoMapViewApiSetup { } else { setPaddingChannel.setMessageHandler(nil) } - let getPaddingChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getPadding\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let getPaddingChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getPadding\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { getPaddingChannel.setMessageHandler { _, reply in do { @@ -8482,10 +7573,7 @@ class AutoMapViewApiSetup { } else { getPaddingChannel.setMessageHandler(nil) } - let getMapColorSchemeChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMapColorScheme\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let getMapColorSchemeChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMapColorScheme\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { getMapColorSchemeChannel.setMessageHandler { _, reply in do { @@ -8498,10 +7586,7 @@ class AutoMapViewApiSetup { } else { getMapColorSchemeChannel.setMessageHandler(nil) } - let setMapColorSchemeChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapColorScheme\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let setMapColorSchemeChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapColorScheme\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { setMapColorSchemeChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -8516,10 +7601,7 @@ class AutoMapViewApiSetup { } else { setMapColorSchemeChannel.setMessageHandler(nil) } - let getForceNightModeChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getForceNightMode\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let getForceNightModeChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getForceNightMode\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { getForceNightModeChannel.setMessageHandler { _, reply in do { @@ -8532,10 +7614,7 @@ class AutoMapViewApiSetup { } else { getForceNightModeChannel.setMessageHandler(nil) } - let setForceNightModeChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setForceNightMode\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let setForceNightModeChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setForceNightMode\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { setForceNightModeChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -8550,10 +7629,7 @@ class AutoMapViewApiSetup { } else { setForceNightModeChannel.setMessageHandler(nil) } - let sendCustomNavigationAutoEventChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.sendCustomNavigationAutoEvent\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let sendCustomNavigationAutoEventChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.sendCustomNavigationAutoEvent\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { sendCustomNavigationAutoEventChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -8573,22 +7649,12 @@ class AutoMapViewApiSetup { } /// Generated protocol from Pigeon that represents Flutter messages that can be called from Swift. protocol AutoViewEventApiProtocol { - func onCustomNavigationAutoEvent( - event eventArg: String, data dataArg: Any, - completion: @escaping (Result) -> Void) - func onAutoScreenAvailabilityChanged( - isAvailable isAvailableArg: Bool, completion: @escaping (Result) -> Void) - func onPromptVisibilityChanged( - promptVisible promptVisibleArg: Bool, completion: @escaping (Result) -> Void) - func onNavigationUIEnabledChanged( - navigationUIEnabled navigationUIEnabledArg: Bool, - completion: @escaping (Result) -> Void) - func onIndoorFocusedBuildingChanged( - building buildingArg: IndoorBuildingDto?, - completion: @escaping (Result) -> Void) - func onIndoorActiveLevelChanged( - building buildingArg: IndoorBuildingDto?, - completion: @escaping (Result) -> Void) + func onCustomNavigationAutoEvent(event eventArg: String, data dataArg: Any, completion: @escaping (Result) -> Void) + func onAutoScreenAvailabilityChanged(isAvailable isAvailableArg: Bool, completion: @escaping (Result) -> Void) + func onPromptVisibilityChanged(promptVisible promptVisibleArg: Bool, completion: @escaping (Result) -> Void) + func onNavigationUIEnabledChanged(navigationUIEnabled navigationUIEnabledArg: Bool, completion: @escaping (Result) -> Void) + func onIndoorFocusedBuildingChanged(building buildingArg: IndoorBuildingDto?, completion: @escaping (Result) -> Void) + func onIndoorActiveLevelChanged(building buildingArg: IndoorBuildingDto?, completion: @escaping (Result) -> Void) } class AutoViewEventApi: AutoViewEventApiProtocol { private let binaryMessenger: FlutterBinaryMessenger @@ -8600,14 +7666,9 @@ class AutoViewEventApi: AutoViewEventApiProtocol { var codec: MessagesPigeonCodec { return MessagesPigeonCodec.shared } - func onCustomNavigationAutoEvent( - event eventArg: String, data dataArg: Any, - completion: @escaping (Result) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onCustomNavigationAutoEvent\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func onCustomNavigationAutoEvent(event eventArg: String, data dataArg: Any, completion: @escaping (Result) -> Void) { + let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onCustomNavigationAutoEvent\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([eventArg, dataArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -8623,13 +7684,9 @@ class AutoViewEventApi: AutoViewEventApiProtocol { } } } - func onAutoScreenAvailabilityChanged( - isAvailable isAvailableArg: Bool, completion: @escaping (Result) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onAutoScreenAvailabilityChanged\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func onAutoScreenAvailabilityChanged(isAvailable isAvailableArg: Bool, completion: @escaping (Result) -> Void) { + let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onAutoScreenAvailabilityChanged\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([isAvailableArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -8645,13 +7702,9 @@ class AutoViewEventApi: AutoViewEventApiProtocol { } } } - func onPromptVisibilityChanged( - promptVisible promptVisibleArg: Bool, completion: @escaping (Result) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onPromptVisibilityChanged\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func onPromptVisibilityChanged(promptVisible promptVisibleArg: Bool, completion: @escaping (Result) -> Void) { + let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onPromptVisibilityChanged\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([promptVisibleArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -8667,14 +7720,9 @@ class AutoViewEventApi: AutoViewEventApiProtocol { } } } - func onNavigationUIEnabledChanged( - navigationUIEnabled navigationUIEnabledArg: Bool, - completion: @escaping (Result) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onNavigationUIEnabledChanged\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func onNavigationUIEnabledChanged(navigationUIEnabled navigationUIEnabledArg: Bool, completion: @escaping (Result) -> Void) { + let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onNavigationUIEnabledChanged\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([navigationUIEnabledArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -8690,14 +7738,9 @@ class AutoViewEventApi: AutoViewEventApiProtocol { } } } - func onIndoorFocusedBuildingChanged( - building buildingArg: IndoorBuildingDto?, - completion: @escaping (Result) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onIndoorFocusedBuildingChanged\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func onIndoorFocusedBuildingChanged(building buildingArg: IndoorBuildingDto?, completion: @escaping (Result) -> Void) { + let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onIndoorFocusedBuildingChanged\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([buildingArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -8713,14 +7756,9 @@ class AutoViewEventApi: AutoViewEventApiProtocol { } } } - func onIndoorActiveLevelChanged( - building buildingArg: IndoorBuildingDto?, - completion: @escaping (Result) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onIndoorActiveLevelChanged\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func onIndoorActiveLevelChanged(building buildingArg: IndoorBuildingDto?, completion: @escaping (Result) -> Void) { + let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onIndoorActiveLevelChanged\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([buildingArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -8746,15 +7784,9 @@ protocol NavigationInspector { class NavigationInspectorSetup { static var codec: FlutterStandardMessageCodec { MessagesPigeonCodec.shared } /// Sets up an instance of `NavigationInspector` to handle messages through the `binaryMessenger`. - static func setUp( - binaryMessenger: FlutterBinaryMessenger, api: NavigationInspector?, - messageChannelSuffix: String = "" - ) { + static func setUp(binaryMessenger: FlutterBinaryMessenger, api: NavigationInspector?, messageChannelSuffix: String = "") { let channelSuffix = messageChannelSuffix.count > 0 ? ".\(messageChannelSuffix)" : "" - let isViewAttachedToSessionChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.NavigationInspector.isViewAttachedToSession\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let isViewAttachedToSessionChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationInspector.isViewAttachedToSession\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { isViewAttachedToSessionChannel.setMessageHandler { message, reply in let args = message as! [Any?] diff --git a/lib/src/google_maps_navigation_view_controller.dart b/lib/src/google_maps_navigation_view_controller.dart index cbc304a8..79f93adf 100644 --- a/lib/src/google_maps_navigation_view_controller.dart +++ b/lib/src/google_maps_navigation_view_controller.dart @@ -51,6 +51,25 @@ class GoogleNavigationViewController extends GoogleMapViewController { .isNavigationHeaderEnabled(viewId: getViewId()); } + /// Returns the native navigation header background colors. + Future getNavigationHeaderStylingOptions() { + return GoogleMapsNavigationPlatform.instance.viewAPI + .getNavigationHeaderStylingOptions(viewId: getViewId()); + } + + /// Sets the native navigation header background colors. + /// + /// Any null color resets that specific color to the native SDK default. + Future setNavigationHeaderStylingOptions( + NavigationHeaderStylingOptions stylingOptions, + ) { + return GoogleMapsNavigationPlatform.instance.viewAPI + .setNavigationHeaderStylingOptions( + viewId: getViewId(), + stylingOptions: stylingOptions, + ); + } + /// Enable or disable the navigation header. /// /// By default, the navigation header is enabled. diff --git a/lib/src/method_channel/convert/navigation.dart b/lib/src/method_channel/convert/navigation.dart index 371b7061..ec4ca94d 100644 --- a/lib/src/method_channel/convert/navigation.dart +++ b/lib/src/method_channel/convert/navigation.dart @@ -12,6 +12,8 @@ // See the License for the specific language governing permissions and // limitations under the License. +import 'dart:ui'; + import '../../../google_navigation_flutter.dart'; import '../method_channel.dart'; @@ -220,6 +222,30 @@ extension ConvertContinueToNextDestinationResponseDto ); } +/// [NavigationHeaderStylingOptionsDto] convert extension. +/// @nodoc +extension ConvertNavigationHeaderStylingOptionsDto + on NavigationHeaderStylingOptionsDto { + /// Converts [NavigationHeaderStylingOptionsDto] to [NavigationHeaderStylingOptions]. + NavigationHeaderStylingOptions toNavigationHeaderStylingOptions() { + return NavigationHeaderStylingOptions( + primaryDayModeBackgroundColor: primaryDayModeBackgroundColor != null + ? Color(primaryDayModeBackgroundColor!) + : null, + secondaryDayModeBackgroundColor: secondaryDayModeBackgroundColor != null + ? Color(secondaryDayModeBackgroundColor!) + : null, + primaryNightModeBackgroundColor: primaryNightModeBackgroundColor != null + ? Color(primaryNightModeBackgroundColor!) + : null, + secondaryNightModeBackgroundColor: + secondaryNightModeBackgroundColor != null + ? Color(secondaryNightModeBackgroundColor!) + : null, + ); + } +} + /// [RouteSegmentDto] convert extension. /// @nodoc extension ConvertRouteSegmentDto on RouteSegmentDto { diff --git a/lib/src/method_channel/map_view_api.dart b/lib/src/method_channel/map_view_api.dart index 05dfc59b..52fd2cae 100644 --- a/lib/src/method_channel/map_view_api.dart +++ b/lib/src/method_channel/map_view_api.dart @@ -525,6 +525,24 @@ class MapViewAPIImpl { Future isNavigationHeaderEnabled({required int viewId}) => _viewApi.isNavigationHeaderEnabled(viewId).wrapPlatformException(); + /// Gets the navigation header background colors. + Future getNavigationHeaderStylingOptions({ + required int viewId, + }) async { + final NavigationHeaderStylingOptionsDto stylingOptions = await _viewApi + .getNavigationHeaderStylingOptions(viewId) + .wrapPlatformException(); + return stylingOptions.toNavigationHeaderStylingOptions(); + } + + /// Sets the navigation header background colors. + Future setNavigationHeaderStylingOptions({ + required int viewId, + required NavigationHeaderStylingOptions stylingOptions, + }) => _viewApi + .setNavigationHeaderStylingOptions(viewId, stylingOptions.toDto()) + .wrapPlatformException(); + /// Enable navigation header. Future setNavigationHeaderEnabled({ required int viewId, diff --git a/lib/src/method_channel/messages.g.dart b/lib/src/method_channel/messages.g.dart index 67e109d8..2ed8c07c 100644 --- a/lib/src/method_channel/messages.g.dart +++ b/lib/src/method_channel/messages.g.dart @@ -29,11 +29,7 @@ PlatformException _createConnectionError(String channelName) { ); } -List wrapResponse({ - Object? result, - PlatformException? error, - bool empty = false, -}) { +List wrapResponse({Object? result, PlatformException? error, bool empty = false}) { if (empty) { return []; } @@ -42,30 +38,25 @@ List wrapResponse({ } return [error.code, error.message, error.details]; } - bool _deepEquals(Object? a, Object? b) { if (a is List && b is List) { return a.length == b.length && - a.indexed.every( - ((int, dynamic) item) => _deepEquals(item.$2, b[item.$1]), - ); + a.indexed + .every(((int, dynamic) item) => _deepEquals(item.$2, b[item.$1])); } if (a is Map && b is Map) { - return a.length == b.length && - a.entries.every( - (MapEntry entry) => - (b as Map).containsKey(entry.key) && - _deepEquals(entry.value, b[entry.key]), - ); + return a.length == b.length && a.entries.every((MapEntry entry) => + (b as Map).containsKey(entry.key) && + _deepEquals(entry.value, b[entry.key])); } return a == b; } + /// Describes the type of map to construct. enum MapViewTypeDto { /// Navigation view supports navigation overlay, and current navigation session is displayed on the map. navigation, - /// Classic map view, without navigation overlay. map, } @@ -75,21 +66,24 @@ enum NavigationUIEnabledPreferenceDto { /// Navigation UI gets enabled if the navigation /// session has already been successfully started. automatic, - /// Navigation UI is disabled. disabled, } -enum MapTypeDto { none, normal, satellite, terrain, hybrid } +enum MapTypeDto { + none, + normal, + satellite, + terrain, + hybrid, +} /// Map color scheme mode. enum MapColorSchemeDto { /// Follow system or SDK default (automatic). followSystem, - /// Force light color scheme. light, - /// Force dark color scheme. dark, } @@ -98,23 +92,23 @@ enum MapColorSchemeDto { enum NavigationForceNightModeDto { /// Let the SDK automatically determine day or night. auto, - /// Force day mode regardless of time or location. forceDay, - /// Force night mode regardless of time or location. forceNight, } -enum CameraPerspectiveDto { tilted, topDownHeadingUp, topDownNorthUp } +enum CameraPerspectiveDto { + tilted, + topDownHeadingUp, + topDownNorthUp, +} enum RegisteredImageTypeDto { /// Default type used when custom bitmaps are uploaded to registry regular, - /// Maneuver image generated from StepInfo data maneuver, - /// Lanes guidance image generated from StepInfo data lanes, } @@ -126,11 +120,23 @@ enum MarkerEventTypeDto { infoWindowLongClicked, } -enum MarkerDragEventTypeDto { drag, dragStart, dragEnd } +enum MarkerDragEventTypeDto { + drag, + dragStart, + dragEnd, +} -enum StrokeJointTypeDto { bevel, defaultJoint, round } +enum StrokeJointTypeDto { + bevel, + defaultJoint, + round, +} -enum PatternTypeDto { dash, dot, gap } +enum PatternTypeDto { + dash, + dot, + gap, +} enum CameraEventTypeDto { moveStartedByApi, @@ -141,11 +147,25 @@ enum CameraEventTypeDto { onCameraStoppedFollowingLocation, } -enum AlternateRoutesStrategyDto { all, none, one } +enum AlternateRoutesStrategyDto { + all, + none, + one, +} -enum RoutingStrategyDto { defaultBest, deltaToTargetDistance, shorter } +enum RoutingStrategyDto { + defaultBest, + deltaToTargetDistance, + shorter, +} -enum TravelModeDto { driving, cycling, walking, twoWheeler, taxi } +enum TravelModeDto { + driving, + cycling, + walking, + twoWheeler, + taxi, +} enum RouteStatusDto { internalError, @@ -165,13 +185,30 @@ enum RouteStatusDto { unknown, } -enum TrafficDelaySeverityDto { light, medium, heavy, noData } +enum TrafficDelaySeverityDto { + light, + medium, + heavy, + noData, +} -enum AudioGuidanceTypeDto { silent, alertsOnly, alertsAndGuidance } +enum AudioGuidanceTypeDto { + silent, + alertsOnly, + alertsAndGuidance, +} -enum SpeedAlertSeverityDto { unknown, notSpeeding, minor, major } +enum SpeedAlertSeverityDto { + unknown, + notSpeeding, + minor, + major, +} -enum RouteSegmentTrafficDataStatusDto { ok, unavailable } +enum RouteSegmentTrafficDataStatusDto { + ok, + unavailable, +} enum RouteSegmentTrafficDataRoadStretchRenderingDataStyleDto { unknown, @@ -183,199 +220,134 @@ enum RouteSegmentTrafficDataRoadStretchRenderingDataStyleDto { enum ManeuverDto { /// Arrival at a destination. destination, - /// Starting point of the maneuver. depart, - /// Arrival at a destination located on the left side of the road. destinationLeft, - /// Arrival at a destination located on the right side of the road. destinationRight, - /// Take the boat ferry. ferryBoat, - /// Take the train ferry. ferryTrain, - /// Current road joins another road slightly on the left. forkLeft, - /// Current road joins another road slightly on the right. forkRight, - /// Current road joins another on the left. mergeLeft, - /// Current road joins another on the right. mergeRight, - /// Current road joins another. mergeUnspecified, - /// The street name changes. nameChange, - /// Keep to the left side of the road when exiting a turnpike or freeway as the road diverges. offRampKeepLeft, - /// Keep to the right side of the road when exiting a turnpike or freeway as the road diverges. offRampKeepRight, - /// Regular left turn to exit a turnpike or freeway. offRampLeft, - /// Regular right turn to exit a turnpike or freeway. offRampRight, - /// Sharp left turn to exit a turnpike or freeway. offRampSharpLeft, - /// Sharp right turn to exit a turnpike or freeway. offRampSharpRight, - /// Slight left turn to exit a turnpike or freeway. offRampSlightLeft, - /// Slight right turn to exit a turnpike or freeway. offRampSlightRight, - /// Exit a turnpike or freeway. offRampUnspecified, - /// Clockwise turn onto the opposite side of the street to exit a turnpike or freeway. offRampUTurnClockwise, - /// Counterclockwise turn onto the opposite side of the street to exit a turnpike or freeway. offRampUTurnCounterclockwise, - /// Keep to the left side of the road when entering a turnpike or freeway as the road diverges. onRampKeepLeft, - /// Keep to the right side of the road when entering a turnpike or freeway as the road diverges. onRampKeepRight, - /// Regular left turn to enter a turnpike or freeway. onRampLeft, - /// Regular right turn to enter a turnpike or freeway. onRampRight, - /// Sharp left turn to enter a turnpike or freeway. onRampSharpLeft, - /// Sharp right turn to enter a turnpike or freeway. onRampSharpRight, - /// Slight left turn to enter a turnpike or freeway. onRampSlightLeft, - /// Slight right turn to enter a turnpike or freeway. onRampSlightRight, - /// Enter a turnpike or freeway. onRampUnspecified, - /// Clockwise turn onto the opposite side of the street to enter a turnpike or freeway. onRampUTurnClockwise, - /// Counterclockwise turn onto the opposite side of the street to enter a turnpike or freeway. onRampUTurnCounterclockwise, - /// Enter a roundabout in the clockwise direction. roundaboutClockwise, - /// Enter a roundabout in the counterclockwise direction. roundaboutCounterclockwise, - /// Exit a roundabout in the clockwise direction. roundaboutExitClockwise, - /// Exit a roundabout in the counterclockwise direction. roundaboutExitCounterclockwise, - /// Enter a roundabout in the clockwise direction and turn left. roundaboutLeftClockwise, - /// Enter a roundabout in the counterclockwise direction and turn left. roundaboutLeftCounterclockwise, - /// Enter a roundabout in the clockwise direction and turn right. roundaboutRightClockwise, - /// Enter a roundabout in the counterclockwise direction and turn right. roundaboutRightCounterclockwise, - /// Enter a roundabout in the clockwise direction and turn sharply to the left. roundaboutSharpLeftClockwise, - /// Enter a roundabout in the counterclockwise direction and turn sharply to the left. roundaboutSharpLeftCounterclockwise, - /// Enter a roundabout in the clockwise direction and turn sharply to the right. roundaboutSharpRightClockwise, - /// Enter a roundabout in the counterclockwise direction and turn sharply to the right. roundaboutSharpRightCounterclockwise, - /// Enter a roundabout in the clockwise direction and turn slightly left. roundaboutSlightLeftClockwise, - /// Enter a roundabout in the counterclockwise direction and turn slightly to the left. roundaboutSlightLeftCounterclockwise, - /// Enter a roundabout in the clockwise direction and turn slightly to the right. roundaboutSlightRightClockwise, - /// Enter a roundabout in the counterclockwise direction and turn slightly to the right. roundaboutSlightRightCounterclockwise, - /// Enter a roundabout in the clockwise direction and continue straight. roundaboutStraightClockwise, - /// Enter a roundabout in the counterclockwise direction and continue straight. roundaboutStraightCounterclockwise, - /// Enter a roundabout in the clockwise direction and turn clockwise onto the opposite side of the street. roundaboutUTurnClockwise, - /// Enter a roundabout in the counterclockwise direction and turn counterclockwise onto the opposite side of the street. roundaboutUTurnCounterclockwise, - /// Continue straight. straight, - /// Keep left as the road diverges. turnKeepLeft, - /// Keep right as the road diverges. turnKeepRight, - /// Regular left turn at an intersection. turnLeft, - /// Regular right turn at an intersection. turnRight, - /// Sharp left turn at an intersection. turnSharpLeft, - /// Sharp right turn at an intersection. turnSharpRight, - /// Slight left turn at an intersection. turnSlightLeft, - /// Slight right turn at an intersection. turnSlightRight, - /// Clockwise turn onto the opposite side of the street. turnUTurnClockwise, - /// Counterclockwise turn onto the opposite side of the street. turnUTurnCounterclockwise, - /// Unknown maneuver. unknown, } @@ -384,10 +356,8 @@ enum ManeuverDto { enum DrivingSideDto { /// Drive-on-left side. left, - /// Unspecified side. none, - /// Drive-on-right side. right, } @@ -396,13 +366,10 @@ enum DrivingSideDto { enum NavStateDto { /// Actively navigating. enroute, - /// Actively navigating but searching for a new route. rerouting, - /// Navigation has ended. stopped, - /// Error or unspecified state. unknown, } @@ -411,31 +378,22 @@ enum NavStateDto { enum LaneShapeDto { /// Normal left turn (45-135 degrees). normalLeft, - /// Normal right turn (45-135 degrees). normalRight, - /// Sharp left turn (135-175 degrees). sharpLeft, - /// Sharp right turn (135-175 degrees). sharpRight, - /// Slight left turn (10-45 degrees). slightLeft, - /// Slight right turn (10-45 degrees). slightRight, - /// No turn. straight, - /// Shape is unknown. unknown, - /// A left turn onto the opposite side of the same street (175-180 degrees). uTurnLeft, - /// A right turn onto the opposite side of the same street (175-180 degrees). uTurnRight, } @@ -445,7 +403,6 @@ enum TaskRemovedBehaviorDto { /// The default state, indicating that navigation guidance, /// location updates, and notification should persist after user removes the application task. continueService, - /// Indicates that navigation guidance, location updates, and notification should shut down immediately when the user removes the application task. quitService, } @@ -491,8 +448,7 @@ class AutoMapOptionsDto { } Object encode() { - return _toList(); - } + return _toList(); } static AutoMapOptionsDto decode(Object result) { result as List; @@ -502,8 +458,7 @@ class AutoMapOptionsDto { mapType: result[2] as MapTypeDto?, mapColorScheme: result[3] as MapColorSchemeDto?, forceNightMode: result[4] as NavigationForceNightModeDto?, - navigationUIEnabledPreference: - result[5] as NavigationUIEnabledPreferenceDto?, + navigationUIEnabledPreference: result[5] as NavigationUIEnabledPreferenceDto?, ); } @@ -521,7 +476,8 @@ class AutoMapOptionsDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()); + int get hashCode => Object.hashAll(_toList()) +; } /// Object containing map options used to initialize Google Map view. @@ -617,8 +573,7 @@ class MapOptionsDto { } Object encode() { - return _toList(); - } + return _toList(); } static MapOptionsDto decode(Object result) { result as List; @@ -656,7 +611,8 @@ class MapOptionsDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()); + int get hashCode => Object.hashAll(_toList()) +; } /// Object containing navigation options used to initialize Google Navigation view. @@ -673,18 +629,19 @@ class NavigationViewOptionsDto { NavigationForceNightModeDto forceNightMode; List _toList() { - return [navigationUIEnabledPreference, forceNightMode]; + return [ + navigationUIEnabledPreference, + forceNightMode, + ]; } Object encode() { - return _toList(); - } + return _toList(); } static NavigationViewOptionsDto decode(Object result) { result as List; return NavigationViewOptionsDto( - navigationUIEnabledPreference: - result[0]! as NavigationUIEnabledPreferenceDto, + navigationUIEnabledPreference: result[0]! as NavigationUIEnabledPreferenceDto, forceNightMode: result[1]! as NavigationForceNightModeDto, ); } @@ -692,8 +649,7 @@ class NavigationViewOptionsDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes bool operator ==(Object other) { - if (other is! NavigationViewOptionsDto || - other.runtimeType != runtimeType) { + if (other is! NavigationViewOptionsDto || other.runtimeType != runtimeType) { return false; } if (identical(this, other)) { @@ -704,7 +660,8 @@ class NavigationViewOptionsDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()); + int get hashCode => Object.hashAll(_toList()) +; } /// A message for creating a new navigation view. @@ -725,12 +682,15 @@ class ViewCreationOptionsDto { NavigationViewOptionsDto? navigationViewOptions; List _toList() { - return [mapViewType, mapOptions, navigationViewOptions]; + return [ + mapViewType, + mapOptions, + navigationViewOptions, + ]; } Object encode() { - return _toList(); - } + return _toList(); } static ViewCreationOptionsDto decode(Object result) { result as List; @@ -755,7 +715,8 @@ class ViewCreationOptionsDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()); + int get hashCode => Object.hashAll(_toList()) +; } class CameraPositionDto { @@ -775,12 +736,16 @@ class CameraPositionDto { double zoom; List _toList() { - return [bearing, target, tilt, zoom]; + return [ + bearing, + target, + tilt, + zoom, + ]; } Object encode() { - return _toList(); - } + return _toList(); } static CameraPositionDto decode(Object result) { result as List; @@ -806,11 +771,15 @@ class CameraPositionDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()); + int get hashCode => Object.hashAll(_toList()) +; } class MarkerDto { - MarkerDto({required this.markerId, required this.options}); + MarkerDto({ + required this.markerId, + required this.options, + }); /// Identifies marker String markerId; @@ -819,12 +788,14 @@ class MarkerDto { MarkerOptionsDto options; List _toList() { - return [markerId, options]; + return [ + markerId, + options, + ]; } Object encode() { - return _toList(); - } + return _toList(); } static MarkerDto decode(Object result) { result as List; @@ -848,7 +819,8 @@ class MarkerDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()); + int get hashCode => Object.hashAll(_toList()) +; } class MarkerOptionsDto { @@ -905,8 +877,7 @@ class MarkerOptionsDto { } Object encode() { - return _toList(); - } + return _toList(); } static MarkerOptionsDto decode(Object result) { result as List; @@ -939,7 +910,8 @@ class MarkerOptionsDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()); + int get hashCode => Object.hashAll(_toList()) +; } class ImageDescriptorDto { @@ -962,12 +934,17 @@ class ImageDescriptorDto { RegisteredImageTypeDto type; List _toList() { - return [registeredImageId, imagePixelRatio, width, height, type]; + return [ + registeredImageId, + imagePixelRatio, + width, + height, + type, + ]; } Object encode() { - return _toList(); - } + return _toList(); } static ImageDescriptorDto decode(Object result) { result as List; @@ -994,11 +971,16 @@ class ImageDescriptorDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()); + int get hashCode => Object.hashAll(_toList()) +; } class InfoWindowDto { - InfoWindowDto({this.title, this.snippet, required this.anchor}); + InfoWindowDto({ + this.title, + this.snippet, + required this.anchor, + }); String? title; @@ -1007,12 +989,15 @@ class InfoWindowDto { MarkerAnchorDto anchor; List _toList() { - return [title, snippet, anchor]; + return [ + title, + snippet, + anchor, + ]; } Object encode() { - return _toList(); - } + return _toList(); } static InfoWindowDto decode(Object result) { result as List; @@ -1037,27 +1022,36 @@ class InfoWindowDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()); + int get hashCode => Object.hashAll(_toList()) +; } class MarkerAnchorDto { - MarkerAnchorDto({required this.u, required this.v}); + MarkerAnchorDto({ + required this.u, + required this.v, + }); double u; double v; List _toList() { - return [u, v]; + return [ + u, + v, + ]; } Object encode() { - return _toList(); - } + return _toList(); } static MarkerAnchorDto decode(Object result) { result as List; - return MarkerAnchorDto(u: result[0]! as double, v: result[1]! as double); + return MarkerAnchorDto( + u: result[0]! as double, + v: result[1]! as double, + ); } @override @@ -1074,7 +1068,8 @@ class MarkerAnchorDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()); + int get hashCode => Object.hashAll(_toList()) +; } /// Represents a point of interest (POI) on the map. @@ -1097,12 +1092,15 @@ class PointOfInterestDto { LatLngDto latLng; List _toList() { - return [placeID, name, latLng]; + return [ + placeID, + name, + latLng, + ]; } Object encode() { - return _toList(); - } + return _toList(); } static PointOfInterestDto decode(Object result) { result as List; @@ -1127,12 +1125,16 @@ class PointOfInterestDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()); + int get hashCode => Object.hashAll(_toList()) +; } /// Represents one indoor level of a focused indoor building. class IndoorLevelDto { - IndoorLevelDto({this.name, this.shortName}); + IndoorLevelDto({ + this.name, + this.shortName, + }); /// Full display name of the level. String? name; @@ -1141,12 +1143,14 @@ class IndoorLevelDto { String? shortName; List _toList() { - return [name, shortName]; + return [ + name, + shortName, + ]; } Object encode() { - return _toList(); - } + return _toList(); } static IndoorLevelDto decode(Object result) { result as List; @@ -1170,7 +1174,8 @@ class IndoorLevelDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()); + int get hashCode => Object.hashAll(_toList()) +; } /// Represents focused indoor building metadata. @@ -1204,8 +1209,7 @@ class IndoorBuildingDto { } Object encode() { - return _toList(); - } + return _toList(); } static IndoorBuildingDto decode(Object result) { result as List; @@ -1231,23 +1235,29 @@ class IndoorBuildingDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()); + int get hashCode => Object.hashAll(_toList()) +; } class PolygonDto { - PolygonDto({required this.polygonId, required this.options}); + PolygonDto({ + required this.polygonId, + required this.options, + }); String polygonId; PolygonOptionsDto options; List _toList() { - return [polygonId, options]; + return [ + polygonId, + options, + ]; } Object encode() { - return _toList(); - } + return _toList(); } static PolygonDto decode(Object result) { result as List; @@ -1271,7 +1281,8 @@ class PolygonDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()); + int get hashCode => Object.hashAll(_toList()) +; } class PolygonOptionsDto { @@ -1320,8 +1331,7 @@ class PolygonOptionsDto { } Object encode() { - return _toList(); - } + return _toList(); } static PolygonOptionsDto decode(Object result) { result as List; @@ -1352,21 +1362,25 @@ class PolygonOptionsDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()); + int get hashCode => Object.hashAll(_toList()) +; } class PolygonHoleDto { - PolygonHoleDto({required this.points}); + PolygonHoleDto({ + required this.points, + }); List points; List _toList() { - return [points]; + return [ + points, + ]; } Object encode() { - return _toList(); - } + return _toList(); } static PolygonHoleDto decode(Object result) { result as List; @@ -1389,11 +1403,16 @@ class PolygonHoleDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()); + int get hashCode => Object.hashAll(_toList()) +; } class StyleSpanStrokeStyleDto { - StyleSpanStrokeStyleDto({this.solidColor, this.fromColor, this.toColor}); + StyleSpanStrokeStyleDto({ + this.solidColor, + this.fromColor, + this.toColor, + }); int? solidColor; @@ -1402,12 +1421,15 @@ class StyleSpanStrokeStyleDto { int? toColor; List _toList() { - return [solidColor, fromColor, toColor]; + return [ + solidColor, + fromColor, + toColor, + ]; } Object encode() { - return _toList(); - } + return _toList(); } static StyleSpanStrokeStyleDto decode(Object result) { result as List; @@ -1432,23 +1454,29 @@ class StyleSpanStrokeStyleDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()); + int get hashCode => Object.hashAll(_toList()) +; } class StyleSpanDto { - StyleSpanDto({required this.length, required this.style}); + StyleSpanDto({ + required this.length, + required this.style, + }); double length; StyleSpanStrokeStyleDto style; List _toList() { - return [length, style]; + return [ + length, + style, + ]; } Object encode() { - return _toList(); - } + return _toList(); } static StyleSpanDto decode(Object result) { result as List; @@ -1472,23 +1500,29 @@ class StyleSpanDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()); + int get hashCode => Object.hashAll(_toList()) +; } class PolylineDto { - PolylineDto({required this.polylineId, required this.options}); + PolylineDto({ + required this.polylineId, + required this.options, + }); String polylineId; PolylineOptionsDto options; List _toList() { - return [polylineId, options]; + return [ + polylineId, + options, + ]; } Object encode() { - return _toList(); - } + return _toList(); } static PolylineDto decode(Object result) { result as List; @@ -1512,23 +1546,29 @@ class PolylineDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()); + int get hashCode => Object.hashAll(_toList()) +; } class PatternItemDto { - PatternItemDto({required this.type, this.length}); + PatternItemDto({ + required this.type, + this.length, + }); PatternTypeDto type; double? length; List _toList() { - return [type, length]; + return [ + type, + length, + ]; } Object encode() { - return _toList(); - } + return _toList(); } static PatternItemDto decode(Object result) { result as List; @@ -1552,7 +1592,8 @@ class PatternItemDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()); + int get hashCode => Object.hashAll(_toList()) +; } class PolylineOptionsDto { @@ -1605,8 +1646,7 @@ class PolylineOptionsDto { } Object encode() { - return _toList(); - } + return _toList(); } static PolylineOptionsDto decode(Object result) { result as List; @@ -1638,11 +1678,15 @@ class PolylineOptionsDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()); + int get hashCode => Object.hashAll(_toList()) +; } class CircleDto { - CircleDto({required this.circleId, required this.options}); + CircleDto({ + required this.circleId, + required this.options, + }); /// Identifies circle. String circleId; @@ -1651,12 +1695,14 @@ class CircleDto { CircleOptionsDto options; List _toList() { - return [circleId, options]; + return [ + circleId, + options, + ]; } Object encode() { - return _toList(); - } + return _toList(); } static CircleDto decode(Object result) { result as List; @@ -1680,7 +1726,8 @@ class CircleDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()); + int get hashCode => Object.hashAll(_toList()) +; } class CircleOptionsDto { @@ -1729,8 +1776,7 @@ class CircleOptionsDto { } Object encode() { - return _toList(); - } + return _toList(); } static CircleOptionsDto decode(Object result) { result as List; @@ -1761,7 +1807,8 @@ class CircleOptionsDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()); + int get hashCode => Object.hashAll(_toList()) +; } class MapPaddingDto { @@ -1781,12 +1828,16 @@ class MapPaddingDto { int right; List _toList() { - return [top, left, bottom, right]; + return [ + top, + left, + bottom, + right, + ]; } Object encode() { - return _toList(); - } + return _toList(); } static MapPaddingDto decode(Object result) { result as List; @@ -1812,23 +1863,89 @@ class MapPaddingDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()); + int get hashCode => Object.hashAll(_toList()) +; +} + +/// Navigation header background colors. +/// +/// All color values are 32-bit ARGB integers (format: 0xAARRGGBB). +/// Any null value resets that specific color to the native SDK default. +class NavigationHeaderStylingOptionsDto { + NavigationHeaderStylingOptionsDto({ + this.primaryDayModeBackgroundColor, + this.secondaryDayModeBackgroundColor, + this.primaryNightModeBackgroundColor, + this.secondaryNightModeBackgroundColor, + }); + + int? primaryDayModeBackgroundColor; + + int? secondaryDayModeBackgroundColor; + + int? primaryNightModeBackgroundColor; + + int? secondaryNightModeBackgroundColor; + + List _toList() { + return [ + primaryDayModeBackgroundColor, + secondaryDayModeBackgroundColor, + primaryNightModeBackgroundColor, + secondaryNightModeBackgroundColor, + ]; + } + + Object encode() { + return _toList(); } + + static NavigationHeaderStylingOptionsDto decode(Object result) { + result as List; + return NavigationHeaderStylingOptionsDto( + primaryDayModeBackgroundColor: result[0] as int?, + secondaryDayModeBackgroundColor: result[1] as int?, + primaryNightModeBackgroundColor: result[2] as int?, + secondaryNightModeBackgroundColor: result[3] as int?, + ); + } + + @override + // ignore: avoid_equals_and_hash_code_on_mutable_classes + bool operator ==(Object other) { + if (other is! NavigationHeaderStylingOptionsDto || other.runtimeType != runtimeType) { + return false; + } + if (identical(this, other)) { + return true; + } + return _deepEquals(encode(), other.encode()); + } + + @override + // ignore: avoid_equals_and_hash_code_on_mutable_classes + int get hashCode => Object.hashAll(_toList()) +; } class RouteTokenOptionsDto { - RouteTokenOptionsDto({required this.routeToken, this.travelMode}); + RouteTokenOptionsDto({ + required this.routeToken, + this.travelMode, + }); String routeToken; TravelModeDto? travelMode; List _toList() { - return [routeToken, travelMode]; + return [ + routeToken, + travelMode, + ]; } Object encode() { - return _toList(); - } + return _toList(); } static RouteTokenOptionsDto decode(Object result) { result as List; @@ -1852,7 +1969,8 @@ class RouteTokenOptionsDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()); + int get hashCode => Object.hashAll(_toList()) +; } class DestinationsDto { @@ -1881,8 +1999,7 @@ class DestinationsDto { } Object encode() { - return _toList(); - } + return _toList(); } static DestinationsDto decode(Object result) { result as List; @@ -1908,7 +2025,8 @@ class DestinationsDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()); + int get hashCode => Object.hashAll(_toList()) +; } class RoutingOptionsDto { @@ -1953,8 +2071,7 @@ class RoutingOptionsDto { } Object encode() { - return _toList(); - } + return _toList(); } static RoutingOptionsDto decode(Object result) { result as List; @@ -1984,7 +2101,8 @@ class RoutingOptionsDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()); + int get hashCode => Object.hashAll(_toList()) +; } class NavigationDisplayOptionsDto { @@ -2003,12 +2121,15 @@ class NavigationDisplayOptionsDto { bool? showTrafficLights; List _toList() { - return [showDestinationMarkers, showStopSigns, showTrafficLights]; + return [ + showDestinationMarkers, + showStopSigns, + showTrafficLights, + ]; } Object encode() { - return _toList(); - } + return _toList(); } static NavigationDisplayOptionsDto decode(Object result) { result as List; @@ -2022,8 +2143,7 @@ class NavigationDisplayOptionsDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes bool operator ==(Object other) { - if (other is! NavigationDisplayOptionsDto || - other.runtimeType != runtimeType) { + if (other is! NavigationDisplayOptionsDto || other.runtimeType != runtimeType) { return false; } if (identical(this, other)) { @@ -2034,7 +2154,8 @@ class NavigationDisplayOptionsDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()); + int get hashCode => Object.hashAll(_toList()) +; } class NavigationWaypointDto { @@ -2067,8 +2188,7 @@ class NavigationWaypointDto { } Object encode() { - return _toList(); - } + return _toList(); } static NavigationWaypointDto decode(Object result) { result as List; @@ -2095,23 +2215,29 @@ class NavigationWaypointDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()); + int get hashCode => Object.hashAll(_toList()) +; } class ContinueToNextDestinationResponseDto { - ContinueToNextDestinationResponseDto({this.waypoint, this.routeStatus}); + ContinueToNextDestinationResponseDto({ + this.waypoint, + this.routeStatus, + }); NavigationWaypointDto? waypoint; RouteStatusDto? routeStatus; List _toList() { - return [waypoint, routeStatus]; + return [ + waypoint, + routeStatus, + ]; } Object encode() { - return _toList(); - } + return _toList(); } static ContinueToNextDestinationResponseDto decode(Object result) { result as List; @@ -2124,8 +2250,7 @@ class ContinueToNextDestinationResponseDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes bool operator ==(Object other) { - if (other is! ContinueToNextDestinationResponseDto || - other.runtimeType != runtimeType) { + if (other is! ContinueToNextDestinationResponseDto || other.runtimeType != runtimeType) { return false; } if (identical(this, other)) { @@ -2136,7 +2261,8 @@ class ContinueToNextDestinationResponseDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()); + int get hashCode => Object.hashAll(_toList()) +; } class NavigationTimeAndDistanceDto { @@ -2153,12 +2279,15 @@ class NavigationTimeAndDistanceDto { TrafficDelaySeverityDto delaySeverity; List _toList() { - return [time, distance, delaySeverity]; + return [ + time, + distance, + delaySeverity, + ]; } Object encode() { - return _toList(); - } + return _toList(); } static NavigationTimeAndDistanceDto decode(Object result) { result as List; @@ -2172,8 +2301,7 @@ class NavigationTimeAndDistanceDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes bool operator ==(Object other) { - if (other is! NavigationTimeAndDistanceDto || - other.runtimeType != runtimeType) { + if (other is! NavigationTimeAndDistanceDto || other.runtimeType != runtimeType) { return false; } if (identical(this, other)) { @@ -2184,7 +2312,8 @@ class NavigationTimeAndDistanceDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()); + int get hashCode => Object.hashAll(_toList()) +; } class NavigationAudioGuidanceSettingsDto { @@ -2201,12 +2330,15 @@ class NavigationAudioGuidanceSettingsDto { AudioGuidanceTypeDto? guidanceType; List _toList() { - return [isBluetoothAudioEnabled, isVibrationEnabled, guidanceType]; + return [ + isBluetoothAudioEnabled, + isVibrationEnabled, + guidanceType, + ]; } Object encode() { - return _toList(); - } + return _toList(); } static NavigationAudioGuidanceSettingsDto decode(Object result) { result as List; @@ -2220,8 +2352,7 @@ class NavigationAudioGuidanceSettingsDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes bool operator ==(Object other) { - if (other is! NavigationAudioGuidanceSettingsDto || - other.runtimeType != runtimeType) { + if (other is! NavigationAudioGuidanceSettingsDto || other.runtimeType != runtimeType) { return false; } if (identical(this, other)) { @@ -2232,25 +2363,31 @@ class NavigationAudioGuidanceSettingsDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()); + int get hashCode => Object.hashAll(_toList()) +; } class SimulationOptionsDto { - SimulationOptionsDto({required this.speedMultiplier}); + SimulationOptionsDto({ + required this.speedMultiplier, + }); double speedMultiplier; List _toList() { - return [speedMultiplier]; + return [ + speedMultiplier, + ]; } Object encode() { - return _toList(); - } + return _toList(); } static SimulationOptionsDto decode(Object result) { result as List; - return SimulationOptionsDto(speedMultiplier: result[0]! as double); + return SimulationOptionsDto( + speedMultiplier: result[0]! as double, + ); } @override @@ -2267,23 +2404,29 @@ class SimulationOptionsDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()); + int get hashCode => Object.hashAll(_toList()) +; } class LatLngDto { - LatLngDto({required this.latitude, required this.longitude}); + LatLngDto({ + required this.latitude, + required this.longitude, + }); double latitude; double longitude; List _toList() { - return [latitude, longitude]; + return [ + latitude, + longitude, + ]; } Object encode() { - return _toList(); - } + return _toList(); } static LatLngDto decode(Object result) { result as List; @@ -2307,23 +2450,29 @@ class LatLngDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()); + int get hashCode => Object.hashAll(_toList()) +; } class LatLngBoundsDto { - LatLngBoundsDto({required this.southwest, required this.northeast}); + LatLngBoundsDto({ + required this.southwest, + required this.northeast, + }); LatLngDto southwest; LatLngDto northeast; List _toList() { - return [southwest, northeast]; + return [ + southwest, + northeast, + ]; } Object encode() { - return _toList(); - } + return _toList(); } static LatLngBoundsDto decode(Object result) { result as List; @@ -2347,7 +2496,8 @@ class LatLngBoundsDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()); + int get hashCode => Object.hashAll(_toList()) +; } class SpeedingUpdatedEventDto { @@ -2361,12 +2511,14 @@ class SpeedingUpdatedEventDto { SpeedAlertSeverityDto severity; List _toList() { - return [percentageAboveLimit, severity]; + return [ + percentageAboveLimit, + severity, + ]; } Object encode() { - return _toList(); - } + return _toList(); } static SpeedingUpdatedEventDto decode(Object result) { result as List; @@ -2390,7 +2542,8 @@ class SpeedingUpdatedEventDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()); + int get hashCode => Object.hashAll(_toList()) +; } class GpsAvailabilityChangeEventDto { @@ -2404,12 +2557,14 @@ class GpsAvailabilityChangeEventDto { bool isGpsValidForNavigation; List _toList() { - return [isGpsLost, isGpsValidForNavigation]; + return [ + isGpsLost, + isGpsValidForNavigation, + ]; } Object encode() { - return _toList(); - } + return _toList(); } static GpsAvailabilityChangeEventDto decode(Object result) { result as List; @@ -2422,8 +2577,7 @@ class GpsAvailabilityChangeEventDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes bool operator ==(Object other) { - if (other is! GpsAvailabilityChangeEventDto || - other.runtimeType != runtimeType) { + if (other is! GpsAvailabilityChangeEventDto || other.runtimeType != runtimeType) { return false; } if (identical(this, other)) { @@ -2434,7 +2588,8 @@ class GpsAvailabilityChangeEventDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()); + int get hashCode => Object.hashAll(_toList()) +; } class SpeedAlertOptionsThresholdPercentageDto { @@ -2448,12 +2603,14 @@ class SpeedAlertOptionsThresholdPercentageDto { SpeedAlertSeverityDto severity; List _toList() { - return [percentage, severity]; + return [ + percentage, + severity, + ]; } Object encode() { - return _toList(); - } + return _toList(); } static SpeedAlertOptionsThresholdPercentageDto decode(Object result) { result as List; @@ -2466,8 +2623,7 @@ class SpeedAlertOptionsThresholdPercentageDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes bool operator ==(Object other) { - if (other is! SpeedAlertOptionsThresholdPercentageDto || - other.runtimeType != runtimeType) { + if (other is! SpeedAlertOptionsThresholdPercentageDto || other.runtimeType != runtimeType) { return false; } if (identical(this, other)) { @@ -2478,7 +2634,8 @@ class SpeedAlertOptionsThresholdPercentageDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()); + int get hashCode => Object.hashAll(_toList()) +; } class SpeedAlertOptionsDto { @@ -2503,8 +2660,7 @@ class SpeedAlertOptionsDto { } Object encode() { - return _toList(); - } + return _toList(); } static SpeedAlertOptionsDto decode(Object result) { result as List; @@ -2529,7 +2685,8 @@ class SpeedAlertOptionsDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()); + int get hashCode => Object.hashAll(_toList()) +; } class RouteSegmentTrafficDataRoadStretchRenderingDataDto { @@ -2546,20 +2703,20 @@ class RouteSegmentTrafficDataRoadStretchRenderingDataDto { int offsetMeters; List _toList() { - return [style, lengthMeters, offsetMeters]; + return [ + style, + lengthMeters, + offsetMeters, + ]; } Object encode() { - return _toList(); - } + return _toList(); } - static RouteSegmentTrafficDataRoadStretchRenderingDataDto decode( - Object result, - ) { + static RouteSegmentTrafficDataRoadStretchRenderingDataDto decode(Object result) { result as List; return RouteSegmentTrafficDataRoadStretchRenderingDataDto( - style: - result[0]! as RouteSegmentTrafficDataRoadStretchRenderingDataStyleDto, + style: result[0]! as RouteSegmentTrafficDataRoadStretchRenderingDataStyleDto, lengthMeters: result[1]! as int, offsetMeters: result[2]! as int, ); @@ -2568,8 +2725,7 @@ class RouteSegmentTrafficDataRoadStretchRenderingDataDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes bool operator ==(Object other) { - if (other is! RouteSegmentTrafficDataRoadStretchRenderingDataDto || - other.runtimeType != runtimeType) { + if (other is! RouteSegmentTrafficDataRoadStretchRenderingDataDto || other.runtimeType != runtimeType) { return false; } if (identical(this, other)) { @@ -2580,7 +2736,8 @@ class RouteSegmentTrafficDataRoadStretchRenderingDataDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()); + int get hashCode => Object.hashAll(_toList()) +; } class RouteSegmentTrafficDataDto { @@ -2591,31 +2748,30 @@ class RouteSegmentTrafficDataDto { RouteSegmentTrafficDataStatusDto status; - List - roadStretchRenderingDataList; + List roadStretchRenderingDataList; List _toList() { - return [status, roadStretchRenderingDataList]; + return [ + status, + roadStretchRenderingDataList, + ]; } Object encode() { - return _toList(); - } + return _toList(); } static RouteSegmentTrafficDataDto decode(Object result) { result as List; return RouteSegmentTrafficDataDto( status: result[0]! as RouteSegmentTrafficDataStatusDto, - roadStretchRenderingDataList: (result[1] as List?)! - .cast(), + roadStretchRenderingDataList: (result[1] as List?)!.cast(), ); } @override // ignore: avoid_equals_and_hash_code_on_mutable_classes bool operator ==(Object other) { - if (other is! RouteSegmentTrafficDataDto || - other.runtimeType != runtimeType) { + if (other is! RouteSegmentTrafficDataDto || other.runtimeType != runtimeType) { return false; } if (identical(this, other)) { @@ -2626,7 +2782,8 @@ class RouteSegmentTrafficDataDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()); + int get hashCode => Object.hashAll(_toList()) +; } class RouteSegmentDto { @@ -2655,8 +2812,7 @@ class RouteSegmentDto { } Object encode() { - return _toList(); - } + return _toList(); } static RouteSegmentDto decode(Object result) { result as List; @@ -2682,12 +2838,16 @@ class RouteSegmentDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()); + int get hashCode => Object.hashAll(_toList()) +; } /// One of the possible directions from a lane at the end of a route step, and whether it is on the recommended route. class LaneDirectionDto { - LaneDirectionDto({required this.laneShape, required this.isRecommended}); + LaneDirectionDto({ + required this.laneShape, + required this.isRecommended, + }); /// Shape for this lane direction. LaneShapeDto laneShape; @@ -2696,12 +2856,14 @@ class LaneDirectionDto { bool isRecommended; List _toList() { - return [laneShape, isRecommended]; + return [ + laneShape, + isRecommended, + ]; } Object encode() { - return _toList(); - } + return _toList(); } static LaneDirectionDto decode(Object result) { result as List; @@ -2725,23 +2887,27 @@ class LaneDirectionDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()); + int get hashCode => Object.hashAll(_toList()) +; } /// Single lane on the road at the end of a route step. class LaneDto { - LaneDto({required this.laneDirections}); + LaneDto({ + required this.laneDirections, + }); /// List of possible directions a driver can follow when using this lane at the end of the respective route step List laneDirections; List _toList() { - return [laneDirections]; + return [ + laneDirections, + ]; } Object encode() { - return _toList(); - } + return _toList(); } static LaneDto decode(Object result) { result as List; @@ -2764,7 +2930,8 @@ class LaneDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()); + int get hashCode => Object.hashAll(_toList()) +; } /// Information about a single step along a navigation route. @@ -2846,8 +3013,7 @@ class StepInfoDto { } Object encode() { - return _toList(); - } + return _toList(); } static StepInfoDto decode(Object result) { result as List; @@ -2882,7 +3048,8 @@ class StepInfoDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()); + int get hashCode => Object.hashAll(_toList()) +; } /// Contains information about the state of navigation, the current nav step if @@ -2955,8 +3122,7 @@ class NavInfoDto { } Object encode() { - return _toList(); - } + return _toList(); } static NavInfoDto decode(Object result) { result as List; @@ -2988,7 +3154,8 @@ class NavInfoDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()); + int get hashCode => Object.hashAll(_toList()) +; } /// UI customization parameters for the Terms and Conditions dialog. @@ -3030,8 +3197,7 @@ class TermsAndConditionsUIParamsDto { } Object encode() { - return _toList(); - } + return _toList(); } static TermsAndConditionsUIParamsDto decode(Object result) { result as List; @@ -3047,8 +3213,7 @@ class TermsAndConditionsUIParamsDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes bool operator ==(Object other) { - if (other is! TermsAndConditionsUIParamsDto || - other.runtimeType != runtimeType) { + if (other is! TermsAndConditionsUIParamsDto || other.runtimeType != runtimeType) { return false; } if (identical(this, other)) { @@ -3059,7 +3224,8 @@ class TermsAndConditionsUIParamsDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()); + int get hashCode => Object.hashAll(_toList()) +; } /// Options for step image generation in turn-by-turn navigation events. @@ -3078,12 +3244,14 @@ class StepImageGenerationOptionsDto { bool? generateLaneImages; List _toList() { - return [generateManeuverImages, generateLaneImages]; + return [ + generateManeuverImages, + generateLaneImages, + ]; } Object encode() { - return _toList(); - } + return _toList(); } static StepImageGenerationOptionsDto decode(Object result) { result as List; @@ -3096,8 +3264,7 @@ class StepImageGenerationOptionsDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes bool operator ==(Object other) { - if (other is! StepImageGenerationOptionsDto || - other.runtimeType != runtimeType) { + if (other is! StepImageGenerationOptionsDto || other.runtimeType != runtimeType) { return false; } if (identical(this, other)) { @@ -3108,9 +3275,11 @@ class StepImageGenerationOptionsDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()); + int get hashCode => Object.hashAll(_toList()) +; } + class _PigeonCodec extends StandardMessageCodec { const _PigeonCodec(); @override @@ -3118,229 +3287,231 @@ class _PigeonCodec extends StandardMessageCodec { if (value is int) { buffer.putUint8(4); buffer.putInt64(value); - } else if (value is MapViewTypeDto) { + } else if (value is MapViewTypeDto) { buffer.putUint8(129); writeValue(buffer, value.index); - } else if (value is NavigationUIEnabledPreferenceDto) { + } else if (value is NavigationUIEnabledPreferenceDto) { buffer.putUint8(130); writeValue(buffer, value.index); - } else if (value is MapTypeDto) { + } else if (value is MapTypeDto) { buffer.putUint8(131); writeValue(buffer, value.index); - } else if (value is MapColorSchemeDto) { + } else if (value is MapColorSchemeDto) { buffer.putUint8(132); writeValue(buffer, value.index); - } else if (value is NavigationForceNightModeDto) { + } else if (value is NavigationForceNightModeDto) { buffer.putUint8(133); writeValue(buffer, value.index); - } else if (value is CameraPerspectiveDto) { + } else if (value is CameraPerspectiveDto) { buffer.putUint8(134); writeValue(buffer, value.index); - } else if (value is RegisteredImageTypeDto) { + } else if (value is RegisteredImageTypeDto) { buffer.putUint8(135); writeValue(buffer, value.index); - } else if (value is MarkerEventTypeDto) { + } else if (value is MarkerEventTypeDto) { buffer.putUint8(136); writeValue(buffer, value.index); - } else if (value is MarkerDragEventTypeDto) { + } else if (value is MarkerDragEventTypeDto) { buffer.putUint8(137); writeValue(buffer, value.index); - } else if (value is StrokeJointTypeDto) { + } else if (value is StrokeJointTypeDto) { buffer.putUint8(138); writeValue(buffer, value.index); - } else if (value is PatternTypeDto) { + } else if (value is PatternTypeDto) { buffer.putUint8(139); writeValue(buffer, value.index); - } else if (value is CameraEventTypeDto) { + } else if (value is CameraEventTypeDto) { buffer.putUint8(140); writeValue(buffer, value.index); - } else if (value is AlternateRoutesStrategyDto) { + } else if (value is AlternateRoutesStrategyDto) { buffer.putUint8(141); writeValue(buffer, value.index); - } else if (value is RoutingStrategyDto) { + } else if (value is RoutingStrategyDto) { buffer.putUint8(142); writeValue(buffer, value.index); - } else if (value is TravelModeDto) { + } else if (value is TravelModeDto) { buffer.putUint8(143); writeValue(buffer, value.index); - } else if (value is RouteStatusDto) { + } else if (value is RouteStatusDto) { buffer.putUint8(144); writeValue(buffer, value.index); - } else if (value is TrafficDelaySeverityDto) { + } else if (value is TrafficDelaySeverityDto) { buffer.putUint8(145); writeValue(buffer, value.index); - } else if (value is AudioGuidanceTypeDto) { + } else if (value is AudioGuidanceTypeDto) { buffer.putUint8(146); writeValue(buffer, value.index); - } else if (value is SpeedAlertSeverityDto) { + } else if (value is SpeedAlertSeverityDto) { buffer.putUint8(147); writeValue(buffer, value.index); - } else if (value is RouteSegmentTrafficDataStatusDto) { + } else if (value is RouteSegmentTrafficDataStatusDto) { buffer.putUint8(148); writeValue(buffer, value.index); - } else if (value - is RouteSegmentTrafficDataRoadStretchRenderingDataStyleDto) { + } else if (value is RouteSegmentTrafficDataRoadStretchRenderingDataStyleDto) { buffer.putUint8(149); writeValue(buffer, value.index); - } else if (value is ManeuverDto) { + } else if (value is ManeuverDto) { buffer.putUint8(150); writeValue(buffer, value.index); - } else if (value is DrivingSideDto) { + } else if (value is DrivingSideDto) { buffer.putUint8(151); writeValue(buffer, value.index); - } else if (value is NavStateDto) { + } else if (value is NavStateDto) { buffer.putUint8(152); writeValue(buffer, value.index); - } else if (value is LaneShapeDto) { + } else if (value is LaneShapeDto) { buffer.putUint8(153); writeValue(buffer, value.index); - } else if (value is TaskRemovedBehaviorDto) { + } else if (value is TaskRemovedBehaviorDto) { buffer.putUint8(154); writeValue(buffer, value.index); - } else if (value is AutoMapOptionsDto) { + } else if (value is AutoMapOptionsDto) { buffer.putUint8(155); writeValue(buffer, value.encode()); - } else if (value is MapOptionsDto) { + } else if (value is MapOptionsDto) { buffer.putUint8(156); writeValue(buffer, value.encode()); - } else if (value is NavigationViewOptionsDto) { + } else if (value is NavigationViewOptionsDto) { buffer.putUint8(157); writeValue(buffer, value.encode()); - } else if (value is ViewCreationOptionsDto) { + } else if (value is ViewCreationOptionsDto) { buffer.putUint8(158); writeValue(buffer, value.encode()); - } else if (value is CameraPositionDto) { + } else if (value is CameraPositionDto) { buffer.putUint8(159); writeValue(buffer, value.encode()); - } else if (value is MarkerDto) { + } else if (value is MarkerDto) { buffer.putUint8(160); writeValue(buffer, value.encode()); - } else if (value is MarkerOptionsDto) { + } else if (value is MarkerOptionsDto) { buffer.putUint8(161); writeValue(buffer, value.encode()); - } else if (value is ImageDescriptorDto) { + } else if (value is ImageDescriptorDto) { buffer.putUint8(162); writeValue(buffer, value.encode()); - } else if (value is InfoWindowDto) { + } else if (value is InfoWindowDto) { buffer.putUint8(163); writeValue(buffer, value.encode()); - } else if (value is MarkerAnchorDto) { + } else if (value is MarkerAnchorDto) { buffer.putUint8(164); writeValue(buffer, value.encode()); - } else if (value is PointOfInterestDto) { + } else if (value is PointOfInterestDto) { buffer.putUint8(165); writeValue(buffer, value.encode()); - } else if (value is IndoorLevelDto) { + } else if (value is IndoorLevelDto) { buffer.putUint8(166); writeValue(buffer, value.encode()); - } else if (value is IndoorBuildingDto) { + } else if (value is IndoorBuildingDto) { buffer.putUint8(167); writeValue(buffer, value.encode()); - } else if (value is PolygonDto) { + } else if (value is PolygonDto) { buffer.putUint8(168); writeValue(buffer, value.encode()); - } else if (value is PolygonOptionsDto) { + } else if (value is PolygonOptionsDto) { buffer.putUint8(169); writeValue(buffer, value.encode()); - } else if (value is PolygonHoleDto) { + } else if (value is PolygonHoleDto) { buffer.putUint8(170); writeValue(buffer, value.encode()); - } else if (value is StyleSpanStrokeStyleDto) { + } else if (value is StyleSpanStrokeStyleDto) { buffer.putUint8(171); writeValue(buffer, value.encode()); - } else if (value is StyleSpanDto) { + } else if (value is StyleSpanDto) { buffer.putUint8(172); writeValue(buffer, value.encode()); - } else if (value is PolylineDto) { + } else if (value is PolylineDto) { buffer.putUint8(173); writeValue(buffer, value.encode()); - } else if (value is PatternItemDto) { + } else if (value is PatternItemDto) { buffer.putUint8(174); writeValue(buffer, value.encode()); - } else if (value is PolylineOptionsDto) { + } else if (value is PolylineOptionsDto) { buffer.putUint8(175); writeValue(buffer, value.encode()); - } else if (value is CircleDto) { + } else if (value is CircleDto) { buffer.putUint8(176); writeValue(buffer, value.encode()); - } else if (value is CircleOptionsDto) { + } else if (value is CircleOptionsDto) { buffer.putUint8(177); writeValue(buffer, value.encode()); - } else if (value is MapPaddingDto) { + } else if (value is MapPaddingDto) { buffer.putUint8(178); writeValue(buffer, value.encode()); - } else if (value is RouteTokenOptionsDto) { + } else if (value is NavigationHeaderStylingOptionsDto) { buffer.putUint8(179); writeValue(buffer, value.encode()); - } else if (value is DestinationsDto) { + } else if (value is RouteTokenOptionsDto) { buffer.putUint8(180); writeValue(buffer, value.encode()); - } else if (value is RoutingOptionsDto) { + } else if (value is DestinationsDto) { buffer.putUint8(181); writeValue(buffer, value.encode()); - } else if (value is NavigationDisplayOptionsDto) { + } else if (value is RoutingOptionsDto) { buffer.putUint8(182); writeValue(buffer, value.encode()); - } else if (value is NavigationWaypointDto) { + } else if (value is NavigationDisplayOptionsDto) { buffer.putUint8(183); writeValue(buffer, value.encode()); - } else if (value is ContinueToNextDestinationResponseDto) { + } else if (value is NavigationWaypointDto) { buffer.putUint8(184); writeValue(buffer, value.encode()); - } else if (value is NavigationTimeAndDistanceDto) { + } else if (value is ContinueToNextDestinationResponseDto) { buffer.putUint8(185); writeValue(buffer, value.encode()); - } else if (value is NavigationAudioGuidanceSettingsDto) { + } else if (value is NavigationTimeAndDistanceDto) { buffer.putUint8(186); writeValue(buffer, value.encode()); - } else if (value is SimulationOptionsDto) { + } else if (value is NavigationAudioGuidanceSettingsDto) { buffer.putUint8(187); writeValue(buffer, value.encode()); - } else if (value is LatLngDto) { + } else if (value is SimulationOptionsDto) { buffer.putUint8(188); writeValue(buffer, value.encode()); - } else if (value is LatLngBoundsDto) { + } else if (value is LatLngDto) { buffer.putUint8(189); writeValue(buffer, value.encode()); - } else if (value is SpeedingUpdatedEventDto) { + } else if (value is LatLngBoundsDto) { buffer.putUint8(190); writeValue(buffer, value.encode()); - } else if (value is GpsAvailabilityChangeEventDto) { + } else if (value is SpeedingUpdatedEventDto) { buffer.putUint8(191); writeValue(buffer, value.encode()); - } else if (value is SpeedAlertOptionsThresholdPercentageDto) { + } else if (value is GpsAvailabilityChangeEventDto) { buffer.putUint8(192); writeValue(buffer, value.encode()); - } else if (value is SpeedAlertOptionsDto) { + } else if (value is SpeedAlertOptionsThresholdPercentageDto) { buffer.putUint8(193); writeValue(buffer, value.encode()); - } else if (value is RouteSegmentTrafficDataRoadStretchRenderingDataDto) { + } else if (value is SpeedAlertOptionsDto) { buffer.putUint8(194); writeValue(buffer, value.encode()); - } else if (value is RouteSegmentTrafficDataDto) { + } else if (value is RouteSegmentTrafficDataRoadStretchRenderingDataDto) { buffer.putUint8(195); writeValue(buffer, value.encode()); - } else if (value is RouteSegmentDto) { + } else if (value is RouteSegmentTrafficDataDto) { buffer.putUint8(196); writeValue(buffer, value.encode()); - } else if (value is LaneDirectionDto) { + } else if (value is RouteSegmentDto) { buffer.putUint8(197); writeValue(buffer, value.encode()); - } else if (value is LaneDto) { + } else if (value is LaneDirectionDto) { buffer.putUint8(198); writeValue(buffer, value.encode()); - } else if (value is StepInfoDto) { + } else if (value is LaneDto) { buffer.putUint8(199); writeValue(buffer, value.encode()); - } else if (value is NavInfoDto) { + } else if (value is StepInfoDto) { buffer.putUint8(200); writeValue(buffer, value.encode()); - } else if (value is TermsAndConditionsUIParamsDto) { + } else if (value is NavInfoDto) { buffer.putUint8(201); writeValue(buffer, value.encode()); - } else if (value is StepImageGenerationOptionsDto) { + } else if (value is TermsAndConditionsUIParamsDto) { buffer.putUint8(202); writeValue(buffer, value.encode()); + } else if (value is StepImageGenerationOptionsDto) { + buffer.putUint8(203); + writeValue(buffer, value.encode()); } else { super.writeValue(buffer, value); } @@ -3349,190 +3520,181 @@ class _PigeonCodec extends StandardMessageCodec { @override Object? readValueOfType(int type, ReadBuffer buffer) { switch (type) { - case 129: + case 129: final int? value = readValue(buffer) as int?; return value == null ? null : MapViewTypeDto.values[value]; - case 130: + case 130: final int? value = readValue(buffer) as int?; - return value == null - ? null - : NavigationUIEnabledPreferenceDto.values[value]; - case 131: + return value == null ? null : NavigationUIEnabledPreferenceDto.values[value]; + case 131: final int? value = readValue(buffer) as int?; return value == null ? null : MapTypeDto.values[value]; - case 132: + case 132: final int? value = readValue(buffer) as int?; return value == null ? null : MapColorSchemeDto.values[value]; - case 133: + case 133: final int? value = readValue(buffer) as int?; return value == null ? null : NavigationForceNightModeDto.values[value]; - case 134: + case 134: final int? value = readValue(buffer) as int?; return value == null ? null : CameraPerspectiveDto.values[value]; - case 135: + case 135: final int? value = readValue(buffer) as int?; return value == null ? null : RegisteredImageTypeDto.values[value]; - case 136: + case 136: final int? value = readValue(buffer) as int?; return value == null ? null : MarkerEventTypeDto.values[value]; - case 137: + case 137: final int? value = readValue(buffer) as int?; return value == null ? null : MarkerDragEventTypeDto.values[value]; - case 138: + case 138: final int? value = readValue(buffer) as int?; return value == null ? null : StrokeJointTypeDto.values[value]; - case 139: + case 139: final int? value = readValue(buffer) as int?; return value == null ? null : PatternTypeDto.values[value]; - case 140: + case 140: final int? value = readValue(buffer) as int?; return value == null ? null : CameraEventTypeDto.values[value]; - case 141: + case 141: final int? value = readValue(buffer) as int?; return value == null ? null : AlternateRoutesStrategyDto.values[value]; - case 142: + case 142: final int? value = readValue(buffer) as int?; return value == null ? null : RoutingStrategyDto.values[value]; - case 143: + case 143: final int? value = readValue(buffer) as int?; return value == null ? null : TravelModeDto.values[value]; - case 144: + case 144: final int? value = readValue(buffer) as int?; return value == null ? null : RouteStatusDto.values[value]; - case 145: + case 145: final int? value = readValue(buffer) as int?; return value == null ? null : TrafficDelaySeverityDto.values[value]; - case 146: + case 146: final int? value = readValue(buffer) as int?; return value == null ? null : AudioGuidanceTypeDto.values[value]; - case 147: + case 147: final int? value = readValue(buffer) as int?; return value == null ? null : SpeedAlertSeverityDto.values[value]; - case 148: + case 148: final int? value = readValue(buffer) as int?; - return value == null - ? null - : RouteSegmentTrafficDataStatusDto.values[value]; - case 149: + return value == null ? null : RouteSegmentTrafficDataStatusDto.values[value]; + case 149: final int? value = readValue(buffer) as int?; - return value == null - ? null - : RouteSegmentTrafficDataRoadStretchRenderingDataStyleDto - .values[value]; - case 150: + return value == null ? null : RouteSegmentTrafficDataRoadStretchRenderingDataStyleDto.values[value]; + case 150: final int? value = readValue(buffer) as int?; return value == null ? null : ManeuverDto.values[value]; - case 151: + case 151: final int? value = readValue(buffer) as int?; return value == null ? null : DrivingSideDto.values[value]; - case 152: + case 152: final int? value = readValue(buffer) as int?; return value == null ? null : NavStateDto.values[value]; - case 153: + case 153: final int? value = readValue(buffer) as int?; return value == null ? null : LaneShapeDto.values[value]; - case 154: + case 154: final int? value = readValue(buffer) as int?; return value == null ? null : TaskRemovedBehaviorDto.values[value]; - case 155: + case 155: return AutoMapOptionsDto.decode(readValue(buffer)!); - case 156: + case 156: return MapOptionsDto.decode(readValue(buffer)!); - case 157: + case 157: return NavigationViewOptionsDto.decode(readValue(buffer)!); - case 158: + case 158: return ViewCreationOptionsDto.decode(readValue(buffer)!); - case 159: + case 159: return CameraPositionDto.decode(readValue(buffer)!); - case 160: + case 160: return MarkerDto.decode(readValue(buffer)!); - case 161: + case 161: return MarkerOptionsDto.decode(readValue(buffer)!); - case 162: + case 162: return ImageDescriptorDto.decode(readValue(buffer)!); - case 163: + case 163: return InfoWindowDto.decode(readValue(buffer)!); - case 164: + case 164: return MarkerAnchorDto.decode(readValue(buffer)!); - case 165: + case 165: return PointOfInterestDto.decode(readValue(buffer)!); - case 166: + case 166: return IndoorLevelDto.decode(readValue(buffer)!); - case 167: + case 167: return IndoorBuildingDto.decode(readValue(buffer)!); - case 168: + case 168: return PolygonDto.decode(readValue(buffer)!); - case 169: + case 169: return PolygonOptionsDto.decode(readValue(buffer)!); - case 170: + case 170: return PolygonHoleDto.decode(readValue(buffer)!); - case 171: + case 171: return StyleSpanStrokeStyleDto.decode(readValue(buffer)!); - case 172: + case 172: return StyleSpanDto.decode(readValue(buffer)!); - case 173: + case 173: return PolylineDto.decode(readValue(buffer)!); - case 174: + case 174: return PatternItemDto.decode(readValue(buffer)!); - case 175: + case 175: return PolylineOptionsDto.decode(readValue(buffer)!); - case 176: + case 176: return CircleDto.decode(readValue(buffer)!); - case 177: + case 177: return CircleOptionsDto.decode(readValue(buffer)!); - case 178: + case 178: return MapPaddingDto.decode(readValue(buffer)!); - case 179: + case 179: + return NavigationHeaderStylingOptionsDto.decode(readValue(buffer)!); + case 180: return RouteTokenOptionsDto.decode(readValue(buffer)!); - case 180: + case 181: return DestinationsDto.decode(readValue(buffer)!); - case 181: + case 182: return RoutingOptionsDto.decode(readValue(buffer)!); - case 182: + case 183: return NavigationDisplayOptionsDto.decode(readValue(buffer)!); - case 183: + case 184: return NavigationWaypointDto.decode(readValue(buffer)!); - case 184: + case 185: return ContinueToNextDestinationResponseDto.decode(readValue(buffer)!); - case 185: + case 186: return NavigationTimeAndDistanceDto.decode(readValue(buffer)!); - case 186: + case 187: return NavigationAudioGuidanceSettingsDto.decode(readValue(buffer)!); - case 187: + case 188: return SimulationOptionsDto.decode(readValue(buffer)!); - case 188: + case 189: return LatLngDto.decode(readValue(buffer)!); - case 189: + case 190: return LatLngBoundsDto.decode(readValue(buffer)!); - case 190: + case 191: return SpeedingUpdatedEventDto.decode(readValue(buffer)!); - case 191: + case 192: return GpsAvailabilityChangeEventDto.decode(readValue(buffer)!); - case 192: - return SpeedAlertOptionsThresholdPercentageDto.decode( - readValue(buffer)!, - ); - case 193: + case 193: + return SpeedAlertOptionsThresholdPercentageDto.decode(readValue(buffer)!); + case 194: return SpeedAlertOptionsDto.decode(readValue(buffer)!); - case 194: - return RouteSegmentTrafficDataRoadStretchRenderingDataDto.decode( - readValue(buffer)!, - ); - case 195: + case 195: + return RouteSegmentTrafficDataRoadStretchRenderingDataDto.decode(readValue(buffer)!); + case 196: return RouteSegmentTrafficDataDto.decode(readValue(buffer)!); - case 196: + case 197: return RouteSegmentDto.decode(readValue(buffer)!); - case 197: + case 198: return LaneDirectionDto.decode(readValue(buffer)!); - case 198: + case 199: return LaneDto.decode(readValue(buffer)!); - case 199: + case 200: return StepInfoDto.decode(readValue(buffer)!); - case 200: + case 201: return NavInfoDto.decode(readValue(buffer)!); - case 201: + case 202: return TermsAndConditionsUIParamsDto.decode(readValue(buffer)!); - case 202: + case 203: return StepImageGenerationOptionsDto.decode(readValue(buffer)!); default: return super.readValueOfType(type, buffer); @@ -3550,13 +3712,9 @@ class ViewCreationApi { /// Constructor for [ViewCreationApi]. The [binaryMessenger] named argument is /// available for dependency injection. If it is left null, the default /// BinaryMessenger will be used which routes to the host platform. - ViewCreationApi({ - BinaryMessenger? binaryMessenger, - String messageChannelSuffix = '', - }) : pigeonVar_binaryMessenger = binaryMessenger, - pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty - ? '.$messageChannelSuffix' - : ''; + ViewCreationApi({BinaryMessenger? binaryMessenger, String messageChannelSuffix = ''}) + : pigeonVar_binaryMessenger = binaryMessenger, + pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; final BinaryMessenger? pigeonVar_binaryMessenger; static const MessageCodec pigeonChannelCodec = _PigeonCodec(); @@ -3564,17 +3722,13 @@ class ViewCreationApi { final String pigeonVar_messageChannelSuffix; Future create(ViewCreationOptionsDto msg) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.ViewCreationApi.create$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [msg], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.ViewCreationApi.create$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([msg]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -3595,13 +3749,9 @@ class MapViewApi { /// Constructor for [MapViewApi]. The [binaryMessenger] named argument is /// available for dependency injection. If it is left null, the default /// BinaryMessenger will be used which routes to the host platform. - MapViewApi({ - BinaryMessenger? binaryMessenger, - String messageChannelSuffix = '', - }) : pigeonVar_binaryMessenger = binaryMessenger, - pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty - ? '.$messageChannelSuffix' - : ''; + MapViewApi({BinaryMessenger? binaryMessenger, String messageChannelSuffix = ''}) + : pigeonVar_binaryMessenger = binaryMessenger, + pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; final BinaryMessenger? pigeonVar_binaryMessenger; static const MessageCodec pigeonChannelCodec = _PigeonCodec(); @@ -3609,17 +3759,13 @@ class MapViewApi { final String pigeonVar_messageChannelSuffix; Future awaitMapReady(int viewId) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.awaitMapReady$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.awaitMapReady$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -3636,17 +3782,13 @@ class MapViewApi { } Future isMyLocationEnabled(int viewId) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMyLocationEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMyLocationEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -3668,17 +3810,13 @@ class MapViewApi { } Future setMyLocationEnabled(int viewId, bool enabled) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMyLocationEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId, enabled], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMyLocationEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, enabled]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -3695,17 +3833,13 @@ class MapViewApi { } Future getMyLocation(int viewId) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMyLocation$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMyLocation$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -3722,17 +3856,13 @@ class MapViewApi { } Future getMapType(int viewId) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMapType$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMapType$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -3754,17 +3884,13 @@ class MapViewApi { } Future setMapType(int viewId, MapTypeDto mapType) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapType$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId, mapType], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapType$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, mapType]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -3781,17 +3907,13 @@ class MapViewApi { } Future setMapStyle(int viewId, String styleJson) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapStyle$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId, styleJson], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapStyle$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, styleJson]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -3808,17 +3930,13 @@ class MapViewApi { } Future isNavigationTripProgressBarEnabled(int viewId) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationTripProgressBarEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationTripProgressBarEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -3839,21 +3957,14 @@ class MapViewApi { } } - Future setNavigationTripProgressBarEnabled( - int viewId, - bool enabled, - ) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationTripProgressBarEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId, enabled], + Future setNavigationTripProgressBarEnabled(int viewId, bool enabled) async { + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationTripProgressBarEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, enabled]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -3870,17 +3981,13 @@ class MapViewApi { } Future isNavigationHeaderEnabled(int viewId) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationHeaderEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationHeaderEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -3902,17 +4009,64 @@ class MapViewApi { } Future setNavigationHeaderEnabled(int viewId, bool enabled) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationHeaderEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId, enabled], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationHeaderEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, enabled]); + final List? pigeonVar_replyList = + await pigeonVar_sendFuture as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { + throw PlatformException( + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], + ); + } else { + return; + } + } + + Future getNavigationHeaderStylingOptions(int viewId) async { + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getNavigationHeaderStylingOptions$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); + final List? pigeonVar_replyList = + await pigeonVar_sendFuture as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { + throw PlatformException( + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], + ); + } else if (pigeonVar_replyList[0] == null) { + throw PlatformException( + code: 'null-error', + message: 'Host platform returned null value for non-null return value.', + ); + } else { + return (pigeonVar_replyList[0] as NavigationHeaderStylingOptionsDto?)!; + } + } + + Future setNavigationHeaderStylingOptions(int viewId, NavigationHeaderStylingOptionsDto stylingOptions) async { + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationHeaderStylingOptions$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, stylingOptions]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -3929,17 +4083,13 @@ class MapViewApi { } Future isNavigationFooterEnabled(int viewId) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationFooterEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationFooterEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -3961,17 +4111,13 @@ class MapViewApi { } Future setNavigationFooterEnabled(int viewId, bool enabled) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationFooterEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId, enabled], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationFooterEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, enabled]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -3988,17 +4134,13 @@ class MapViewApi { } Future isRecenterButtonEnabled(int viewId) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isRecenterButtonEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isRecenterButtonEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -4020,17 +4162,13 @@ class MapViewApi { } Future setRecenterButtonEnabled(int viewId, bool enabled) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setRecenterButtonEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId, enabled], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setRecenterButtonEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, enabled]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -4047,17 +4185,13 @@ class MapViewApi { } Future isSpeedLimitIconEnabled(int viewId) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isSpeedLimitIconEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isSpeedLimitIconEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -4079,17 +4213,13 @@ class MapViewApi { } Future setSpeedLimitIconEnabled(int viewId, bool enabled) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setSpeedLimitIconEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId, enabled], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setSpeedLimitIconEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, enabled]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -4106,17 +4236,13 @@ class MapViewApi { } Future isSpeedometerEnabled(int viewId) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isSpeedometerEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isSpeedometerEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -4138,17 +4264,13 @@ class MapViewApi { } Future setSpeedometerEnabled(int viewId, bool enabled) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setSpeedometerEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId, enabled], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setSpeedometerEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, enabled]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -4165,17 +4287,13 @@ class MapViewApi { } Future isNavigationUIEnabled(int viewId) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationUIEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationUIEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -4197,17 +4315,13 @@ class MapViewApi { } Future setNavigationUIEnabled(int viewId, bool enabled) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationUIEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId, enabled], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationUIEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, enabled]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -4224,17 +4338,13 @@ class MapViewApi { } Future isMyLocationButtonEnabled(int viewId) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMyLocationButtonEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMyLocationButtonEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -4256,17 +4366,13 @@ class MapViewApi { } Future setMyLocationButtonEnabled(int viewId, bool enabled) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMyLocationButtonEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId, enabled], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMyLocationButtonEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, enabled]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -4283,17 +4389,13 @@ class MapViewApi { } Future isConsumeMyLocationButtonClickEventsEnabled(int viewId) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isConsumeMyLocationButtonClickEventsEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isConsumeMyLocationButtonClickEventsEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -4314,21 +4416,14 @@ class MapViewApi { } } - Future setConsumeMyLocationButtonClickEventsEnabled( - int viewId, - bool enabled, - ) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setConsumeMyLocationButtonClickEventsEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId, enabled], + Future setConsumeMyLocationButtonClickEventsEnabled(int viewId, bool enabled) async { + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setConsumeMyLocationButtonClickEventsEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, enabled]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -4345,17 +4440,13 @@ class MapViewApi { } Future isZoomGesturesEnabled(int viewId) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isZoomGesturesEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isZoomGesturesEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -4377,17 +4468,13 @@ class MapViewApi { } Future setZoomGesturesEnabled(int viewId, bool enabled) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setZoomGesturesEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId, enabled], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setZoomGesturesEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, enabled]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -4404,17 +4491,13 @@ class MapViewApi { } Future isZoomControlsEnabled(int viewId) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isZoomControlsEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isZoomControlsEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -4436,17 +4519,13 @@ class MapViewApi { } Future setZoomControlsEnabled(int viewId, bool enabled) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setZoomControlsEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId, enabled], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setZoomControlsEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, enabled]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -4463,17 +4542,13 @@ class MapViewApi { } Future isCompassEnabled(int viewId) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isCompassEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isCompassEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -4495,17 +4570,13 @@ class MapViewApi { } Future setCompassEnabled(int viewId, bool enabled) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setCompassEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId, enabled], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setCompassEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, enabled]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -4522,17 +4593,13 @@ class MapViewApi { } Future isRotateGesturesEnabled(int viewId) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isRotateGesturesEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isRotateGesturesEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -4554,17 +4621,13 @@ class MapViewApi { } Future setRotateGesturesEnabled(int viewId, bool enabled) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setRotateGesturesEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId, enabled], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setRotateGesturesEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, enabled]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -4581,17 +4644,13 @@ class MapViewApi { } Future isScrollGesturesEnabled(int viewId) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isScrollGesturesEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isScrollGesturesEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -4613,17 +4672,13 @@ class MapViewApi { } Future setScrollGesturesEnabled(int viewId, bool enabled) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setScrollGesturesEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId, enabled], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setScrollGesturesEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, enabled]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -4640,17 +4695,13 @@ class MapViewApi { } Future isScrollGesturesEnabledDuringRotateOrZoom(int viewId) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isScrollGesturesEnabledDuringRotateOrZoom$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isScrollGesturesEnabledDuringRotateOrZoom$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -4671,21 +4722,14 @@ class MapViewApi { } } - Future setScrollGesturesDuringRotateOrZoomEnabled( - int viewId, - bool enabled, - ) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setScrollGesturesDuringRotateOrZoomEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId, enabled], + Future setScrollGesturesDuringRotateOrZoomEnabled(int viewId, bool enabled) async { + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setScrollGesturesDuringRotateOrZoomEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, enabled]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -4702,17 +4746,13 @@ class MapViewApi { } Future isTiltGesturesEnabled(int viewId) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTiltGesturesEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTiltGesturesEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -4734,17 +4774,13 @@ class MapViewApi { } Future setTiltGesturesEnabled(int viewId, bool enabled) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTiltGesturesEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId, enabled], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTiltGesturesEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, enabled]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -4761,17 +4797,13 @@ class MapViewApi { } Future isMapToolbarEnabled(int viewId) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMapToolbarEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMapToolbarEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -4793,17 +4825,13 @@ class MapViewApi { } Future setMapToolbarEnabled(int viewId, bool enabled) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapToolbarEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId, enabled], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapToolbarEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, enabled]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -4820,17 +4848,13 @@ class MapViewApi { } Future isTrafficEnabled(int viewId) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -4852,17 +4876,13 @@ class MapViewApi { } Future setTrafficEnabled(int viewId, bool enabled) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId, enabled], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, enabled]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -4879,17 +4899,13 @@ class MapViewApi { } Future isTrafficIncidentCardsEnabled(int viewId) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficIncidentCardsEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficIncidentCardsEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -4911,17 +4927,13 @@ class MapViewApi { } Future setTrafficIncidentCardsEnabled(int viewId, bool enabled) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficIncidentCardsEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId, enabled], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficIncidentCardsEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, enabled]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -4938,17 +4950,13 @@ class MapViewApi { } Future isTrafficPromptsEnabled(int viewId) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficPromptsEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficPromptsEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -4970,17 +4978,13 @@ class MapViewApi { } Future setTrafficPromptsEnabled(int viewId, bool enabled) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficPromptsEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId, enabled], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficPromptsEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, enabled]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -4997,17 +5001,13 @@ class MapViewApi { } Future isReportIncidentButtonEnabled(int viewId) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isReportIncidentButtonEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isReportIncidentButtonEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -5029,17 +5029,13 @@ class MapViewApi { } Future setReportIncidentButtonEnabled(int viewId, bool enabled) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setReportIncidentButtonEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId, enabled], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setReportIncidentButtonEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, enabled]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -5056,17 +5052,13 @@ class MapViewApi { } Future isIncidentReportingAvailable(int viewId) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isIncidentReportingAvailable$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isIncidentReportingAvailable$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -5088,17 +5080,13 @@ class MapViewApi { } Future showReportIncidentsPanel(int viewId) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.showReportIncidentsPanel$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.showReportIncidentsPanel$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -5115,17 +5103,13 @@ class MapViewApi { } Future isBuildingsEnabled(int viewId) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isBuildingsEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isBuildingsEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -5147,17 +5131,13 @@ class MapViewApi { } Future setBuildingsEnabled(int viewId, bool enabled) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setBuildingsEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId, enabled], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setBuildingsEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, enabled]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -5174,17 +5154,13 @@ class MapViewApi { } Future isIndoorEnabled(int viewId) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isIndoorEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isIndoorEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -5206,17 +5182,13 @@ class MapViewApi { } Future setIndoorEnabled(int viewId, bool enabled) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setIndoorEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId, enabled], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setIndoorEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, enabled]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -5233,17 +5205,13 @@ class MapViewApi { } Future isIndoorLevelPickerEnabled(int viewId) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isIndoorLevelPickerEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isIndoorLevelPickerEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -5265,17 +5233,13 @@ class MapViewApi { } Future setIndoorLevelPickerEnabled(int viewId, bool enabled) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setIndoorLevelPickerEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId, enabled], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setIndoorLevelPickerEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, enabled]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -5292,17 +5256,13 @@ class MapViewApi { } Future getFocusedIndoorBuilding(int viewId) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getFocusedIndoorBuilding$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getFocusedIndoorBuilding$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -5322,17 +5282,13 @@ class MapViewApi { /// indoor building. Throws if no building is focused or the index is out of /// range. Future activateIndoorLevel(int viewId, int levelIndex) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.activateIndoorLevel$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId, levelIndex], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.activateIndoorLevel$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, levelIndex]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -5349,17 +5305,13 @@ class MapViewApi { } Future getCameraPosition(int viewId) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getCameraPosition$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getCameraPosition$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -5381,17 +5333,13 @@ class MapViewApi { } Future getVisibleRegion(int viewId) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getVisibleRegion$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getVisibleRegion$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -5412,22 +5360,14 @@ class MapViewApi { } } - Future followMyLocation( - int viewId, - CameraPerspectiveDto perspective, - double? zoomLevel, - ) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.followMyLocation$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId, perspective, zoomLevel], + Future followMyLocation(int viewId, CameraPerspectiveDto perspective, double? zoomLevel) async { + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.followMyLocation$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, perspective, zoomLevel]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -5443,22 +5383,14 @@ class MapViewApi { } } - Future animateCameraToCameraPosition( - int viewId, - CameraPositionDto cameraPosition, - int? duration, - ) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToCameraPosition$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId, cameraPosition, duration], + Future animateCameraToCameraPosition(int viewId, CameraPositionDto cameraPosition, int? duration) async { + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToCameraPosition$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, cameraPosition, duration]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -5479,22 +5411,14 @@ class MapViewApi { } } - Future animateCameraToLatLng( - int viewId, - LatLngDto point, - int? duration, - ) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLng$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId, point, duration], + Future animateCameraToLatLng(int viewId, LatLngDto point, int? duration) async { + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLng$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, point, duration]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -5515,23 +5439,14 @@ class MapViewApi { } } - Future animateCameraToLatLngBounds( - int viewId, - LatLngBoundsDto bounds, - double padding, - int? duration, - ) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLngBounds$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId, bounds, padding, duration], + Future animateCameraToLatLngBounds(int viewId, LatLngBoundsDto bounds, double padding, int? duration) async { + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLngBounds$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, bounds, padding, duration]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -5552,23 +5467,14 @@ class MapViewApi { } } - Future animateCameraToLatLngZoom( - int viewId, - LatLngDto point, - double zoom, - int? duration, - ) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLngZoom$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId, point, zoom, duration], + Future animateCameraToLatLngZoom(int viewId, LatLngDto point, double zoom, int? duration) async { + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLngZoom$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, point, zoom, duration]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -5589,23 +5495,14 @@ class MapViewApi { } } - Future animateCameraByScroll( - int viewId, - double scrollByDx, - double scrollByDy, - int? duration, - ) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraByScroll$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId, scrollByDx, scrollByDy, duration], + Future animateCameraByScroll(int viewId, double scrollByDx, double scrollByDy, int? duration) async { + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraByScroll$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, scrollByDx, scrollByDy, duration]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -5626,24 +5523,14 @@ class MapViewApi { } } - Future animateCameraByZoom( - int viewId, - double zoomBy, - double? focusDx, - double? focusDy, - int? duration, - ) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraByZoom$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId, zoomBy, focusDx, focusDy, duration], + Future animateCameraByZoom(int viewId, double zoomBy, double? focusDx, double? focusDy, int? duration) async { + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraByZoom$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, zoomBy, focusDx, focusDy, duration]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -5664,22 +5551,14 @@ class MapViewApi { } } - Future animateCameraToZoom( - int viewId, - double zoom, - int? duration, - ) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToZoom$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId, zoom, duration], + Future animateCameraToZoom(int viewId, double zoom, int? duration) async { + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToZoom$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, zoom, duration]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -5700,21 +5579,14 @@ class MapViewApi { } } - Future moveCameraToCameraPosition( - int viewId, - CameraPositionDto cameraPosition, - ) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToCameraPosition$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId, cameraPosition], + Future moveCameraToCameraPosition(int viewId, CameraPositionDto cameraPosition) async { + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToCameraPosition$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, cameraPosition]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -5731,17 +5603,13 @@ class MapViewApi { } Future moveCameraToLatLng(int viewId, LatLngDto point) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLng$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId, point], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLng$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, point]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -5757,22 +5625,14 @@ class MapViewApi { } } - Future moveCameraToLatLngBounds( - int viewId, - LatLngBoundsDto bounds, - double padding, - ) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLngBounds$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId, bounds, padding], + Future moveCameraToLatLngBounds(int viewId, LatLngBoundsDto bounds, double padding) async { + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLngBounds$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, bounds, padding]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -5788,22 +5648,14 @@ class MapViewApi { } } - Future moveCameraToLatLngZoom( - int viewId, - LatLngDto point, - double zoom, - ) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLngZoom$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId, point, zoom], + Future moveCameraToLatLngZoom(int viewId, LatLngDto point, double zoom) async { + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLngZoom$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, point, zoom]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -5819,22 +5671,14 @@ class MapViewApi { } } - Future moveCameraByScroll( - int viewId, - double scrollByDx, - double scrollByDy, - ) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraByScroll$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId, scrollByDx, scrollByDy], + Future moveCameraByScroll(int viewId, double scrollByDx, double scrollByDy) async { + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraByScroll$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, scrollByDx, scrollByDy]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -5850,23 +5694,14 @@ class MapViewApi { } } - Future moveCameraByZoom( - int viewId, - double zoomBy, - double? focusDx, - double? focusDy, - ) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraByZoom$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId, zoomBy, focusDx, focusDy], + Future moveCameraByZoom(int viewId, double zoomBy, double? focusDx, double? focusDy) async { + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraByZoom$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, zoomBy, focusDx, focusDy]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -5883,17 +5718,13 @@ class MapViewApi { } Future moveCameraToZoom(int viewId, double zoom) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToZoom$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId, zoom], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToZoom$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, zoom]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -5910,17 +5741,13 @@ class MapViewApi { } Future showRouteOverview(int viewId) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.showRouteOverview$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.showRouteOverview$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -5937,17 +5764,13 @@ class MapViewApi { } Future getMinZoomPreference(int viewId) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMinZoomPreference$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMinZoomPreference$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -5969,17 +5792,13 @@ class MapViewApi { } Future getMaxZoomPreference(int viewId) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMaxZoomPreference$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMaxZoomPreference$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -6001,17 +5820,13 @@ class MapViewApi { } Future resetMinMaxZoomPreference(int viewId) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.resetMinMaxZoomPreference$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.resetMinMaxZoomPreference$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -6027,21 +5842,14 @@ class MapViewApi { } } - Future setMinZoomPreference( - int viewId, - double minZoomPreference, - ) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMinZoomPreference$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId, minZoomPreference], + Future setMinZoomPreference(int viewId, double minZoomPreference) async { + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMinZoomPreference$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, minZoomPreference]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -6057,21 +5865,14 @@ class MapViewApi { } } - Future setMaxZoomPreference( - int viewId, - double maxZoomPreference, - ) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMaxZoomPreference$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId, maxZoomPreference], + Future setMaxZoomPreference(int viewId, double maxZoomPreference) async { + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMaxZoomPreference$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, maxZoomPreference]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -6088,17 +5889,13 @@ class MapViewApi { } Future> getMarkers(int viewId) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMarkers$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMarkers$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -6119,21 +5916,14 @@ class MapViewApi { } } - Future> addMarkers( - int viewId, - List markers, - ) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addMarkers$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId, markers], + Future> addMarkers(int viewId, List markers) async { + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addMarkers$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, markers]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -6154,21 +5944,14 @@ class MapViewApi { } } - Future> updateMarkers( - int viewId, - List markers, - ) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updateMarkers$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId, markers], + Future> updateMarkers(int viewId, List markers) async { + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updateMarkers$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, markers]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -6190,17 +5973,13 @@ class MapViewApi { } Future removeMarkers(int viewId, List markers) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removeMarkers$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId, markers], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removeMarkers$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, markers]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -6217,17 +5996,13 @@ class MapViewApi { } Future clearMarkers(int viewId) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearMarkers$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearMarkers$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -6244,17 +6019,13 @@ class MapViewApi { } Future clear(int viewId) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clear$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clear$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -6271,17 +6042,13 @@ class MapViewApi { } Future> getPolygons(int viewId) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPolygons$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPolygons$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -6302,21 +6069,14 @@ class MapViewApi { } } - Future> addPolygons( - int viewId, - List polygons, - ) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addPolygons$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId, polygons], + Future> addPolygons(int viewId, List polygons) async { + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addPolygons$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, polygons]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -6337,21 +6097,14 @@ class MapViewApi { } } - Future> updatePolygons( - int viewId, - List polygons, - ) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updatePolygons$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId, polygons], + Future> updatePolygons(int viewId, List polygons) async { + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updatePolygons$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, polygons]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -6373,17 +6126,13 @@ class MapViewApi { } Future removePolygons(int viewId, List polygons) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removePolygons$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId, polygons], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removePolygons$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, polygons]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -6400,17 +6149,13 @@ class MapViewApi { } Future clearPolygons(int viewId) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearPolygons$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearPolygons$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -6427,17 +6172,13 @@ class MapViewApi { } Future> getPolylines(int viewId) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPolylines$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPolylines$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -6458,21 +6199,14 @@ class MapViewApi { } } - Future> addPolylines( - int viewId, - List polylines, - ) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addPolylines$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId, polylines], + Future> addPolylines(int viewId, List polylines) async { + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addPolylines$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, polylines]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -6493,21 +6227,14 @@ class MapViewApi { } } - Future> updatePolylines( - int viewId, - List polylines, - ) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updatePolylines$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId, polylines], + Future> updatePolylines(int viewId, List polylines) async { + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updatePolylines$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, polylines]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -6529,17 +6256,13 @@ class MapViewApi { } Future removePolylines(int viewId, List polylines) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removePolylines$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId, polylines], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removePolylines$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, polylines]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -6556,17 +6279,13 @@ class MapViewApi { } Future clearPolylines(int viewId) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearPolylines$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearPolylines$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -6583,17 +6302,13 @@ class MapViewApi { } Future> getCircles(int viewId) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getCircles$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getCircles$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -6614,21 +6329,14 @@ class MapViewApi { } } - Future> addCircles( - int viewId, - List circles, - ) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addCircles$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId, circles], + Future> addCircles(int viewId, List circles) async { + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addCircles$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, circles]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -6649,21 +6357,14 @@ class MapViewApi { } } - Future> updateCircles( - int viewId, - List circles, - ) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updateCircles$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId, circles], + Future> updateCircles(int viewId, List circles) async { + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updateCircles$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, circles]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -6685,17 +6386,13 @@ class MapViewApi { } Future removeCircles(int viewId, List circles) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removeCircles$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId, circles], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removeCircles$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, circles]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -6712,17 +6409,13 @@ class MapViewApi { } Future clearCircles(int viewId) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearCircles$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearCircles$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -6739,17 +6432,13 @@ class MapViewApi { } Future enableOnCameraChangedEvents(int viewId) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.enableOnCameraChangedEvents$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.enableOnCameraChangedEvents$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -6766,17 +6455,13 @@ class MapViewApi { } Future setPadding(int viewId, MapPaddingDto padding) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setPadding$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId, padding], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setPadding$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, padding]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -6793,17 +6478,13 @@ class MapViewApi { } Future getPadding(int viewId) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPadding$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPadding$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -6825,17 +6506,13 @@ class MapViewApi { } Future getMapColorScheme(int viewId) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMapColorScheme$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMapColorScheme$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -6856,21 +6533,14 @@ class MapViewApi { } } - Future setMapColorScheme( - int viewId, - MapColorSchemeDto mapColorScheme, - ) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapColorScheme$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId, mapColorScheme], + Future setMapColorScheme(int viewId, MapColorSchemeDto mapColorScheme) async { + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapColorScheme$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, mapColorScheme]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -6887,17 +6557,13 @@ class MapViewApi { } Future getForceNightMode(int viewId) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getForceNightMode$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getForceNightMode$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -6918,21 +6584,14 @@ class MapViewApi { } } - Future setForceNightMode( - int viewId, - NavigationForceNightModeDto forceNightMode, - ) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setForceNightMode$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId, forceNightMode], + Future setForceNightMode(int viewId, NavigationForceNightModeDto forceNightMode) async { + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setForceNightMode$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, forceNightMode]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -6953,37 +6612,23 @@ class ImageRegistryApi { /// Constructor for [ImageRegistryApi]. The [binaryMessenger] named argument is /// available for dependency injection. If it is left null, the default /// BinaryMessenger will be used which routes to the host platform. - ImageRegistryApi({ - BinaryMessenger? binaryMessenger, - String messageChannelSuffix = '', - }) : pigeonVar_binaryMessenger = binaryMessenger, - pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty - ? '.$messageChannelSuffix' - : ''; + ImageRegistryApi({BinaryMessenger? binaryMessenger, String messageChannelSuffix = ''}) + : pigeonVar_binaryMessenger = binaryMessenger, + pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; final BinaryMessenger? pigeonVar_binaryMessenger; static const MessageCodec pigeonChannelCodec = _PigeonCodec(); final String pigeonVar_messageChannelSuffix; - Future registerBitmapImage( - String imageId, - Uint8List bytes, - double imagePixelRatio, - double? width, - double? height, - ) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.registerBitmapImage$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [imageId, bytes, imagePixelRatio, width, height], + Future registerBitmapImage(String imageId, Uint8List bytes, double imagePixelRatio, double? width, double? height) async { + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.registerBitmapImage$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([imageId, bytes, imagePixelRatio, width, height]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -7005,17 +6650,13 @@ class ImageRegistryApi { } Future unregisterImage(ImageDescriptorDto imageDescriptor) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.unregisterImage$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [imageDescriptor], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.unregisterImage$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([imageDescriptor]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -7032,14 +6673,12 @@ class ImageRegistryApi { } Future> getRegisteredImages() async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.getRegisteredImages$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.getRegisteredImages$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -7057,23 +6696,18 @@ class ImageRegistryApi { message: 'Host platform returned null value for non-null return value.', ); } else { - return (pigeonVar_replyList[0] as List?)! - .cast(); + return (pigeonVar_replyList[0] as List?)!.cast(); } } Future clearRegisteredImages(RegisteredImageTypeDto? filter) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.clearRegisteredImages$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [filter], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.clearRegisteredImages$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([filter]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -7089,20 +6723,14 @@ class ImageRegistryApi { } } - Future getRegisteredImageData( - ImageDescriptorDto imageDescriptor, - ) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.getRegisteredImageData$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [imageDescriptor], + Future getRegisteredImageData(ImageDescriptorDto imageDescriptor) async { + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.getRegisteredImageData$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([imageDescriptor]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -7130,12 +6758,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); @@ -7157,652 +6780,453 @@ abstract class ViewEventApi { void onIndoorActiveLevelChanged(int viewId, IndoorBuildingDto? building); - void onCameraChanged( - int viewId, - CameraEventTypeDto eventType, - CameraPositionDto position, - ); + void onCameraChanged(int viewId, CameraEventTypeDto eventType, CameraPositionDto position); - static void setUp( - ViewEventApi? api, { - BinaryMessenger? binaryMessenger, - String messageChannelSuffix = '', - }) { - messageChannelSuffix = messageChannelSuffix.isNotEmpty - ? '.$messageChannelSuffix' - : ''; + static void setUp(ViewEventApi? api, {BinaryMessenger? binaryMessenger, String messageChannelSuffix = '',}) { + messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMapClickEvent$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMapClickEvent$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMapClickEvent was null.', - ); + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMapClickEvent was null.'); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMapClickEvent was null, expected non-null int.', - ); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMapClickEvent was null, expected non-null int.'); final LatLngDto? arg_latLng = (args[1] as LatLngDto?); - assert( - arg_latLng != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMapClickEvent was null, expected non-null LatLngDto.', - ); + assert(arg_latLng != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMapClickEvent was null, expected non-null LatLngDto.'); try { api.onMapClickEvent(arg_viewId!, arg_latLng!); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMapLongClickEvent$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMapLongClickEvent$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMapLongClickEvent was null.', - ); + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMapLongClickEvent was null.'); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMapLongClickEvent was null, expected non-null int.', - ); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMapLongClickEvent was null, expected non-null int.'); final LatLngDto? arg_latLng = (args[1] as LatLngDto?); - assert( - arg_latLng != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMapLongClickEvent was null, expected non-null LatLngDto.', - ); + assert(arg_latLng != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMapLongClickEvent was null, expected non-null LatLngDto.'); try { api.onMapLongClickEvent(arg_viewId!, arg_latLng!); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onRecenterButtonClicked$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onRecenterButtonClicked$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onRecenterButtonClicked was null.', - ); + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onRecenterButtonClicked was null.'); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onRecenterButtonClicked was null, expected non-null int.', - ); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onRecenterButtonClicked was null, expected non-null int.'); try { api.onRecenterButtonClicked(arg_viewId!); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMarkerEvent$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMarkerEvent$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMarkerEvent was null.', - ); + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMarkerEvent was null.'); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMarkerEvent was null, expected non-null int.', - ); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMarkerEvent was null, expected non-null int.'); final String? arg_markerId = (args[1] as String?); - assert( - arg_markerId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMarkerEvent was null, expected non-null String.', - ); - final MarkerEventTypeDto? arg_eventType = - (args[2] as MarkerEventTypeDto?); - assert( - arg_eventType != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMarkerEvent was null, expected non-null MarkerEventTypeDto.', - ); + assert(arg_markerId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMarkerEvent was null, expected non-null String.'); + final MarkerEventTypeDto? arg_eventType = (args[2] as MarkerEventTypeDto?); + assert(arg_eventType != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMarkerEvent was null, expected non-null MarkerEventTypeDto.'); try { api.onMarkerEvent(arg_viewId!, arg_markerId!, arg_eventType!); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMarkerDragEvent$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMarkerDragEvent$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMarkerDragEvent was null.', - ); + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMarkerDragEvent was null.'); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMarkerDragEvent was null, expected non-null int.', - ); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMarkerDragEvent was null, expected non-null int.'); final String? arg_markerId = (args[1] as String?); - assert( - arg_markerId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMarkerDragEvent was null, expected non-null String.', - ); - final MarkerDragEventTypeDto? arg_eventType = - (args[2] as MarkerDragEventTypeDto?); - assert( - arg_eventType != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMarkerDragEvent was null, expected non-null MarkerDragEventTypeDto.', - ); + assert(arg_markerId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMarkerDragEvent was null, expected non-null String.'); + final MarkerDragEventTypeDto? arg_eventType = (args[2] as MarkerDragEventTypeDto?); + assert(arg_eventType != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMarkerDragEvent was null, expected non-null MarkerDragEventTypeDto.'); final LatLngDto? arg_position = (args[3] as LatLngDto?); - assert( - arg_position != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMarkerDragEvent was null, expected non-null LatLngDto.', - ); + assert(arg_position != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMarkerDragEvent was null, expected non-null LatLngDto.'); try { - api.onMarkerDragEvent( - arg_viewId!, - arg_markerId!, - arg_eventType!, - arg_position!, - ); + api.onMarkerDragEvent(arg_viewId!, arg_markerId!, arg_eventType!, arg_position!); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPolygonClicked$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPolygonClicked$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPolygonClicked was null.', - ); + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPolygonClicked was null.'); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPolygonClicked was null, expected non-null int.', - ); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPolygonClicked was null, expected non-null int.'); final String? arg_polygonId = (args[1] as String?); - assert( - arg_polygonId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPolygonClicked was null, expected non-null String.', - ); + assert(arg_polygonId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPolygonClicked was null, expected non-null String.'); try { api.onPolygonClicked(arg_viewId!, arg_polygonId!); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPolylineClicked$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPolylineClicked$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPolylineClicked was null.', - ); + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPolylineClicked was null.'); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPolylineClicked was null, expected non-null int.', - ); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPolylineClicked was null, expected non-null int.'); final String? arg_polylineId = (args[1] as String?); - assert( - arg_polylineId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPolylineClicked was null, expected non-null String.', - ); + assert(arg_polylineId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPolylineClicked was null, expected non-null String.'); try { api.onPolylineClicked(arg_viewId!, arg_polylineId!); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onCircleClicked$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onCircleClicked$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onCircleClicked was null.', - ); + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onCircleClicked was null.'); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onCircleClicked was null, expected non-null int.', - ); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onCircleClicked was null, expected non-null int.'); final String? arg_circleId = (args[1] as String?); - assert( - arg_circleId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onCircleClicked was null, expected non-null String.', - ); + assert(arg_circleId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onCircleClicked was null, expected non-null String.'); try { api.onCircleClicked(arg_viewId!, arg_circleId!); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPoiClick$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPoiClick$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPoiClick was null.', - ); + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPoiClick was null.'); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPoiClick was null, expected non-null int.', - ); - final PointOfInterestDto? arg_pointOfInterest = - (args[1] as PointOfInterestDto?); - assert( - arg_pointOfInterest != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPoiClick was null, expected non-null PointOfInterestDto.', - ); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPoiClick was null, expected non-null int.'); + final PointOfInterestDto? arg_pointOfInterest = (args[1] as PointOfInterestDto?); + assert(arg_pointOfInterest != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPoiClick was null, expected non-null PointOfInterestDto.'); try { api.onPoiClick(arg_viewId!, arg_pointOfInterest!); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onNavigationUIEnabledChanged$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onNavigationUIEnabledChanged$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onNavigationUIEnabledChanged was null.', - ); + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onNavigationUIEnabledChanged was null.'); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onNavigationUIEnabledChanged was null, expected non-null int.', - ); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onNavigationUIEnabledChanged was null, expected non-null int.'); final bool? arg_navigationUIEnabled = (args[1] as bool?); - assert( - arg_navigationUIEnabled != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onNavigationUIEnabledChanged was null, expected non-null bool.', - ); + assert(arg_navigationUIEnabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onNavigationUIEnabledChanged was null, expected non-null bool.'); try { - api.onNavigationUIEnabledChanged( - arg_viewId!, - arg_navigationUIEnabled!, - ); + api.onNavigationUIEnabledChanged(arg_viewId!, arg_navigationUIEnabled!); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPromptVisibilityChanged$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPromptVisibilityChanged$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPromptVisibilityChanged was null.', - ); + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPromptVisibilityChanged was null.'); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPromptVisibilityChanged was null, expected non-null int.', - ); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPromptVisibilityChanged was null, expected non-null int.'); final bool? arg_promptVisible = (args[1] as bool?); - assert( - arg_promptVisible != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPromptVisibilityChanged was null, expected non-null bool.', - ); + assert(arg_promptVisible != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPromptVisibilityChanged was null, expected non-null bool.'); try { api.onPromptVisibilityChanged(arg_viewId!, arg_promptVisible!); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMyLocationClicked$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMyLocationClicked$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMyLocationClicked was null.', - ); + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMyLocationClicked was null.'); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMyLocationClicked was null, expected non-null int.', - ); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMyLocationClicked was null, expected non-null int.'); try { api.onMyLocationClicked(arg_viewId!); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMyLocationButtonClicked$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMyLocationButtonClicked$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMyLocationButtonClicked was null.', - ); + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMyLocationButtonClicked was null.'); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMyLocationButtonClicked was null, expected non-null int.', - ); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMyLocationButtonClicked was null, expected non-null int.'); try { api.onMyLocationButtonClicked(arg_viewId!); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onIndoorFocusedBuildingChanged$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onIndoorFocusedBuildingChanged$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onIndoorFocusedBuildingChanged was null.', - ); + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onIndoorFocusedBuildingChanged was null.'); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onIndoorFocusedBuildingChanged was null, expected non-null int.', - ); - final IndoorBuildingDto? arg_building = - (args[1] as IndoorBuildingDto?); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onIndoorFocusedBuildingChanged was null, expected non-null int.'); + final IndoorBuildingDto? arg_building = (args[1] as IndoorBuildingDto?); try { api.onIndoorFocusedBuildingChanged(arg_viewId!, arg_building); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onIndoorActiveLevelChanged$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onIndoorActiveLevelChanged$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onIndoorActiveLevelChanged was null.', - ); + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onIndoorActiveLevelChanged was null.'); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onIndoorActiveLevelChanged was null, expected non-null int.', - ); - final IndoorBuildingDto? arg_building = - (args[1] as IndoorBuildingDto?); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onIndoorActiveLevelChanged was null, expected non-null int.'); + final IndoorBuildingDto? arg_building = (args[1] as IndoorBuildingDto?); try { api.onIndoorActiveLevelChanged(arg_viewId!, arg_building); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onCameraChanged$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onCameraChanged$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onCameraChanged was null.', - ); + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onCameraChanged was null.'); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onCameraChanged was null, expected non-null int.', - ); - final CameraEventTypeDto? arg_eventType = - (args[1] as CameraEventTypeDto?); - assert( - arg_eventType != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onCameraChanged was null, expected non-null CameraEventTypeDto.', - ); - final CameraPositionDto? arg_position = - (args[2] as CameraPositionDto?); - assert( - arg_position != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onCameraChanged was null, expected non-null CameraPositionDto.', - ); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onCameraChanged was null, expected non-null int.'); + final CameraEventTypeDto? arg_eventType = (args[1] as CameraEventTypeDto?); + assert(arg_eventType != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onCameraChanged was null, expected non-null CameraEventTypeDto.'); + final CameraPositionDto? arg_position = (args[2] as CameraPositionDto?); + assert(arg_position != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onCameraChanged was null, expected non-null CameraPositionDto.'); try { api.onCameraChanged(arg_viewId!, arg_eventType!, arg_position!); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } @@ -7814,34 +7238,23 @@ class NavigationSessionApi { /// Constructor for [NavigationSessionApi]. The [binaryMessenger] named argument is /// available for dependency injection. If it is left null, the default /// BinaryMessenger will be used which routes to the host platform. - NavigationSessionApi({ - BinaryMessenger? binaryMessenger, - String messageChannelSuffix = '', - }) : pigeonVar_binaryMessenger = binaryMessenger, - pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty - ? '.$messageChannelSuffix' - : ''; + NavigationSessionApi({BinaryMessenger? binaryMessenger, String messageChannelSuffix = ''}) + : pigeonVar_binaryMessenger = binaryMessenger, + pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; final BinaryMessenger? pigeonVar_binaryMessenger; static const MessageCodec pigeonChannelCodec = _PigeonCodec(); final String pigeonVar_messageChannelSuffix; - Future createNavigationSession( - bool abnormalTerminationReportingEnabled, - TaskRemovedBehaviorDto behavior, - ) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.createNavigationSession$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [abnormalTerminationReportingEnabled, behavior], + Future createNavigationSession(bool abnormalTerminationReportingEnabled, TaskRemovedBehaviorDto behavior) async { + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.createNavigationSession$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([abnormalTerminationReportingEnabled, behavior]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -7858,14 +7271,12 @@ class NavigationSessionApi { } Future isInitialized() async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.isInitialized$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.isInitialized$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -7888,17 +7299,13 @@ class NavigationSessionApi { } Future cleanup(bool resetSession) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.cleanup$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [resetSession], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.cleanup$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([resetSession]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -7914,28 +7321,14 @@ class NavigationSessionApi { } } - Future showTermsAndConditionsDialog( - String title, - String companyName, - bool shouldOnlyShowDriverAwarenessDisclaimer, - TermsAndConditionsUIParamsDto? uiParams, - ) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.showTermsAndConditionsDialog$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [ - title, - companyName, - shouldOnlyShowDriverAwarenessDisclaimer, - uiParams, - ], + Future showTermsAndConditionsDialog(String title, String companyName, bool shouldOnlyShowDriverAwarenessDisclaimer, TermsAndConditionsUIParamsDto? uiParams) async { + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.showTermsAndConditionsDialog$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([title, companyName, shouldOnlyShowDriverAwarenessDisclaimer, uiParams]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -7957,14 +7350,12 @@ class NavigationSessionApi { } Future areTermsAccepted() async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.areTermsAccepted$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.areTermsAccepted$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -7987,14 +7378,12 @@ class NavigationSessionApi { } Future resetTermsAccepted() async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.resetTermsAccepted$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.resetTermsAccepted$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -8012,14 +7401,12 @@ class NavigationSessionApi { } Future getNavSDKVersion() async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getNavSDKVersion$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getNavSDKVersion$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -8042,14 +7429,12 @@ class NavigationSessionApi { } Future isGuidanceRunning() async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.isGuidanceRunning$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.isGuidanceRunning$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -8072,14 +7457,12 @@ class NavigationSessionApi { } Future startGuidance() async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.startGuidance$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.startGuidance$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -8097,14 +7480,12 @@ class NavigationSessionApi { } Future stopGuidance() async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.stopGuidance$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.stopGuidance$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -8122,17 +7503,13 @@ class NavigationSessionApi { } Future setDestinations(DestinationsDto destinations) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setDestinations$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [destinations], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setDestinations$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([destinations]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -8154,14 +7531,12 @@ class NavigationSessionApi { } Future clearDestinations() async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.clearDestinations$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.clearDestinations$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -8178,16 +7553,13 @@ class NavigationSessionApi { } } - Future - continueToNextDestination() async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.continueToNextDestination$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + Future continueToNextDestination() async { + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.continueToNextDestination$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -8210,14 +7582,12 @@ class NavigationSessionApi { } Future getCurrentTimeAndDistance() async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getCurrentTimeAndDistance$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getCurrentTimeAndDistance$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -8239,20 +7609,14 @@ class NavigationSessionApi { } } - Future setAudioGuidance( - NavigationAudioGuidanceSettingsDto settings, - ) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setAudioGuidance$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [settings], + Future setAudioGuidance(NavigationAudioGuidanceSettingsDto settings) async { + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setAudioGuidance$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([settings]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -8269,17 +7633,13 @@ class NavigationSessionApi { } Future setSpeedAlertOptions(SpeedAlertOptionsDto options) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setSpeedAlertOptions$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [options], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setSpeedAlertOptions$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([options]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -8296,14 +7656,12 @@ class NavigationSessionApi { } Future> getRouteSegments() async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getRouteSegments$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getRouteSegments$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -8321,20 +7679,17 @@ class NavigationSessionApi { message: 'Host platform returned null value for non-null return value.', ); } else { - return (pigeonVar_replyList[0] as List?)! - .cast(); + return (pigeonVar_replyList[0] as List?)!.cast(); } } Future> getTraveledRoute() async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getTraveledRoute$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getTraveledRoute$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -8357,14 +7712,12 @@ class NavigationSessionApi { } Future getCurrentRouteSegment() async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getCurrentRouteSegment$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getCurrentRouteSegment$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -8382,17 +7735,13 @@ class NavigationSessionApi { } Future setUserLocation(LatLngDto location) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setUserLocation$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [location], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setUserLocation$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([location]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -8409,14 +7758,12 @@ class NavigationSessionApi { } Future removeUserLocation() async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.removeUserLocation$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.removeUserLocation$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -8434,14 +7781,12 @@ class NavigationSessionApi { } Future simulateLocationsAlongExistingRoute() async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongExistingRoute$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongExistingRoute$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -8458,20 +7803,14 @@ class NavigationSessionApi { } } - Future simulateLocationsAlongExistingRouteWithOptions( - SimulationOptionsDto options, - ) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongExistingRouteWithOptions$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [options], + Future simulateLocationsAlongExistingRouteWithOptions(SimulationOptionsDto options) async { + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongExistingRouteWithOptions$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([options]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -8487,20 +7826,14 @@ class NavigationSessionApi { } } - Future simulateLocationsAlongNewRoute( - List waypoints, - ) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRoute$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [waypoints], + Future simulateLocationsAlongNewRoute(List waypoints) async { + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRoute$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([waypoints]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -8521,21 +7854,14 @@ class NavigationSessionApi { } } - Future simulateLocationsAlongNewRouteWithRoutingOptions( - List waypoints, - RoutingOptionsDto routingOptions, - ) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRouteWithRoutingOptions$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [waypoints, routingOptions], + Future simulateLocationsAlongNewRouteWithRoutingOptions(List waypoints, RoutingOptionsDto routingOptions) async { + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRouteWithRoutingOptions$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([waypoints, routingOptions]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -8556,23 +7882,14 @@ class NavigationSessionApi { } } - Future - simulateLocationsAlongNewRouteWithRoutingAndSimulationOptions( - List waypoints, - RoutingOptionsDto routingOptions, - SimulationOptionsDto simulationOptions, - ) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRouteWithRoutingAndSimulationOptions$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [waypoints, routingOptions, simulationOptions], + Future simulateLocationsAlongNewRouteWithRoutingAndSimulationOptions(List waypoints, RoutingOptionsDto routingOptions, SimulationOptionsDto simulationOptions) async { + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRouteWithRoutingAndSimulationOptions$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([waypoints, routingOptions, simulationOptions]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -8594,14 +7911,12 @@ class NavigationSessionApi { } Future pauseSimulation() async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.pauseSimulation$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.pauseSimulation$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -8619,14 +7934,12 @@ class NavigationSessionApi { } Future resumeSimulation() async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.resumeSimulation$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.resumeSimulation$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -8645,17 +7958,13 @@ class NavigationSessionApi { /// iOS-only method. Future allowBackgroundLocationUpdates(bool allow) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.allowBackgroundLocationUpdates$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [allow], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.allowBackgroundLocationUpdates$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([allow]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -8672,14 +7981,12 @@ class NavigationSessionApi { } Future enableRoadSnappedLocationUpdates() async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.enableRoadSnappedLocationUpdates$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.enableRoadSnappedLocationUpdates$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -8697,14 +8004,12 @@ class NavigationSessionApi { } Future disableRoadSnappedLocationUpdates() async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.disableRoadSnappedLocationUpdates$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.disableRoadSnappedLocationUpdates$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -8721,21 +8026,14 @@ class NavigationSessionApi { } } - Future enableTurnByTurnNavigationEvents( - int? numNextStepsToPreview, - StepImageGenerationOptionsDto? options, - ) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.enableTurnByTurnNavigationEvents$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [numNextStepsToPreview, options], + Future enableTurnByTurnNavigationEvents(int? numNextStepsToPreview, StepImageGenerationOptionsDto? options) async { + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.enableTurnByTurnNavigationEvents$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([numNextStepsToPreview, options]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -8752,14 +8050,12 @@ class NavigationSessionApi { } Future disableTurnByTurnNavigationEvents() async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.disableTurnByTurnNavigationEvents$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.disableTurnByTurnNavigationEvents$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -8776,24 +8072,14 @@ class NavigationSessionApi { } } - Future registerRemainingTimeOrDistanceChangedListener( - int remainingTimeThresholdSeconds, - int remainingDistanceThresholdMeters, - ) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.registerRemainingTimeOrDistanceChangedListener$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [ - remainingTimeThresholdSeconds, - remainingDistanceThresholdMeters, - ], + Future registerRemainingTimeOrDistanceChangedListener(int remainingTimeThresholdSeconds, int remainingDistanceThresholdMeters) async { + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.registerRemainingTimeOrDistanceChangedListener$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([remainingTimeThresholdSeconds, remainingDistanceThresholdMeters]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -8823,11 +8109,7 @@ abstract class NavigationSessionEventApi { void onRouteChanged(); - void onRemainingTimeOrDistanceChanged( - double remainingTime, - double remainingDistance, - TrafficDelaySeverityDto delaySeverity, - ); + void onRemainingTimeOrDistanceChanged(double remainingTime, double remainingDistance, TrafficDelaySeverityDto delaySeverity); /// Android-only event. void onTrafficUpdated(); @@ -8848,159 +8130,112 @@ abstract class NavigationSessionEventApi { /// session starts with active guidance. void onNewNavigationSession(); - static void setUp( - NavigationSessionEventApi? api, { - BinaryMessenger? binaryMessenger, - String messageChannelSuffix = '', - }) { - messageChannelSuffix = messageChannelSuffix.isNotEmpty - ? '.$messageChannelSuffix' - : ''; + static void setUp(NavigationSessionEventApi? api, {BinaryMessenger? binaryMessenger, String messageChannelSuffix = '',}) { + messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onSpeedingUpdated$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onSpeedingUpdated$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onSpeedingUpdated was null.', - ); + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onSpeedingUpdated was null.'); final List args = (message as List?)!; - final SpeedingUpdatedEventDto? arg_msg = - (args[0] as SpeedingUpdatedEventDto?); - assert( - arg_msg != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onSpeedingUpdated was null, expected non-null SpeedingUpdatedEventDto.', - ); + final SpeedingUpdatedEventDto? arg_msg = (args[0] as SpeedingUpdatedEventDto?); + assert(arg_msg != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onSpeedingUpdated was null, expected non-null SpeedingUpdatedEventDto.'); try { api.onSpeedingUpdated(arg_msg!); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRoadSnappedLocationUpdated$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRoadSnappedLocationUpdated$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRoadSnappedLocationUpdated was null.', - ); + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRoadSnappedLocationUpdated was null.'); final List args = (message as List?)!; final LatLngDto? arg_location = (args[0] as LatLngDto?); - assert( - arg_location != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRoadSnappedLocationUpdated was null, expected non-null LatLngDto.', - ); + assert(arg_location != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRoadSnappedLocationUpdated was null, expected non-null LatLngDto.'); try { api.onRoadSnappedLocationUpdated(arg_location!); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRoadSnappedRawLocationUpdated$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRoadSnappedRawLocationUpdated$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRoadSnappedRawLocationUpdated was null.', - ); + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRoadSnappedRawLocationUpdated was null.'); final List args = (message as List?)!; final LatLngDto? arg_location = (args[0] as LatLngDto?); - assert( - arg_location != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRoadSnappedRawLocationUpdated was null, expected non-null LatLngDto.', - ); + assert(arg_location != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRoadSnappedRawLocationUpdated was null, expected non-null LatLngDto.'); try { api.onRoadSnappedRawLocationUpdated(arg_location!); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onArrival$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onArrival$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onArrival was null.', - ); + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onArrival was null.'); final List args = (message as List?)!; - final NavigationWaypointDto? arg_waypoint = - (args[0] as NavigationWaypointDto?); - assert( - arg_waypoint != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onArrival was null, expected non-null NavigationWaypointDto.', - ); + final NavigationWaypointDto? arg_waypoint = (args[0] as NavigationWaypointDto?); + assert(arg_waypoint != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onArrival was null, expected non-null NavigationWaypointDto.'); try { api.onArrival(arg_waypoint!); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRouteChanged$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRouteChanged$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { @@ -9010,70 +8245,47 @@ abstract class NavigationSessionEventApi { return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRemainingTimeOrDistanceChanged$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRemainingTimeOrDistanceChanged$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRemainingTimeOrDistanceChanged was null.', - ); + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRemainingTimeOrDistanceChanged was null.'); final List args = (message as List?)!; final double? arg_remainingTime = (args[0] as double?); - assert( - arg_remainingTime != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRemainingTimeOrDistanceChanged was null, expected non-null double.', - ); + assert(arg_remainingTime != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRemainingTimeOrDistanceChanged was null, expected non-null double.'); final double? arg_remainingDistance = (args[1] as double?); - assert( - arg_remainingDistance != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRemainingTimeOrDistanceChanged was null, expected non-null double.', - ); - final TrafficDelaySeverityDto? arg_delaySeverity = - (args[2] as TrafficDelaySeverityDto?); - assert( - arg_delaySeverity != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRemainingTimeOrDistanceChanged was null, expected non-null TrafficDelaySeverityDto.', - ); + assert(arg_remainingDistance != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRemainingTimeOrDistanceChanged was null, expected non-null double.'); + final TrafficDelaySeverityDto? arg_delaySeverity = (args[2] as TrafficDelaySeverityDto?); + assert(arg_delaySeverity != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRemainingTimeOrDistanceChanged was null, expected non-null TrafficDelaySeverityDto.'); try { - api.onRemainingTimeOrDistanceChanged( - arg_remainingTime!, - arg_remainingDistance!, - arg_delaySeverity!, - ); + api.onRemainingTimeOrDistanceChanged(arg_remainingTime!, arg_remainingDistance!, arg_delaySeverity!); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onTrafficUpdated$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onTrafficUpdated$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { @@ -9083,21 +8295,16 @@ abstract class NavigationSessionEventApi { return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRerouting$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRerouting$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { @@ -9107,124 +8314,91 @@ abstract class NavigationSessionEventApi { return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onGpsAvailabilityUpdate$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onGpsAvailabilityUpdate$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onGpsAvailabilityUpdate was null.', - ); + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onGpsAvailabilityUpdate was null.'); final List args = (message as List?)!; final bool? arg_available = (args[0] as bool?); - assert( - arg_available != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onGpsAvailabilityUpdate was null, expected non-null bool.', - ); + assert(arg_available != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onGpsAvailabilityUpdate was null, expected non-null bool.'); try { api.onGpsAvailabilityUpdate(arg_available!); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onGpsAvailabilityChange$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onGpsAvailabilityChange$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onGpsAvailabilityChange was null.', - ); + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onGpsAvailabilityChange was null.'); final List args = (message as List?)!; - final GpsAvailabilityChangeEventDto? arg_event = - (args[0] as GpsAvailabilityChangeEventDto?); - assert( - arg_event != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onGpsAvailabilityChange was null, expected non-null GpsAvailabilityChangeEventDto.', - ); + final GpsAvailabilityChangeEventDto? arg_event = (args[0] as GpsAvailabilityChangeEventDto?); + assert(arg_event != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onGpsAvailabilityChange was null, expected non-null GpsAvailabilityChangeEventDto.'); try { api.onGpsAvailabilityChange(arg_event!); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onNavInfo$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onNavInfo$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onNavInfo was null.', - ); + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onNavInfo was null.'); final List args = (message as List?)!; final NavInfoDto? arg_navInfo = (args[0] as NavInfoDto?); - assert( - arg_navInfo != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onNavInfo was null, expected non-null NavInfoDto.', - ); + assert(arg_navInfo != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onNavInfo was null, expected non-null NavInfoDto.'); try { api.onNavInfo(arg_navInfo!); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onNewNavigationSession$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onNewNavigationSession$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { @@ -9234,10 +8408,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())); } }); } @@ -9249,13 +8421,9 @@ class AutoMapViewApi { /// Constructor for [AutoMapViewApi]. The [binaryMessenger] named argument is /// available for dependency injection. If it is left null, the default /// BinaryMessenger will be used which routes to the host platform. - AutoMapViewApi({ - BinaryMessenger? binaryMessenger, - String messageChannelSuffix = '', - }) : pigeonVar_binaryMessenger = binaryMessenger, - pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty - ? '.$messageChannelSuffix' - : ''; + AutoMapViewApi({BinaryMessenger? binaryMessenger, String messageChannelSuffix = ''}) + : pigeonVar_binaryMessenger = binaryMessenger, + pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; final BinaryMessenger? pigeonVar_binaryMessenger; static const MessageCodec pigeonChannelCodec = _PigeonCodec(); @@ -9266,17 +8434,13 @@ class AutoMapViewApi { /// Should be called before the Auto/CarPlay screen is created. /// This allows customization of mapId and basic map settings. Future setAutoMapOptions(AutoMapOptionsDto mapOptions) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setAutoMapOptions$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [mapOptions], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setAutoMapOptions$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([mapOptions]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -9293,14 +8457,12 @@ class AutoMapViewApi { } Future isMyLocationEnabled() async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isMyLocationEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isMyLocationEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -9323,17 +8485,13 @@ class AutoMapViewApi { } Future setMyLocationEnabled(bool enabled) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMyLocationEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [enabled], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMyLocationEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([enabled]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -9350,14 +8508,12 @@ class AutoMapViewApi { } Future getMyLocation() async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMyLocation$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMyLocation$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -9375,14 +8531,12 @@ class AutoMapViewApi { } Future getMapType() async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMapType$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMapType$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -9405,17 +8559,13 @@ class AutoMapViewApi { } Future setMapType(MapTypeDto mapType) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapType$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [mapType], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapType$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([mapType]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -9432,17 +8582,13 @@ class AutoMapViewApi { } Future setMapStyle(String styleJson) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapStyle$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [styleJson], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapStyle$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([styleJson]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -9459,14 +8605,12 @@ class AutoMapViewApi { } Future getCameraPosition() async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getCameraPosition$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getCameraPosition$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -9489,14 +8633,12 @@ class AutoMapViewApi { } Future getVisibleRegion() async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getVisibleRegion$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getVisibleRegion$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -9518,21 +8660,14 @@ class AutoMapViewApi { } } - Future followMyLocation( - CameraPerspectiveDto perspective, - double? zoomLevel, - ) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.followMyLocation$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [perspective, zoomLevel], + Future followMyLocation(CameraPerspectiveDto perspective, double? zoomLevel) async { + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.followMyLocation$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([perspective, zoomLevel]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -9548,21 +8683,14 @@ class AutoMapViewApi { } } - Future animateCameraToCameraPosition( - CameraPositionDto cameraPosition, - int? duration, - ) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToCameraPosition$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [cameraPosition, duration], + Future animateCameraToCameraPosition(CameraPositionDto cameraPosition, int? duration) async { + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToCameraPosition$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([cameraPosition, duration]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -9584,17 +8712,13 @@ class AutoMapViewApi { } Future animateCameraToLatLng(LatLngDto point, int? duration) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLng$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [point, duration], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLng$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([point, duration]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -9615,22 +8739,14 @@ class AutoMapViewApi { } } - Future animateCameraToLatLngBounds( - LatLngBoundsDto bounds, - double padding, - int? duration, - ) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLngBounds$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [bounds, padding, duration], + Future animateCameraToLatLngBounds(LatLngBoundsDto bounds, double padding, int? duration) async { + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLngBounds$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([bounds, padding, duration]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -9651,22 +8767,14 @@ class AutoMapViewApi { } } - Future animateCameraToLatLngZoom( - LatLngDto point, - double zoom, - int? duration, - ) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLngZoom$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [point, zoom, duration], + Future animateCameraToLatLngZoom(LatLngDto point, double zoom, int? duration) async { + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLngZoom$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([point, zoom, duration]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -9687,22 +8795,14 @@ class AutoMapViewApi { } } - Future animateCameraByScroll( - double scrollByDx, - double scrollByDy, - int? duration, - ) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraByScroll$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [scrollByDx, scrollByDy, duration], + Future animateCameraByScroll(double scrollByDx, double scrollByDy, int? duration) async { + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraByScroll$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([scrollByDx, scrollByDy, duration]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -9723,23 +8823,14 @@ class AutoMapViewApi { } } - Future animateCameraByZoom( - double zoomBy, - double? focusDx, - double? focusDy, - int? duration, - ) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraByZoom$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [zoomBy, focusDx, focusDy, duration], + Future animateCameraByZoom(double zoomBy, double? focusDx, double? focusDy, int? duration) async { + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraByZoom$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([zoomBy, focusDx, focusDy, duration]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -9761,17 +8852,13 @@ class AutoMapViewApi { } Future animateCameraToZoom(double zoom, int? duration) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToZoom$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [zoom, duration], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToZoom$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([zoom, duration]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -9792,20 +8879,14 @@ class AutoMapViewApi { } } - Future moveCameraToCameraPosition( - CameraPositionDto cameraPosition, - ) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToCameraPosition$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [cameraPosition], + Future moveCameraToCameraPosition(CameraPositionDto cameraPosition) async { + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToCameraPosition$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([cameraPosition]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -9822,17 +8903,13 @@ class AutoMapViewApi { } Future moveCameraToLatLng(LatLngDto point) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLng$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [point], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLng$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([point]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -9848,21 +8925,14 @@ class AutoMapViewApi { } } - Future moveCameraToLatLngBounds( - LatLngBoundsDto bounds, - double padding, - ) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLngBounds$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [bounds, padding], + Future moveCameraToLatLngBounds(LatLngBoundsDto bounds, double padding) async { + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLngBounds$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([bounds, padding]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -9879,17 +8949,13 @@ class AutoMapViewApi { } Future moveCameraToLatLngZoom(LatLngDto point, double zoom) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLngZoom$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [point, zoom], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLngZoom$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([point, zoom]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -9906,17 +8972,13 @@ class AutoMapViewApi { } Future moveCameraByScroll(double scrollByDx, double scrollByDy) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraByScroll$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [scrollByDx, scrollByDy], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraByScroll$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([scrollByDx, scrollByDy]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -9932,22 +8994,14 @@ class AutoMapViewApi { } } - Future moveCameraByZoom( - double zoomBy, - double? focusDx, - double? focusDy, - ) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraByZoom$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [zoomBy, focusDx, focusDy], + Future moveCameraByZoom(double zoomBy, double? focusDx, double? focusDy) async { + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraByZoom$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([zoomBy, focusDx, focusDy]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -9964,17 +9018,13 @@ class AutoMapViewApi { } Future moveCameraToZoom(double zoom) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToZoom$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [zoom], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToZoom$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([zoom]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -9991,14 +9041,12 @@ class AutoMapViewApi { } Future getMinZoomPreference() async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMinZoomPreference$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMinZoomPreference$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -10021,14 +9069,12 @@ class AutoMapViewApi { } Future getMaxZoomPreference() async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMaxZoomPreference$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMaxZoomPreference$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -10051,14 +9097,12 @@ class AutoMapViewApi { } Future resetMinMaxZoomPreference() async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.resetMinMaxZoomPreference$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.resetMinMaxZoomPreference$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -10076,17 +9120,13 @@ class AutoMapViewApi { } Future setMinZoomPreference(double minZoomPreference) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMinZoomPreference$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [minZoomPreference], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMinZoomPreference$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([minZoomPreference]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -10103,17 +9143,13 @@ class AutoMapViewApi { } Future setMaxZoomPreference(double maxZoomPreference) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMaxZoomPreference$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [maxZoomPreference], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMaxZoomPreference$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([maxZoomPreference]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -10130,17 +9166,13 @@ class AutoMapViewApi { } Future setMyLocationButtonEnabled(bool enabled) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMyLocationButtonEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [enabled], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMyLocationButtonEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([enabled]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -10156,20 +9188,14 @@ class AutoMapViewApi { } } - Future setConsumeMyLocationButtonClickEventsEnabled( - bool enabled, - ) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setConsumeMyLocationButtonClickEventsEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [enabled], + Future setConsumeMyLocationButtonClickEventsEnabled(bool enabled) async { + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setConsumeMyLocationButtonClickEventsEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([enabled]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -10186,17 +9212,13 @@ class AutoMapViewApi { } Future setZoomGesturesEnabled(bool enabled) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setZoomGesturesEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [enabled], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setZoomGesturesEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([enabled]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -10213,17 +9235,13 @@ class AutoMapViewApi { } Future setZoomControlsEnabled(bool enabled) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setZoomControlsEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [enabled], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setZoomControlsEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([enabled]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -10240,17 +9258,13 @@ class AutoMapViewApi { } Future setCompassEnabled(bool enabled) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setCompassEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [enabled], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setCompassEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([enabled]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -10267,17 +9281,13 @@ class AutoMapViewApi { } Future setRotateGesturesEnabled(bool enabled) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setRotateGesturesEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [enabled], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setRotateGesturesEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([enabled]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -10294,17 +9304,13 @@ class AutoMapViewApi { } Future setScrollGesturesEnabled(bool enabled) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setScrollGesturesEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [enabled], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setScrollGesturesEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([enabled]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -10321,17 +9327,13 @@ class AutoMapViewApi { } Future setScrollGesturesDuringRotateOrZoomEnabled(bool enabled) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setScrollGesturesDuringRotateOrZoomEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [enabled], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setScrollGesturesDuringRotateOrZoomEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([enabled]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -10348,17 +9350,13 @@ class AutoMapViewApi { } Future setTiltGesturesEnabled(bool enabled) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTiltGesturesEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [enabled], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTiltGesturesEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([enabled]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -10375,17 +9373,13 @@ class AutoMapViewApi { } Future setMapToolbarEnabled(bool enabled) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapToolbarEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [enabled], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapToolbarEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([enabled]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -10402,17 +9396,13 @@ class AutoMapViewApi { } Future setTrafficEnabled(bool enabled) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [enabled], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([enabled]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -10429,17 +9419,13 @@ class AutoMapViewApi { } Future setTrafficPromptsEnabled(bool enabled) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficPromptsEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [enabled], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficPromptsEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([enabled]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -10456,17 +9442,13 @@ class AutoMapViewApi { } Future setTrafficIncidentCardsEnabled(bool enabled) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficIncidentCardsEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [enabled], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficIncidentCardsEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([enabled]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -10483,17 +9465,13 @@ class AutoMapViewApi { } Future setNavigationTripProgressBarEnabled(bool enabled) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setNavigationTripProgressBarEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [enabled], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setNavigationTripProgressBarEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([enabled]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -10510,17 +9488,13 @@ class AutoMapViewApi { } Future setSpeedLimitIconEnabled(bool enabled) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setSpeedLimitIconEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [enabled], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setSpeedLimitIconEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([enabled]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -10537,17 +9511,13 @@ class AutoMapViewApi { } Future setSpeedometerEnabled(bool enabled) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setSpeedometerEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [enabled], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setSpeedometerEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([enabled]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -10564,17 +9534,13 @@ class AutoMapViewApi { } Future setNavigationUIEnabled(bool enabled) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setNavigationUIEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [enabled], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setNavigationUIEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([enabled]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -10591,14 +9557,12 @@ class AutoMapViewApi { } Future isMyLocationButtonEnabled() async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isMyLocationButtonEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isMyLocationButtonEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -10621,14 +9585,12 @@ class AutoMapViewApi { } Future isConsumeMyLocationButtonClickEventsEnabled() async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isConsumeMyLocationButtonClickEventsEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isConsumeMyLocationButtonClickEventsEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -10651,14 +9613,12 @@ class AutoMapViewApi { } Future isZoomGesturesEnabled() async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isZoomGesturesEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isZoomGesturesEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -10681,14 +9641,12 @@ class AutoMapViewApi { } Future isZoomControlsEnabled() async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isZoomControlsEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isZoomControlsEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -10711,14 +9669,12 @@ class AutoMapViewApi { } Future isCompassEnabled() async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isCompassEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isCompassEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -10741,14 +9697,12 @@ class AutoMapViewApi { } Future isRotateGesturesEnabled() async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isRotateGesturesEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isRotateGesturesEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -10771,14 +9725,12 @@ class AutoMapViewApi { } Future isScrollGesturesEnabled() async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isScrollGesturesEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isScrollGesturesEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -10801,14 +9753,12 @@ class AutoMapViewApi { } Future isScrollGesturesEnabledDuringRotateOrZoom() async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isScrollGesturesEnabledDuringRotateOrZoom$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isScrollGesturesEnabledDuringRotateOrZoom$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -10831,14 +9781,12 @@ class AutoMapViewApi { } Future isTiltGesturesEnabled() async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTiltGesturesEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTiltGesturesEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -10861,14 +9809,12 @@ class AutoMapViewApi { } Future isMapToolbarEnabled() async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isMapToolbarEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isMapToolbarEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -10891,14 +9837,12 @@ class AutoMapViewApi { } Future isTrafficEnabled() async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTrafficEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTrafficEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -10921,14 +9865,12 @@ class AutoMapViewApi { } Future isTrafficPromptsEnabled() async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTrafficPromptsEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTrafficPromptsEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -10951,14 +9893,12 @@ class AutoMapViewApi { } Future isTrafficIncidentCardsEnabled() async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTrafficIncidentCardsEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTrafficIncidentCardsEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -10981,14 +9921,12 @@ class AutoMapViewApi { } Future isNavigationTripProgressBarEnabled() async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isNavigationTripProgressBarEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isNavigationTripProgressBarEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -11011,14 +9949,12 @@ class AutoMapViewApi { } Future isSpeedLimitIconEnabled() async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isSpeedLimitIconEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isSpeedLimitIconEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -11041,14 +9977,12 @@ class AutoMapViewApi { } Future isSpeedometerEnabled() async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isSpeedometerEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isSpeedometerEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -11071,14 +10005,12 @@ class AutoMapViewApi { } Future isNavigationUIEnabled() async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isNavigationUIEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isNavigationUIEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -11101,14 +10033,12 @@ class AutoMapViewApi { } Future isIndoorEnabled() async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isIndoorEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isIndoorEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -11131,17 +10061,13 @@ class AutoMapViewApi { } Future setIndoorEnabled(bool enabled) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setIndoorEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [enabled], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setIndoorEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([enabled]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -11158,14 +10084,12 @@ class AutoMapViewApi { } Future getFocusedIndoorBuilding() async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getFocusedIndoorBuilding$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getFocusedIndoorBuilding$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -11183,17 +10107,13 @@ class AutoMapViewApi { } Future activateIndoorLevel(int levelIndex) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.activateIndoorLevel$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [levelIndex], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.activateIndoorLevel$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([levelIndex]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -11210,14 +10130,12 @@ class AutoMapViewApi { } Future showRouteOverview() async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.showRouteOverview$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.showRouteOverview$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -11235,14 +10153,12 @@ class AutoMapViewApi { } Future> getMarkers() async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMarkers$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMarkers$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -11265,17 +10181,13 @@ class AutoMapViewApi { } Future> addMarkers(List markers) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addMarkers$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [markers], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addMarkers$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([markers]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -11297,17 +10209,13 @@ class AutoMapViewApi { } Future> updateMarkers(List markers) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updateMarkers$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [markers], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updateMarkers$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([markers]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -11329,17 +10237,13 @@ class AutoMapViewApi { } Future removeMarkers(List markers) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removeMarkers$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [markers], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removeMarkers$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([markers]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -11356,14 +10260,12 @@ class AutoMapViewApi { } Future clearMarkers() async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearMarkers$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearMarkers$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -11381,14 +10283,12 @@ class AutoMapViewApi { } Future clear() async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clear$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clear$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -11406,14 +10306,12 @@ class AutoMapViewApi { } Future> getPolygons() async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getPolygons$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getPolygons$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -11436,17 +10334,13 @@ class AutoMapViewApi { } Future> addPolygons(List polygons) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addPolygons$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [polygons], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addPolygons$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([polygons]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -11468,17 +10362,13 @@ class AutoMapViewApi { } Future> updatePolygons(List polygons) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updatePolygons$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [polygons], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updatePolygons$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([polygons]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -11500,17 +10390,13 @@ class AutoMapViewApi { } Future removePolygons(List polygons) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removePolygons$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [polygons], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removePolygons$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([polygons]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -11527,14 +10413,12 @@ class AutoMapViewApi { } Future clearPolygons() async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearPolygons$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearPolygons$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -11552,14 +10436,12 @@ class AutoMapViewApi { } Future> getPolylines() async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getPolylines$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getPolylines$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -11582,17 +10464,13 @@ class AutoMapViewApi { } Future> addPolylines(List polylines) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addPolylines$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [polylines], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addPolylines$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([polylines]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -11614,17 +10492,13 @@ class AutoMapViewApi { } Future> updatePolylines(List polylines) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updatePolylines$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [polylines], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updatePolylines$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([polylines]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -11646,17 +10520,13 @@ class AutoMapViewApi { } Future removePolylines(List polylines) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removePolylines$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [polylines], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removePolylines$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([polylines]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -11673,14 +10543,12 @@ class AutoMapViewApi { } Future clearPolylines() async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearPolylines$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearPolylines$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -11698,14 +10566,12 @@ class AutoMapViewApi { } Future> getCircles() async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getCircles$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getCircles$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -11728,17 +10594,13 @@ class AutoMapViewApi { } Future> addCircles(List circles) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addCircles$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [circles], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addCircles$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([circles]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -11760,17 +10622,13 @@ class AutoMapViewApi { } Future> updateCircles(List circles) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updateCircles$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [circles], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updateCircles$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([circles]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -11792,17 +10650,13 @@ class AutoMapViewApi { } Future removeCircles(List circles) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removeCircles$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [circles], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removeCircles$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([circles]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -11819,14 +10673,12 @@ class AutoMapViewApi { } Future clearCircles() async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearCircles$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearCircles$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -11844,14 +10696,12 @@ class AutoMapViewApi { } Future enableOnCameraChangedEvents() async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.enableOnCameraChangedEvents$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.enableOnCameraChangedEvents$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -11869,14 +10719,12 @@ class AutoMapViewApi { } Future isAutoScreenAvailable() async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isAutoScreenAvailable$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isAutoScreenAvailable$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -11899,17 +10747,13 @@ class AutoMapViewApi { } Future setPadding(MapPaddingDto padding) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setPadding$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [padding], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setPadding$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([padding]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -11926,14 +10770,12 @@ class AutoMapViewApi { } Future getPadding() async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getPadding$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getPadding$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -11956,14 +10798,12 @@ class AutoMapViewApi { } Future getMapColorScheme() async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMapColorScheme$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMapColorScheme$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -11986,17 +10826,13 @@ class AutoMapViewApi { } Future setMapColorScheme(MapColorSchemeDto mapColorScheme) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapColorScheme$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [mapColorScheme], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapColorScheme$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([mapColorScheme]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -12013,14 +10849,12 @@ class AutoMapViewApi { } Future getForceNightMode() async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getForceNightMode$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getForceNightMode$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -12042,20 +10876,14 @@ class AutoMapViewApi { } } - Future setForceNightMode( - NavigationForceNightModeDto forceNightMode, - ) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setForceNightMode$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [forceNightMode], + Future setForceNightMode(NavigationForceNightModeDto forceNightMode) async { + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setForceNightMode$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([forceNightMode]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -12072,17 +10900,13 @@ class AutoMapViewApi { } Future sendCustomNavigationAutoEvent(String event, Object data) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.sendCustomNavigationAutoEvent$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [event, data], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.sendCustomNavigationAutoEvent$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([event, data]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -12114,213 +10938,153 @@ abstract class AutoViewEventApi { void onIndoorActiveLevelChanged(IndoorBuildingDto? building); - static void setUp( - AutoViewEventApi? api, { - BinaryMessenger? binaryMessenger, - String messageChannelSuffix = '', - }) { - messageChannelSuffix = messageChannelSuffix.isNotEmpty - ? '.$messageChannelSuffix' - : ''; + static void setUp(AutoViewEventApi? api, {BinaryMessenger? binaryMessenger, String messageChannelSuffix = '',}) { + messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onCustomNavigationAutoEvent$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onCustomNavigationAutoEvent$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onCustomNavigationAutoEvent was null.', - ); + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onCustomNavigationAutoEvent was null.'); final List args = (message as List?)!; final String? arg_event = (args[0] as String?); - assert( - arg_event != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onCustomNavigationAutoEvent was null, expected non-null String.', - ); + assert(arg_event != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onCustomNavigationAutoEvent was null, expected non-null String.'); final Object? arg_data = (args[1] as Object?); - assert( - arg_data != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onCustomNavigationAutoEvent was null, expected non-null Object.', - ); + assert(arg_data != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onCustomNavigationAutoEvent was null, expected non-null Object.'); try { api.onCustomNavigationAutoEvent(arg_event!, arg_data!); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onAutoScreenAvailabilityChanged$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onAutoScreenAvailabilityChanged$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onAutoScreenAvailabilityChanged was null.', - ); + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onAutoScreenAvailabilityChanged was null.'); final List args = (message as List?)!; final bool? arg_isAvailable = (args[0] as bool?); - assert( - arg_isAvailable != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onAutoScreenAvailabilityChanged was null, expected non-null bool.', - ); + assert(arg_isAvailable != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onAutoScreenAvailabilityChanged was null, expected non-null bool.'); try { api.onAutoScreenAvailabilityChanged(arg_isAvailable!); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onPromptVisibilityChanged$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onPromptVisibilityChanged$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onPromptVisibilityChanged was null.', - ); + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onPromptVisibilityChanged was null.'); final List args = (message as List?)!; final bool? arg_promptVisible = (args[0] as bool?); - assert( - arg_promptVisible != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onPromptVisibilityChanged was null, expected non-null bool.', - ); + assert(arg_promptVisible != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onPromptVisibilityChanged was null, expected non-null bool.'); try { api.onPromptVisibilityChanged(arg_promptVisible!); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onNavigationUIEnabledChanged$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onNavigationUIEnabledChanged$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onNavigationUIEnabledChanged was null.', - ); + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onNavigationUIEnabledChanged was null.'); final List args = (message as List?)!; final bool? arg_navigationUIEnabled = (args[0] as bool?); - assert( - arg_navigationUIEnabled != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onNavigationUIEnabledChanged was null, expected non-null bool.', - ); + assert(arg_navigationUIEnabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onNavigationUIEnabledChanged was null, expected non-null bool.'); try { api.onNavigationUIEnabledChanged(arg_navigationUIEnabled!); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onIndoorFocusedBuildingChanged$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onIndoorFocusedBuildingChanged$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onIndoorFocusedBuildingChanged was null.', - ); + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onIndoorFocusedBuildingChanged was null.'); final List args = (message as List?)!; - final IndoorBuildingDto? arg_building = - (args[0] as IndoorBuildingDto?); + final IndoorBuildingDto? arg_building = (args[0] as IndoorBuildingDto?); try { api.onIndoorFocusedBuildingChanged(arg_building); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onIndoorActiveLevelChanged$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onIndoorActiveLevelChanged$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onIndoorActiveLevelChanged was null.', - ); + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onIndoorActiveLevelChanged was null.'); final List args = (message as List?)!; - final IndoorBuildingDto? arg_building = - (args[0] as IndoorBuildingDto?); + final IndoorBuildingDto? arg_building = (args[0] as IndoorBuildingDto?); try { api.onIndoorActiveLevelChanged(arg_building); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } @@ -12332,13 +11096,9 @@ class NavigationInspector { /// Constructor for [NavigationInspector]. The [binaryMessenger] named argument is /// available for dependency injection. If it is left null, the default /// BinaryMessenger will be used which routes to the host platform. - NavigationInspector({ - BinaryMessenger? binaryMessenger, - String messageChannelSuffix = '', - }) : pigeonVar_binaryMessenger = binaryMessenger, - pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty - ? '.$messageChannelSuffix' - : ''; + NavigationInspector({BinaryMessenger? binaryMessenger, String messageChannelSuffix = ''}) + : pigeonVar_binaryMessenger = binaryMessenger, + pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; final BinaryMessenger? pigeonVar_binaryMessenger; static const MessageCodec pigeonChannelCodec = _PigeonCodec(); @@ -12346,17 +11106,13 @@ class NavigationInspector { final String pigeonVar_messageChannelSuffix; Future isViewAttachedToSession(int viewId) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.NavigationInspector.isViewAttachedToSession$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = - BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send( - [viewId], + final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationInspector.isViewAttachedToSession$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { diff --git a/lib/src/types/navigation_header_styling_options.dart b/lib/src/types/navigation_header_styling_options.dart new file mode 100644 index 00000000..a37e63f3 --- /dev/null +++ b/lib/src/types/navigation_header_styling_options.dart @@ -0,0 +1,110 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +import 'package:flutter/widgets.dart'; + +import '../method_channel/messages.g.dart'; + +/// Background colors for the native navigation header. +/// {@category Navigation View} +class NavigationHeaderStylingOptions { + /// Creates navigation header styling options. + const NavigationHeaderStylingOptions({ + this.primaryDayModeBackgroundColor, + this.secondaryDayModeBackgroundColor, + this.primaryNightModeBackgroundColor, + this.secondaryNightModeBackgroundColor, + }); + + /// Background color of the primary header area in day mode. + final Color? primaryDayModeBackgroundColor; + + /// Background color of the secondary header area in day mode. + final Color? secondaryDayModeBackgroundColor; + + /// Background color of the primary header area in night mode. + final Color? primaryNightModeBackgroundColor; + + /// Background color of the secondary header area in night mode. + final Color? secondaryNightModeBackgroundColor; + + /// Returns a copy with selected fields replaced. + NavigationHeaderStylingOptions copyWith({ + Color? primaryDayModeBackgroundColor, + Color? secondaryDayModeBackgroundColor, + Color? primaryNightModeBackgroundColor, + Color? secondaryNightModeBackgroundColor, + }) { + return NavigationHeaderStylingOptions( + primaryDayModeBackgroundColor: + primaryDayModeBackgroundColor ?? this.primaryDayModeBackgroundColor, + secondaryDayModeBackgroundColor: + secondaryDayModeBackgroundColor ?? + this.secondaryDayModeBackgroundColor, + primaryNightModeBackgroundColor: + primaryNightModeBackgroundColor ?? + this.primaryNightModeBackgroundColor, + secondaryNightModeBackgroundColor: + secondaryNightModeBackgroundColor ?? + this.secondaryNightModeBackgroundColor, + ); + } + + /// Converts this object to a pigeon DTO. + NavigationHeaderStylingOptionsDto toDto() { + return NavigationHeaderStylingOptionsDto( + primaryDayModeBackgroundColor: primaryDayModeBackgroundColor?.toARGB32(), + secondaryDayModeBackgroundColor: secondaryDayModeBackgroundColor + ?.toARGB32(), + primaryNightModeBackgroundColor: primaryNightModeBackgroundColor + ?.toARGB32(), + secondaryNightModeBackgroundColor: secondaryNightModeBackgroundColor + ?.toARGB32(), + ); + } + + @override + bool operator ==(Object other) { + if (identical(this, other)) { + return true; + } + + return other is NavigationHeaderStylingOptions && + other.primaryDayModeBackgroundColor == primaryDayModeBackgroundColor && + other.secondaryDayModeBackgroundColor == + secondaryDayModeBackgroundColor && + other.primaryNightModeBackgroundColor == + primaryNightModeBackgroundColor && + other.secondaryNightModeBackgroundColor == + secondaryNightModeBackgroundColor; + } + + @override + int get hashCode => Object.hash( + primaryDayModeBackgroundColor, + secondaryDayModeBackgroundColor, + primaryNightModeBackgroundColor, + secondaryNightModeBackgroundColor, + ); + + @override + String toString() { + return 'NavigationHeaderStylingOptions(' + 'primaryDayModeBackgroundColor: $primaryDayModeBackgroundColor, ' + 'secondaryDayModeBackgroundColor: $secondaryDayModeBackgroundColor, ' + 'primaryNightModeBackgroundColor: $primaryNightModeBackgroundColor, ' + 'secondaryNightModeBackgroundColor: $secondaryNightModeBackgroundColor' + ')'; + } +} diff --git a/lib/src/types/types.dart b/lib/src/types/types.dart index d483b364..3f2af579 100644 --- a/lib/src/types/types.dart +++ b/lib/src/types/types.dart @@ -20,6 +20,7 @@ export 'lat_lng_bounds.dart'; export 'markers.dart'; export 'navigation.dart'; export 'navigation_destinations.dart'; +export 'navigation_header_styling_options.dart'; export 'navigation_initialization_params.dart'; export 'navigation_view_types.dart'; export 'navinfo.dart'; diff --git a/pigeons/messages.dart b/pigeons/messages.dart index b6193cda..2a0ec6ed 100644 --- a/pigeons/messages.dart +++ b/pigeons/messages.dart @@ -525,6 +525,24 @@ class MapPaddingDto { final int right; } +/// Navigation header background colors. +/// +/// All color values are 32-bit ARGB integers (format: 0xAARRGGBB). +/// Any null value resets that specific color to the native SDK default. +class NavigationHeaderStylingOptionsDto { + NavigationHeaderStylingOptionsDto({ + this.primaryDayModeBackgroundColor, + this.secondaryDayModeBackgroundColor, + this.primaryNightModeBackgroundColor, + this.secondaryNightModeBackgroundColor, + }); + + final int? primaryDayModeBackgroundColor; + final int? secondaryDayModeBackgroundColor; + final int? primaryNightModeBackgroundColor; + final int? secondaryNightModeBackgroundColor; +} + @HostApi(dartHostTestHandler: 'TestMapViewApi') abstract class MapViewApi { @async @@ -544,6 +562,14 @@ abstract class MapViewApi { bool isNavigationHeaderEnabled(int viewId); void setNavigationHeaderEnabled(int viewId, bool enabled); + NavigationHeaderStylingOptionsDto getNavigationHeaderStylingOptions( + int viewId, + ); + void setNavigationHeaderStylingOptions( + int viewId, + NavigationHeaderStylingOptionsDto stylingOptions, + ); + bool isNavigationFooterEnabled(int viewId); void setNavigationFooterEnabled(int viewId, bool enabled); diff --git a/test/google_navigation_flutter_test.dart b/test/google_navigation_flutter_test.dart index 41d2095c..a0c83a9f 100644 --- a/test/google_navigation_flutter_test.dart +++ b/test/google_navigation_flutter_test.dart @@ -690,6 +690,14 @@ void main() { ), ); when(viewMockApi.isNavigationHeaderEnabled(any)).thenReturn(true); + when(viewMockApi.getNavigationHeaderStylingOptions(any)).thenReturn( + NavigationHeaderStylingOptionsDto( + primaryDayModeBackgroundColor: Colors.blue.toARGB32(), + secondaryDayModeBackgroundColor: Colors.red.toARGB32(), + primaryNightModeBackgroundColor: Colors.black.toARGB32(), + secondaryNightModeBackgroundColor: Colors.grey.toARGB32(), + ), + ); when(viewMockApi.isNavigationFooterEnabled(any)).thenReturn(true); when(viewMockApi.isSpeedLimitIconEnabled(any)).thenReturn(true); when(viewMockApi.isSpeedometerEnabled(any)).thenReturn(true); @@ -723,6 +731,15 @@ void main() { expect(focusedIndoorBuilding.activeLevelIndex, 1); await controller.activateIndoorLevel(focusedIndoorBuilding.levels[0]); expect(await controller.isNavigationHeaderEnabled(), true); + expect( + await controller.getNavigationHeaderStylingOptions(), + const NavigationHeaderStylingOptions( + primaryDayModeBackgroundColor: Colors.blue, + secondaryDayModeBackgroundColor: Colors.red, + primaryNightModeBackgroundColor: Colors.black, + secondaryNightModeBackgroundColor: Colors.grey, + ), + ); expect(await controller.isNavigationFooterEnabled(), true); expect(await controller.isSpeedLimitIconEnabled(), true); expect(await controller.isSpeedometerEnabled(), true); @@ -750,6 +767,7 @@ void main() { verify(viewMockApi.getFocusedIndoorBuilding(captureAny)); verify(viewMockApi.activateIndoorLevel(captureAny, captureAny)); verify(viewMockApi.isNavigationHeaderEnabled(captureAny)); + verify(viewMockApi.getNavigationHeaderStylingOptions(captureAny)); verify(viewMockApi.isNavigationFooterEnabled(captureAny)); verify(viewMockApi.isSpeedLimitIconEnabled(captureAny)); verify(viewMockApi.isSpeedometerEnabled(captureAny)); @@ -776,6 +794,14 @@ void main() { await controller.setIndoorEnabled(true); await controller.settings.setIndoorLevelPickerEnabled(true); await controller.setNavigationHeaderEnabled(true); + await controller.setNavigationHeaderStylingOptions( + const NavigationHeaderStylingOptions( + primaryDayModeBackgroundColor: Colors.green, + secondaryDayModeBackgroundColor: Colors.orange, + primaryNightModeBackgroundColor: Colors.white, + secondaryNightModeBackgroundColor: Colors.purple, + ), + ); await controller.setNavigationFooterEnabled(true); await controller.setSpeedLimitIconEnabled(true); await controller.setSpeedometerEnabled(true); @@ -870,6 +896,31 @@ void main() { ), true, ); + final VerificationResult headerStylingResult = verify( + viewMockApi.setNavigationHeaderStylingOptions( + captureAny, + captureAny, + ), + ); + final NavigationHeaderStylingOptionsDto headerStylingOut = + headerStylingResult.captured[1] + as NavigationHeaderStylingOptionsDto; + expect( + headerStylingOut.primaryDayModeBackgroundColor, + Colors.green.toARGB32(), + ); + expect( + headerStylingOut.secondaryDayModeBackgroundColor, + Colors.orange.toARGB32(), + ); + expect( + headerStylingOut.primaryNightModeBackgroundColor, + Colors.white.toARGB32(), + ); + expect( + headerStylingOut.secondaryNightModeBackgroundColor, + Colors.purple.toARGB32(), + ); verifyEnabled( verify( viewMockApi.setNavigationFooterEnabled(captureAny, captureAny), diff --git a/test/messages_test.g.dart b/test/messages_test.g.dart index e5f04029..e3e70235 100644 --- a/test/messages_test.g.dart +++ b/test/messages_test.g.dart @@ -24,6 +24,7 @@ import 'package:flutter_test/flutter_test.dart'; import 'package:google_navigation_flutter/src/method_channel/messages.g.dart'; + class _PigeonCodec extends StandardMessageCodec { const _PigeonCodec(); @override @@ -31,229 +32,231 @@ class _PigeonCodec extends StandardMessageCodec { if (value is int) { buffer.putUint8(4); buffer.putInt64(value); - } else if (value is MapViewTypeDto) { + } else if (value is MapViewTypeDto) { buffer.putUint8(129); writeValue(buffer, value.index); - } else if (value is NavigationUIEnabledPreferenceDto) { + } else if (value is NavigationUIEnabledPreferenceDto) { buffer.putUint8(130); writeValue(buffer, value.index); - } else if (value is MapTypeDto) { + } else if (value is MapTypeDto) { buffer.putUint8(131); writeValue(buffer, value.index); - } else if (value is MapColorSchemeDto) { + } else if (value is MapColorSchemeDto) { buffer.putUint8(132); writeValue(buffer, value.index); - } else if (value is NavigationForceNightModeDto) { + } else if (value is NavigationForceNightModeDto) { buffer.putUint8(133); writeValue(buffer, value.index); - } else if (value is CameraPerspectiveDto) { + } else if (value is CameraPerspectiveDto) { buffer.putUint8(134); writeValue(buffer, value.index); - } else if (value is RegisteredImageTypeDto) { + } else if (value is RegisteredImageTypeDto) { buffer.putUint8(135); writeValue(buffer, value.index); - } else if (value is MarkerEventTypeDto) { + } else if (value is MarkerEventTypeDto) { buffer.putUint8(136); writeValue(buffer, value.index); - } else if (value is MarkerDragEventTypeDto) { + } else if (value is MarkerDragEventTypeDto) { buffer.putUint8(137); writeValue(buffer, value.index); - } else if (value is StrokeJointTypeDto) { + } else if (value is StrokeJointTypeDto) { buffer.putUint8(138); writeValue(buffer, value.index); - } else if (value is PatternTypeDto) { + } else if (value is PatternTypeDto) { buffer.putUint8(139); writeValue(buffer, value.index); - } else if (value is CameraEventTypeDto) { + } else if (value is CameraEventTypeDto) { buffer.putUint8(140); writeValue(buffer, value.index); - } else if (value is AlternateRoutesStrategyDto) { + } else if (value is AlternateRoutesStrategyDto) { buffer.putUint8(141); writeValue(buffer, value.index); - } else if (value is RoutingStrategyDto) { + } else if (value is RoutingStrategyDto) { buffer.putUint8(142); writeValue(buffer, value.index); - } else if (value is TravelModeDto) { + } else if (value is TravelModeDto) { buffer.putUint8(143); writeValue(buffer, value.index); - } else if (value is RouteStatusDto) { + } else if (value is RouteStatusDto) { buffer.putUint8(144); writeValue(buffer, value.index); - } else if (value is TrafficDelaySeverityDto) { + } else if (value is TrafficDelaySeverityDto) { buffer.putUint8(145); writeValue(buffer, value.index); - } else if (value is AudioGuidanceTypeDto) { + } else if (value is AudioGuidanceTypeDto) { buffer.putUint8(146); writeValue(buffer, value.index); - } else if (value is SpeedAlertSeverityDto) { + } else if (value is SpeedAlertSeverityDto) { buffer.putUint8(147); writeValue(buffer, value.index); - } else if (value is RouteSegmentTrafficDataStatusDto) { + } else if (value is RouteSegmentTrafficDataStatusDto) { buffer.putUint8(148); writeValue(buffer, value.index); - } else if (value - is RouteSegmentTrafficDataRoadStretchRenderingDataStyleDto) { + } else if (value is RouteSegmentTrafficDataRoadStretchRenderingDataStyleDto) { buffer.putUint8(149); writeValue(buffer, value.index); - } else if (value is ManeuverDto) { + } else if (value is ManeuverDto) { buffer.putUint8(150); writeValue(buffer, value.index); - } else if (value is DrivingSideDto) { + } else if (value is DrivingSideDto) { buffer.putUint8(151); writeValue(buffer, value.index); - } else if (value is NavStateDto) { + } else if (value is NavStateDto) { buffer.putUint8(152); writeValue(buffer, value.index); - } else if (value is LaneShapeDto) { + } else if (value is LaneShapeDto) { buffer.putUint8(153); writeValue(buffer, value.index); - } else if (value is TaskRemovedBehaviorDto) { + } else if (value is TaskRemovedBehaviorDto) { buffer.putUint8(154); writeValue(buffer, value.index); - } else if (value is AutoMapOptionsDto) { + } else if (value is AutoMapOptionsDto) { buffer.putUint8(155); writeValue(buffer, value.encode()); - } else if (value is MapOptionsDto) { + } else if (value is MapOptionsDto) { buffer.putUint8(156); writeValue(buffer, value.encode()); - } else if (value is NavigationViewOptionsDto) { + } else if (value is NavigationViewOptionsDto) { buffer.putUint8(157); writeValue(buffer, value.encode()); - } else if (value is ViewCreationOptionsDto) { + } else if (value is ViewCreationOptionsDto) { buffer.putUint8(158); writeValue(buffer, value.encode()); - } else if (value is CameraPositionDto) { + } else if (value is CameraPositionDto) { buffer.putUint8(159); writeValue(buffer, value.encode()); - } else if (value is MarkerDto) { + } else if (value is MarkerDto) { buffer.putUint8(160); writeValue(buffer, value.encode()); - } else if (value is MarkerOptionsDto) { + } else if (value is MarkerOptionsDto) { buffer.putUint8(161); writeValue(buffer, value.encode()); - } else if (value is ImageDescriptorDto) { + } else if (value is ImageDescriptorDto) { buffer.putUint8(162); writeValue(buffer, value.encode()); - } else if (value is InfoWindowDto) { + } else if (value is InfoWindowDto) { buffer.putUint8(163); writeValue(buffer, value.encode()); - } else if (value is MarkerAnchorDto) { + } else if (value is MarkerAnchorDto) { buffer.putUint8(164); writeValue(buffer, value.encode()); - } else if (value is PointOfInterestDto) { + } else if (value is PointOfInterestDto) { buffer.putUint8(165); writeValue(buffer, value.encode()); - } else if (value is IndoorLevelDto) { + } else if (value is IndoorLevelDto) { buffer.putUint8(166); writeValue(buffer, value.encode()); - } else if (value is IndoorBuildingDto) { + } else if (value is IndoorBuildingDto) { buffer.putUint8(167); writeValue(buffer, value.encode()); - } else if (value is PolygonDto) { + } else if (value is PolygonDto) { buffer.putUint8(168); writeValue(buffer, value.encode()); - } else if (value is PolygonOptionsDto) { + } else if (value is PolygonOptionsDto) { buffer.putUint8(169); writeValue(buffer, value.encode()); - } else if (value is PolygonHoleDto) { + } else if (value is PolygonHoleDto) { buffer.putUint8(170); writeValue(buffer, value.encode()); - } else if (value is StyleSpanStrokeStyleDto) { + } else if (value is StyleSpanStrokeStyleDto) { buffer.putUint8(171); writeValue(buffer, value.encode()); - } else if (value is StyleSpanDto) { + } else if (value is StyleSpanDto) { buffer.putUint8(172); writeValue(buffer, value.encode()); - } else if (value is PolylineDto) { + } else if (value is PolylineDto) { buffer.putUint8(173); writeValue(buffer, value.encode()); - } else if (value is PatternItemDto) { + } else if (value is PatternItemDto) { buffer.putUint8(174); writeValue(buffer, value.encode()); - } else if (value is PolylineOptionsDto) { + } else if (value is PolylineOptionsDto) { buffer.putUint8(175); writeValue(buffer, value.encode()); - } else if (value is CircleDto) { + } else if (value is CircleDto) { buffer.putUint8(176); writeValue(buffer, value.encode()); - } else if (value is CircleOptionsDto) { + } else if (value is CircleOptionsDto) { buffer.putUint8(177); writeValue(buffer, value.encode()); - } else if (value is MapPaddingDto) { + } else if (value is MapPaddingDto) { buffer.putUint8(178); writeValue(buffer, value.encode()); - } else if (value is RouteTokenOptionsDto) { + } else if (value is NavigationHeaderStylingOptionsDto) { buffer.putUint8(179); writeValue(buffer, value.encode()); - } else if (value is DestinationsDto) { + } else if (value is RouteTokenOptionsDto) { buffer.putUint8(180); writeValue(buffer, value.encode()); - } else if (value is RoutingOptionsDto) { + } else if (value is DestinationsDto) { buffer.putUint8(181); writeValue(buffer, value.encode()); - } else if (value is NavigationDisplayOptionsDto) { + } else if (value is RoutingOptionsDto) { buffer.putUint8(182); writeValue(buffer, value.encode()); - } else if (value is NavigationWaypointDto) { + } else if (value is NavigationDisplayOptionsDto) { buffer.putUint8(183); writeValue(buffer, value.encode()); - } else if (value is ContinueToNextDestinationResponseDto) { + } else if (value is NavigationWaypointDto) { buffer.putUint8(184); writeValue(buffer, value.encode()); - } else if (value is NavigationTimeAndDistanceDto) { + } else if (value is ContinueToNextDestinationResponseDto) { buffer.putUint8(185); writeValue(buffer, value.encode()); - } else if (value is NavigationAudioGuidanceSettingsDto) { + } else if (value is NavigationTimeAndDistanceDto) { buffer.putUint8(186); writeValue(buffer, value.encode()); - } else if (value is SimulationOptionsDto) { + } else if (value is NavigationAudioGuidanceSettingsDto) { buffer.putUint8(187); writeValue(buffer, value.encode()); - } else if (value is LatLngDto) { + } else if (value is SimulationOptionsDto) { buffer.putUint8(188); writeValue(buffer, value.encode()); - } else if (value is LatLngBoundsDto) { + } else if (value is LatLngDto) { buffer.putUint8(189); writeValue(buffer, value.encode()); - } else if (value is SpeedingUpdatedEventDto) { + } else if (value is LatLngBoundsDto) { buffer.putUint8(190); writeValue(buffer, value.encode()); - } else if (value is GpsAvailabilityChangeEventDto) { + } else if (value is SpeedingUpdatedEventDto) { buffer.putUint8(191); writeValue(buffer, value.encode()); - } else if (value is SpeedAlertOptionsThresholdPercentageDto) { + } else if (value is GpsAvailabilityChangeEventDto) { buffer.putUint8(192); writeValue(buffer, value.encode()); - } else if (value is SpeedAlertOptionsDto) { + } else if (value is SpeedAlertOptionsThresholdPercentageDto) { buffer.putUint8(193); writeValue(buffer, value.encode()); - } else if (value is RouteSegmentTrafficDataRoadStretchRenderingDataDto) { + } else if (value is SpeedAlertOptionsDto) { buffer.putUint8(194); writeValue(buffer, value.encode()); - } else if (value is RouteSegmentTrafficDataDto) { + } else if (value is RouteSegmentTrafficDataRoadStretchRenderingDataDto) { buffer.putUint8(195); writeValue(buffer, value.encode()); - } else if (value is RouteSegmentDto) { + } else if (value is RouteSegmentTrafficDataDto) { buffer.putUint8(196); writeValue(buffer, value.encode()); - } else if (value is LaneDirectionDto) { + } else if (value is RouteSegmentDto) { buffer.putUint8(197); writeValue(buffer, value.encode()); - } else if (value is LaneDto) { + } else if (value is LaneDirectionDto) { buffer.putUint8(198); writeValue(buffer, value.encode()); - } else if (value is StepInfoDto) { + } else if (value is LaneDto) { buffer.putUint8(199); writeValue(buffer, value.encode()); - } else if (value is NavInfoDto) { + } else if (value is StepInfoDto) { buffer.putUint8(200); writeValue(buffer, value.encode()); - } else if (value is TermsAndConditionsUIParamsDto) { + } else if (value is NavInfoDto) { buffer.putUint8(201); writeValue(buffer, value.encode()); - } else if (value is StepImageGenerationOptionsDto) { + } else if (value is TermsAndConditionsUIParamsDto) { buffer.putUint8(202); writeValue(buffer, value.encode()); + } else if (value is StepImageGenerationOptionsDto) { + buffer.putUint8(203); + writeValue(buffer, value.encode()); } else { super.writeValue(buffer, value); } @@ -262,190 +265,181 @@ class _PigeonCodec extends StandardMessageCodec { @override Object? readValueOfType(int type, ReadBuffer buffer) { switch (type) { - case 129: + case 129: final int? value = readValue(buffer) as int?; return value == null ? null : MapViewTypeDto.values[value]; - case 130: + case 130: final int? value = readValue(buffer) as int?; - return value == null - ? null - : NavigationUIEnabledPreferenceDto.values[value]; - case 131: + return value == null ? null : NavigationUIEnabledPreferenceDto.values[value]; + case 131: final int? value = readValue(buffer) as int?; return value == null ? null : MapTypeDto.values[value]; - case 132: + case 132: final int? value = readValue(buffer) as int?; return value == null ? null : MapColorSchemeDto.values[value]; - case 133: + case 133: final int? value = readValue(buffer) as int?; return value == null ? null : NavigationForceNightModeDto.values[value]; - case 134: + case 134: final int? value = readValue(buffer) as int?; return value == null ? null : CameraPerspectiveDto.values[value]; - case 135: + case 135: final int? value = readValue(buffer) as int?; return value == null ? null : RegisteredImageTypeDto.values[value]; - case 136: + case 136: final int? value = readValue(buffer) as int?; return value == null ? null : MarkerEventTypeDto.values[value]; - case 137: + case 137: final int? value = readValue(buffer) as int?; return value == null ? null : MarkerDragEventTypeDto.values[value]; - case 138: + case 138: final int? value = readValue(buffer) as int?; return value == null ? null : StrokeJointTypeDto.values[value]; - case 139: + case 139: final int? value = readValue(buffer) as int?; return value == null ? null : PatternTypeDto.values[value]; - case 140: + case 140: final int? value = readValue(buffer) as int?; return value == null ? null : CameraEventTypeDto.values[value]; - case 141: + case 141: final int? value = readValue(buffer) as int?; return value == null ? null : AlternateRoutesStrategyDto.values[value]; - case 142: + case 142: final int? value = readValue(buffer) as int?; return value == null ? null : RoutingStrategyDto.values[value]; - case 143: + case 143: final int? value = readValue(buffer) as int?; return value == null ? null : TravelModeDto.values[value]; - case 144: + case 144: final int? value = readValue(buffer) as int?; return value == null ? null : RouteStatusDto.values[value]; - case 145: + case 145: final int? value = readValue(buffer) as int?; return value == null ? null : TrafficDelaySeverityDto.values[value]; - case 146: + case 146: final int? value = readValue(buffer) as int?; return value == null ? null : AudioGuidanceTypeDto.values[value]; - case 147: + case 147: final int? value = readValue(buffer) as int?; return value == null ? null : SpeedAlertSeverityDto.values[value]; - case 148: + case 148: final int? value = readValue(buffer) as int?; - return value == null - ? null - : RouteSegmentTrafficDataStatusDto.values[value]; - case 149: + return value == null ? null : RouteSegmentTrafficDataStatusDto.values[value]; + case 149: final int? value = readValue(buffer) as int?; - return value == null - ? null - : RouteSegmentTrafficDataRoadStretchRenderingDataStyleDto - .values[value]; - case 150: + return value == null ? null : RouteSegmentTrafficDataRoadStretchRenderingDataStyleDto.values[value]; + case 150: final int? value = readValue(buffer) as int?; return value == null ? null : ManeuverDto.values[value]; - case 151: + case 151: final int? value = readValue(buffer) as int?; return value == null ? null : DrivingSideDto.values[value]; - case 152: + case 152: final int? value = readValue(buffer) as int?; return value == null ? null : NavStateDto.values[value]; - case 153: + case 153: final int? value = readValue(buffer) as int?; return value == null ? null : LaneShapeDto.values[value]; - case 154: + case 154: final int? value = readValue(buffer) as int?; return value == null ? null : TaskRemovedBehaviorDto.values[value]; - case 155: + case 155: return AutoMapOptionsDto.decode(readValue(buffer)!); - case 156: + case 156: return MapOptionsDto.decode(readValue(buffer)!); - case 157: + case 157: return NavigationViewOptionsDto.decode(readValue(buffer)!); - case 158: + case 158: return ViewCreationOptionsDto.decode(readValue(buffer)!); - case 159: + case 159: return CameraPositionDto.decode(readValue(buffer)!); - case 160: + case 160: return MarkerDto.decode(readValue(buffer)!); - case 161: + case 161: return MarkerOptionsDto.decode(readValue(buffer)!); - case 162: + case 162: return ImageDescriptorDto.decode(readValue(buffer)!); - case 163: + case 163: return InfoWindowDto.decode(readValue(buffer)!); - case 164: + case 164: return MarkerAnchorDto.decode(readValue(buffer)!); - case 165: + case 165: return PointOfInterestDto.decode(readValue(buffer)!); - case 166: + case 166: return IndoorLevelDto.decode(readValue(buffer)!); - case 167: + case 167: return IndoorBuildingDto.decode(readValue(buffer)!); - case 168: + case 168: return PolygonDto.decode(readValue(buffer)!); - case 169: + case 169: return PolygonOptionsDto.decode(readValue(buffer)!); - case 170: + case 170: return PolygonHoleDto.decode(readValue(buffer)!); - case 171: + case 171: return StyleSpanStrokeStyleDto.decode(readValue(buffer)!); - case 172: + case 172: return StyleSpanDto.decode(readValue(buffer)!); - case 173: + case 173: return PolylineDto.decode(readValue(buffer)!); - case 174: + case 174: return PatternItemDto.decode(readValue(buffer)!); - case 175: + case 175: return PolylineOptionsDto.decode(readValue(buffer)!); - case 176: + case 176: return CircleDto.decode(readValue(buffer)!); - case 177: + case 177: return CircleOptionsDto.decode(readValue(buffer)!); - case 178: + case 178: return MapPaddingDto.decode(readValue(buffer)!); - case 179: + case 179: + return NavigationHeaderStylingOptionsDto.decode(readValue(buffer)!); + case 180: return RouteTokenOptionsDto.decode(readValue(buffer)!); - case 180: + case 181: return DestinationsDto.decode(readValue(buffer)!); - case 181: + case 182: return RoutingOptionsDto.decode(readValue(buffer)!); - case 182: + case 183: return NavigationDisplayOptionsDto.decode(readValue(buffer)!); - case 183: + case 184: return NavigationWaypointDto.decode(readValue(buffer)!); - case 184: + case 185: return ContinueToNextDestinationResponseDto.decode(readValue(buffer)!); - case 185: + case 186: return NavigationTimeAndDistanceDto.decode(readValue(buffer)!); - case 186: + case 187: return NavigationAudioGuidanceSettingsDto.decode(readValue(buffer)!); - case 187: + case 188: return SimulationOptionsDto.decode(readValue(buffer)!); - case 188: + case 189: return LatLngDto.decode(readValue(buffer)!); - case 189: + case 190: return LatLngBoundsDto.decode(readValue(buffer)!); - case 190: + case 191: return SpeedingUpdatedEventDto.decode(readValue(buffer)!); - case 191: + case 192: return GpsAvailabilityChangeEventDto.decode(readValue(buffer)!); - case 192: - return SpeedAlertOptionsThresholdPercentageDto.decode( - readValue(buffer)!, - ); - case 193: + case 193: + return SpeedAlertOptionsThresholdPercentageDto.decode(readValue(buffer)!); + case 194: return SpeedAlertOptionsDto.decode(readValue(buffer)!); - case 194: - return RouteSegmentTrafficDataRoadStretchRenderingDataDto.decode( - readValue(buffer)!, - ); - case 195: + case 195: + return RouteSegmentTrafficDataRoadStretchRenderingDataDto.decode(readValue(buffer)!); + case 196: return RouteSegmentTrafficDataDto.decode(readValue(buffer)!); - case 196: + case 197: return RouteSegmentDto.decode(readValue(buffer)!); - case 197: + case 198: return LaneDirectionDto.decode(readValue(buffer)!); - case 198: + case 199: return LaneDto.decode(readValue(buffer)!); - case 199: + case 200: return StepInfoDto.decode(readValue(buffer)!); - case 200: + case 201: return NavInfoDto.decode(readValue(buffer)!); - case 201: + case 202: return TermsAndConditionsUIParamsDto.decode(readValue(buffer)!); - case 202: + case 203: return StepImageGenerationOptionsDto.decode(readValue(buffer)!); default: return super.readValueOfType(type, buffer); @@ -454,8 +448,7 @@ class _PigeonCodec extends StandardMessageCodec { } abstract class TestMapViewApi { - static TestDefaultBinaryMessengerBinding? get _testBinaryMessengerBinding => - TestDefaultBinaryMessengerBinding.instance; + static TestDefaultBinaryMessengerBinding? get _testBinaryMessengerBinding => TestDefaultBinaryMessengerBinding.instance; static const MessageCodec pigeonChannelCodec = _PigeonCodec(); Future awaitMapReady(int viewId); @@ -480,6 +473,10 @@ abstract class TestMapViewApi { void setNavigationHeaderEnabled(int viewId, bool enabled); + NavigationHeaderStylingOptionsDto getNavigationHeaderStylingOptions(int viewId); + + void setNavigationHeaderStylingOptions(int viewId, NavigationHeaderStylingOptionsDto stylingOptions); + bool isNavigationFooterEnabled(int viewId); void setNavigationFooterEnabled(int viewId, bool enabled); @@ -583,52 +580,19 @@ abstract class TestMapViewApi { LatLngBoundsDto getVisibleRegion(int viewId); - void followMyLocation( - int viewId, - CameraPerspectiveDto perspective, - double? zoomLevel, - ); - - Future animateCameraToCameraPosition( - int viewId, - CameraPositionDto cameraPosition, - int? duration, - ); - - Future animateCameraToLatLng( - int viewId, - LatLngDto point, - int? duration, - ); - - Future animateCameraToLatLngBounds( - int viewId, - LatLngBoundsDto bounds, - double padding, - int? duration, - ); - - Future animateCameraToLatLngZoom( - int viewId, - LatLngDto point, - double zoom, - int? duration, - ); - - Future animateCameraByScroll( - int viewId, - double scrollByDx, - double scrollByDy, - int? duration, - ); - - Future animateCameraByZoom( - int viewId, - double zoomBy, - double? focusDx, - double? focusDy, - int? duration, - ); + void followMyLocation(int viewId, CameraPerspectiveDto perspective, double? zoomLevel); + + Future animateCameraToCameraPosition(int viewId, CameraPositionDto cameraPosition, int? duration); + + Future animateCameraToLatLng(int viewId, LatLngDto point, int? duration); + + Future animateCameraToLatLngBounds(int viewId, LatLngBoundsDto bounds, double padding, int? duration); + + Future animateCameraToLatLngZoom(int viewId, LatLngDto point, double zoom, int? duration); + + Future animateCameraByScroll(int viewId, double scrollByDx, double scrollByDy, int? duration); + + Future animateCameraByZoom(int viewId, double zoomBy, double? focusDx, double? focusDy, int? duration); Future animateCameraToZoom(int viewId, double zoom, int? duration); @@ -636,22 +600,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); @@ -721,10251 +676,6431 @@ abstract class TestMapViewApi { NavigationForceNightModeDto getForceNightMode(int viewId); - void setForceNightMode( - int viewId, - NavigationForceNightModeDto forceNightMode, - ); - - static void setUp( - TestMapViewApi? api, { - BinaryMessenger? binaryMessenger, - String messageChannelSuffix = '', - }) { - messageChannelSuffix = messageChannelSuffix.isNotEmpty - ? '.$messageChannelSuffix' - : ''; - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.awaitMapReady$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.awaitMapReady was null.', - ); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.awaitMapReady was null, expected non-null int.', - ); - try { - await api.awaitMapReady(arg_viewId!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMyLocationEnabled$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMyLocationEnabled was null.', - ); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMyLocationEnabled was null, expected non-null int.', - ); - try { - final bool output = api.isMyLocationEnabled(arg_viewId!); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMyLocationEnabled$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< - Object? - >(pigeonVar_channel, (Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMyLocationEnabled was null.', - ); + void setForceNightMode(int viewId, NavigationForceNightModeDto forceNightMode); + + static void setUp(TestMapViewApi? api, {BinaryMessenger? binaryMessenger, String messageChannelSuffix = '',}) { + messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.awaitMapReady$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.awaitMapReady was null.'); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMyLocationEnabled was null, expected non-null int.', - ); - final bool? arg_enabled = (args[1] as bool?); - assert( - arg_enabled != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMyLocationEnabled was null, expected non-null bool.', - ); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.awaitMapReady was null, expected non-null int.'); try { - api.setMyLocationEnabled(arg_viewId!, arg_enabled!); + await api.awaitMapReady(arg_viewId!); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMyLocation$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMyLocation was null.', - ); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMyLocation was null, expected non-null int.', - ); - try { - final LatLngDto? output = api.getMyLocation(arg_viewId!); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMapType$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMapType was null.', - ); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMapType was null, expected non-null int.', - ); - try { - final MapTypeDto output = api.getMapType(arg_viewId!); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapType$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< - Object? - >(pigeonVar_channel, (Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapType was null.', - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMyLocationEnabled$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMyLocationEnabled was null.'); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapType was null, expected non-null int.', - ); - final MapTypeDto? arg_mapType = (args[1] as MapTypeDto?); - assert( - arg_mapType != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapType was null, expected non-null MapTypeDto.', - ); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMyLocationEnabled was null, expected non-null int.'); try { - api.setMapType(arg_viewId!, arg_mapType!); - return wrapResponse(empty: true); + final bool output = api.isMyLocationEnabled(arg_viewId!); + return [output]; } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapStyle$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMyLocationEnabled$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< - Object? - >(pigeonVar_channel, (Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapStyle was null.', - ); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMyLocationEnabled was null.'); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapStyle was null, expected non-null int.', - ); - final String? arg_styleJson = (args[1] as String?); - assert( - arg_styleJson != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapStyle was null, expected non-null String.', - ); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMyLocationEnabled was null, expected non-null int.'); + final bool? arg_enabled = (args[1] as bool?); + assert(arg_enabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMyLocationEnabled was null, expected non-null bool.'); try { - api.setMapStyle(arg_viewId!, arg_styleJson!); + api.setMyLocationEnabled(arg_viewId!, arg_enabled!); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationTripProgressBarEnabled$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationTripProgressBarEnabled was null.', - ); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationTripProgressBarEnabled was null, expected non-null int.', - ); - try { - final bool output = api.isNavigationTripProgressBarEnabled( - arg_viewId!, - ); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationTripProgressBarEnabled$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< - Object? - >(pigeonVar_channel, (Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationTripProgressBarEnabled was null.', - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMyLocation$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMyLocation was null.'); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationTripProgressBarEnabled was null, expected non-null int.', - ); - final bool? arg_enabled = (args[1] as bool?); - assert( - arg_enabled != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationTripProgressBarEnabled was null, expected non-null bool.', - ); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMyLocation was null, expected non-null int.'); try { - api.setNavigationTripProgressBarEnabled(arg_viewId!, arg_enabled!); - return wrapResponse(empty: true); + final LatLngDto? output = api.getMyLocation(arg_viewId!); + return [output]; } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationHeaderEnabled$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationHeaderEnabled was null.', - ); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationHeaderEnabled was null, expected non-null int.', - ); - try { - final bool output = api.isNavigationHeaderEnabled(arg_viewId!); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationHeaderEnabled$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< - Object? - >(pigeonVar_channel, (Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationHeaderEnabled was null.', - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMapType$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMapType was null.'); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationHeaderEnabled was null, expected non-null int.', - ); - final bool? arg_enabled = (args[1] as bool?); - assert( - arg_enabled != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationHeaderEnabled was null, expected non-null bool.', - ); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMapType was null, expected non-null int.'); try { - api.setNavigationHeaderEnabled(arg_viewId!, arg_enabled!); - return wrapResponse(empty: true); + final MapTypeDto output = api.getMapType(arg_viewId!); + return [output]; } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationFooterEnabled$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationFooterEnabled was null.', - ); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationFooterEnabled was null, expected non-null int.', - ); - try { - final bool output = api.isNavigationFooterEnabled(arg_viewId!); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationFooterEnabled$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< - Object? - >(pigeonVar_channel, (Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationFooterEnabled was null.', - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapType$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapType was null.'); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationFooterEnabled was null, expected non-null int.', - ); - final bool? arg_enabled = (args[1] as bool?); - assert( - arg_enabled != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationFooterEnabled was null, expected non-null bool.', - ); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapType was null, expected non-null int.'); + final MapTypeDto? arg_mapType = (args[1] as MapTypeDto?); + assert(arg_mapType != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapType was null, expected non-null MapTypeDto.'); try { - api.setNavigationFooterEnabled(arg_viewId!, arg_enabled!); + api.setMapType(arg_viewId!, arg_mapType!); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isRecenterButtonEnabled$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isRecenterButtonEnabled was null.', - ); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isRecenterButtonEnabled was null, expected non-null int.', - ); - try { - final bool output = api.isRecenterButtonEnabled(arg_viewId!); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setRecenterButtonEnabled$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< - Object? - >(pigeonVar_channel, (Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setRecenterButtonEnabled was null.', - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapStyle$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapStyle was null.'); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setRecenterButtonEnabled was null, expected non-null int.', - ); - final bool? arg_enabled = (args[1] as bool?); - assert( - arg_enabled != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setRecenterButtonEnabled was null, expected non-null bool.', - ); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapStyle was null, expected non-null int.'); + final String? arg_styleJson = (args[1] as String?); + assert(arg_styleJson != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapStyle was null, expected non-null String.'); try { - api.setRecenterButtonEnabled(arg_viewId!, arg_enabled!); + api.setMapStyle(arg_viewId!, arg_styleJson!); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isSpeedLimitIconEnabled$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isSpeedLimitIconEnabled was null.', - ); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isSpeedLimitIconEnabled was null, expected non-null int.', - ); - try { - final bool output = api.isSpeedLimitIconEnabled(arg_viewId!); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setSpeedLimitIconEnabled$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< - Object? - >(pigeonVar_channel, (Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setSpeedLimitIconEnabled was null.', - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationTripProgressBarEnabled$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationTripProgressBarEnabled was null.'); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setSpeedLimitIconEnabled was null, expected non-null int.', - ); - final bool? arg_enabled = (args[1] as bool?); - assert( - arg_enabled != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setSpeedLimitIconEnabled was null, expected non-null bool.', - ); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationTripProgressBarEnabled was null, expected non-null int.'); try { - api.setSpeedLimitIconEnabled(arg_viewId!, arg_enabled!); - return wrapResponse(empty: true); + final bool output = api.isNavigationTripProgressBarEnabled(arg_viewId!); + return [output]; } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isSpeedometerEnabled$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isSpeedometerEnabled was null.', - ); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isSpeedometerEnabled was null, expected non-null int.', - ); - try { - final bool output = api.isSpeedometerEnabled(arg_viewId!); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setSpeedometerEnabled$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< - Object? - >(pigeonVar_channel, (Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setSpeedometerEnabled was null.', - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationTripProgressBarEnabled$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationTripProgressBarEnabled was null.'); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setSpeedometerEnabled was null, expected non-null int.', - ); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationTripProgressBarEnabled was null, expected non-null int.'); final bool? arg_enabled = (args[1] as bool?); - assert( - arg_enabled != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setSpeedometerEnabled was null, expected non-null bool.', - ); + assert(arg_enabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationTripProgressBarEnabled was null, expected non-null bool.'); try { - api.setSpeedometerEnabled(arg_viewId!, arg_enabled!); + api.setNavigationTripProgressBarEnabled(arg_viewId!, arg_enabled!); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationUIEnabled$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationUIEnabled was null.', - ); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationUIEnabled was null, expected non-null int.', - ); - try { - final bool output = api.isNavigationUIEnabled(arg_viewId!); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationUIEnabled$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< - Object? - >(pigeonVar_channel, (Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationUIEnabled was null.', - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationHeaderEnabled$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationHeaderEnabled was null.'); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationUIEnabled was null, expected non-null int.', - ); - final bool? arg_enabled = (args[1] as bool?); - assert( - arg_enabled != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationUIEnabled was null, expected non-null bool.', - ); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationHeaderEnabled was null, expected non-null int.'); try { - api.setNavigationUIEnabled(arg_viewId!, arg_enabled!); - return wrapResponse(empty: true); + final bool output = api.isNavigationHeaderEnabled(arg_viewId!); + return [output]; } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMyLocationButtonEnabled$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMyLocationButtonEnabled was null.', - ); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMyLocationButtonEnabled was null, expected non-null int.', - ); - try { - final bool output = api.isMyLocationButtonEnabled(arg_viewId!); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMyLocationButtonEnabled$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< - Object? - >(pigeonVar_channel, (Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMyLocationButtonEnabled was null.', - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationHeaderEnabled$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationHeaderEnabled was null.'); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMyLocationButtonEnabled was null, expected non-null int.', - ); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationHeaderEnabled was null, expected non-null int.'); final bool? arg_enabled = (args[1] as bool?); - assert( - arg_enabled != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMyLocationButtonEnabled was null, expected non-null bool.', - ); + assert(arg_enabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationHeaderEnabled was null, expected non-null bool.'); try { - api.setMyLocationButtonEnabled(arg_viewId!, arg_enabled!); + api.setNavigationHeaderEnabled(arg_viewId!, arg_enabled!); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isConsumeMyLocationButtonClickEventsEnabled$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isConsumeMyLocationButtonClickEventsEnabled was null.', - ); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isConsumeMyLocationButtonClickEventsEnabled was null, expected non-null int.', - ); - try { - final bool output = api - .isConsumeMyLocationButtonClickEventsEnabled(arg_viewId!); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setConsumeMyLocationButtonClickEventsEnabled$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< - Object? - >(pigeonVar_channel, (Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setConsumeMyLocationButtonClickEventsEnabled was null.', - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getNavigationHeaderStylingOptions$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getNavigationHeaderStylingOptions was null.'); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setConsumeMyLocationButtonClickEventsEnabled was null, expected non-null int.', - ); - final bool? arg_enabled = (args[1] as bool?); - assert( - arg_enabled != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setConsumeMyLocationButtonClickEventsEnabled was null, expected non-null bool.', - ); - try { - api.setConsumeMyLocationButtonClickEventsEnabled( - arg_viewId!, - arg_enabled!, - ); - return wrapResponse(empty: true); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getNavigationHeaderStylingOptions was null, expected non-null int.'); + try { + final NavigationHeaderStylingOptionsDto output = api.getNavigationHeaderStylingOptions(arg_viewId!); + return [output]; } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isZoomGesturesEnabled$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isZoomGesturesEnabled was null.', - ); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isZoomGesturesEnabled was null, expected non-null int.', - ); - try { - final bool output = api.isZoomGesturesEnabled(arg_viewId!); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setZoomGesturesEnabled$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< - Object? - >(pigeonVar_channel, (Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setZoomGesturesEnabled was null.', - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationHeaderStylingOptions$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationHeaderStylingOptions was null.'); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setZoomGesturesEnabled was null, expected non-null int.', - ); - final bool? arg_enabled = (args[1] as bool?); - assert( - arg_enabled != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setZoomGesturesEnabled was null, expected non-null bool.', - ); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationHeaderStylingOptions was null, expected non-null int.'); + final NavigationHeaderStylingOptionsDto? arg_stylingOptions = (args[1] as NavigationHeaderStylingOptionsDto?); + assert(arg_stylingOptions != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationHeaderStylingOptions was null, expected non-null NavigationHeaderStylingOptionsDto.'); try { - api.setZoomGesturesEnabled(arg_viewId!, arg_enabled!); + api.setNavigationHeaderStylingOptions(arg_viewId!, arg_stylingOptions!); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isZoomControlsEnabled$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isZoomControlsEnabled was null.', - ); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isZoomControlsEnabled was null, expected non-null int.', - ); - try { - final bool output = api.isZoomControlsEnabled(arg_viewId!); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setZoomControlsEnabled$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< - Object? - >(pigeonVar_channel, (Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setZoomControlsEnabled was null.', - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationFooterEnabled$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationFooterEnabled was null.'); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setZoomControlsEnabled was null, expected non-null int.', - ); - final bool? arg_enabled = (args[1] as bool?); - assert( - arg_enabled != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setZoomControlsEnabled was null, expected non-null bool.', - ); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationFooterEnabled was null, expected non-null int.'); try { - api.setZoomControlsEnabled(arg_viewId!, arg_enabled!); - return wrapResponse(empty: true); + final bool output = api.isNavigationFooterEnabled(arg_viewId!); + return [output]; } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isCompassEnabled$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isCompassEnabled was null.', - ); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isCompassEnabled was null, expected non-null int.', - ); - try { - final bool output = api.isCompassEnabled(arg_viewId!); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setCompassEnabled$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< - Object? - >(pigeonVar_channel, (Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setCompassEnabled was null.', - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationFooterEnabled$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationFooterEnabled was null.'); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setCompassEnabled was null, expected non-null int.', - ); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationFooterEnabled was null, expected non-null int.'); final bool? arg_enabled = (args[1] as bool?); - assert( - arg_enabled != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setCompassEnabled was null, expected non-null bool.', - ); + assert(arg_enabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationFooterEnabled was null, expected non-null bool.'); try { - api.setCompassEnabled(arg_viewId!, arg_enabled!); + api.setNavigationFooterEnabled(arg_viewId!, arg_enabled!); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isRotateGesturesEnabled$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isRotateGesturesEnabled was null.', - ); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isRotateGesturesEnabled was null, expected non-null int.', - ); - try { - final bool output = api.isRotateGesturesEnabled(arg_viewId!); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setRotateGesturesEnabled$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< - Object? - >(pigeonVar_channel, (Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setRotateGesturesEnabled was null.', - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isRecenterButtonEnabled$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isRecenterButtonEnabled was null.'); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setRotateGesturesEnabled was null, expected non-null int.', - ); - final bool? arg_enabled = (args[1] as bool?); - assert( - arg_enabled != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setRotateGesturesEnabled was null, expected non-null bool.', - ); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isRecenterButtonEnabled was null, expected non-null int.'); try { - api.setRotateGesturesEnabled(arg_viewId!, arg_enabled!); - return wrapResponse(empty: true); + final bool output = api.isRecenterButtonEnabled(arg_viewId!); + return [output]; } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isScrollGesturesEnabled$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isScrollGesturesEnabled was null.', - ); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isScrollGesturesEnabled was null, expected non-null int.', - ); - try { - final bool output = api.isScrollGesturesEnabled(arg_viewId!); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setScrollGesturesEnabled$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< - Object? - >(pigeonVar_channel, (Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setScrollGesturesEnabled was null.', - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setRecenterButtonEnabled$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setRecenterButtonEnabled was null.'); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setScrollGesturesEnabled was null, expected non-null int.', - ); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setRecenterButtonEnabled was null, expected non-null int.'); final bool? arg_enabled = (args[1] as bool?); - assert( - arg_enabled != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setScrollGesturesEnabled was null, expected non-null bool.', - ); + assert(arg_enabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setRecenterButtonEnabled was null, expected non-null bool.'); try { - api.setScrollGesturesEnabled(arg_viewId!, arg_enabled!); + api.setRecenterButtonEnabled(arg_viewId!, arg_enabled!); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isScrollGesturesEnabledDuringRotateOrZoom$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isScrollGesturesEnabledDuringRotateOrZoom was null.', - ); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isScrollGesturesEnabledDuringRotateOrZoom was null, expected non-null int.', - ); - try { - final bool output = api - .isScrollGesturesEnabledDuringRotateOrZoom(arg_viewId!); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setScrollGesturesDuringRotateOrZoomEnabled$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< - Object? - >(pigeonVar_channel, (Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setScrollGesturesDuringRotateOrZoomEnabled was null.', - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isSpeedLimitIconEnabled$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isSpeedLimitIconEnabled was null.'); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setScrollGesturesDuringRotateOrZoomEnabled was null, expected non-null int.', - ); - final bool? arg_enabled = (args[1] as bool?); - assert( - arg_enabled != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setScrollGesturesDuringRotateOrZoomEnabled was null, expected non-null bool.', - ); - try { - api.setScrollGesturesDuringRotateOrZoomEnabled( - arg_viewId!, - arg_enabled!, - ); - return wrapResponse(empty: true); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isSpeedLimitIconEnabled was null, expected non-null int.'); + try { + final bool output = api.isSpeedLimitIconEnabled(arg_viewId!); + return [output]; } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTiltGesturesEnabled$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTiltGesturesEnabled was null.', - ); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTiltGesturesEnabled was null, expected non-null int.', - ); - try { - final bool output = api.isTiltGesturesEnabled(arg_viewId!); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTiltGesturesEnabled$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< - Object? - >(pigeonVar_channel, (Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTiltGesturesEnabled was null.', - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setSpeedLimitIconEnabled$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setSpeedLimitIconEnabled was null.'); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTiltGesturesEnabled was null, expected non-null int.', - ); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setSpeedLimitIconEnabled was null, expected non-null int.'); final bool? arg_enabled = (args[1] as bool?); - assert( - arg_enabled != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTiltGesturesEnabled was null, expected non-null bool.', - ); + assert(arg_enabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setSpeedLimitIconEnabled was null, expected non-null bool.'); try { - api.setTiltGesturesEnabled(arg_viewId!, arg_enabled!); + api.setSpeedLimitIconEnabled(arg_viewId!, arg_enabled!); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMapToolbarEnabled$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMapToolbarEnabled was null.', - ); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMapToolbarEnabled was null, expected non-null int.', - ); - try { - final bool output = api.isMapToolbarEnabled(arg_viewId!); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapToolbarEnabled$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< - Object? - >(pigeonVar_channel, (Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapToolbarEnabled was null.', - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isSpeedometerEnabled$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isSpeedometerEnabled was null.'); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapToolbarEnabled was null, expected non-null int.', - ); - final bool? arg_enabled = (args[1] as bool?); - assert( - arg_enabled != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapToolbarEnabled was null, expected non-null bool.', - ); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isSpeedometerEnabled was null, expected non-null int.'); try { - api.setMapToolbarEnabled(arg_viewId!, arg_enabled!); - return wrapResponse(empty: true); + final bool output = api.isSpeedometerEnabled(arg_viewId!); + return [output]; } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficEnabled$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficEnabled was null.', - ); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficEnabled was null, expected non-null int.', - ); - try { - final bool output = api.isTrafficEnabled(arg_viewId!); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficEnabled$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< - Object? - >(pigeonVar_channel, (Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficEnabled was null.', - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setSpeedometerEnabled$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setSpeedometerEnabled was null.'); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficEnabled was null, expected non-null int.', - ); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setSpeedometerEnabled was null, expected non-null int.'); final bool? arg_enabled = (args[1] as bool?); - assert( - arg_enabled != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficEnabled was null, expected non-null bool.', - ); + assert(arg_enabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setSpeedometerEnabled was null, expected non-null bool.'); try { - api.setTrafficEnabled(arg_viewId!, arg_enabled!); + api.setSpeedometerEnabled(arg_viewId!, arg_enabled!); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficIncidentCardsEnabled$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficIncidentCardsEnabled was null.', - ); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficIncidentCardsEnabled was null, expected non-null int.', - ); - try { - final bool output = api.isTrafficIncidentCardsEnabled( - arg_viewId!, - ); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficIncidentCardsEnabled$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< - Object? - >(pigeonVar_channel, (Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficIncidentCardsEnabled was null.', - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationUIEnabled$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationUIEnabled was null.'); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficIncidentCardsEnabled was null, expected non-null int.', - ); - final bool? arg_enabled = (args[1] as bool?); - assert( - arg_enabled != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficIncidentCardsEnabled was null, expected non-null bool.', - ); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationUIEnabled was null, expected non-null int.'); try { - api.setTrafficIncidentCardsEnabled(arg_viewId!, arg_enabled!); - return wrapResponse(empty: true); + final bool output = api.isNavigationUIEnabled(arg_viewId!); + return [output]; } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficPromptsEnabled$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficPromptsEnabled was null.', - ); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficPromptsEnabled was null, expected non-null int.', - ); - try { - final bool output = api.isTrafficPromptsEnabled(arg_viewId!); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficPromptsEnabled$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< - Object? - >(pigeonVar_channel, (Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficPromptsEnabled was null.', - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationUIEnabled$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationUIEnabled was null.'); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficPromptsEnabled was null, expected non-null int.', - ); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationUIEnabled was null, expected non-null int.'); final bool? arg_enabled = (args[1] as bool?); - assert( - arg_enabled != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficPromptsEnabled was null, expected non-null bool.', - ); + assert(arg_enabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationUIEnabled was null, expected non-null bool.'); try { - api.setTrafficPromptsEnabled(arg_viewId!, arg_enabled!); + api.setNavigationUIEnabled(arg_viewId!, arg_enabled!); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isReportIncidentButtonEnabled$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isReportIncidentButtonEnabled was null.', - ); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isReportIncidentButtonEnabled was null, expected non-null int.', - ); - try { - final bool output = api.isReportIncidentButtonEnabled( - arg_viewId!, - ); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setReportIncidentButtonEnabled$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< - Object? - >(pigeonVar_channel, (Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setReportIncidentButtonEnabled was null.', - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMyLocationButtonEnabled$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMyLocationButtonEnabled was null.'); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setReportIncidentButtonEnabled was null, expected non-null int.', - ); - final bool? arg_enabled = (args[1] as bool?); - assert( - arg_enabled != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setReportIncidentButtonEnabled was null, expected non-null bool.', - ); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMyLocationButtonEnabled was null, expected non-null int.'); try { - api.setReportIncidentButtonEnabled(arg_viewId!, arg_enabled!); - return wrapResponse(empty: true); + final bool output = api.isMyLocationButtonEnabled(arg_viewId!); + return [output]; } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isIncidentReportingAvailable$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isIncidentReportingAvailable was null.', - ); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isIncidentReportingAvailable was null, expected non-null int.', - ); - try { - final bool output = api.isIncidentReportingAvailable( - arg_viewId!, - ); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.showReportIncidentsPanel$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.showReportIncidentsPanel was null.', - ); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.showReportIncidentsPanel was null, expected non-null int.', - ); - try { - api.showReportIncidentsPanel(arg_viewId!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isBuildingsEnabled$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isBuildingsEnabled was null.', - ); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isBuildingsEnabled was null, expected non-null int.', - ); - try { - final bool output = api.isBuildingsEnabled(arg_viewId!); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setBuildingsEnabled$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< - Object? - >(pigeonVar_channel, (Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setBuildingsEnabled was null.', - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMyLocationButtonEnabled$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMyLocationButtonEnabled was null.'); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setBuildingsEnabled was null, expected non-null int.', - ); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMyLocationButtonEnabled was null, expected non-null int.'); final bool? arg_enabled = (args[1] as bool?); - assert( - arg_enabled != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setBuildingsEnabled was null, expected non-null bool.', - ); + assert(arg_enabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMyLocationButtonEnabled was null, expected non-null bool.'); try { - api.setBuildingsEnabled(arg_viewId!, arg_enabled!); + api.setMyLocationButtonEnabled(arg_viewId!, arg_enabled!); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isIndoorEnabled$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isIndoorEnabled was null.', - ); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isIndoorEnabled was null, expected non-null int.', - ); - try { - final bool output = api.isIndoorEnabled(arg_viewId!); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setIndoorEnabled$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< - Object? - >(pigeonVar_channel, (Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setIndoorEnabled was null.', - ); - final List args = (message as List?)!; + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isConsumeMyLocationButtonClickEventsEnabled$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isConsumeMyLocationButtonClickEventsEnabled was null.'); + final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setIndoorEnabled was null, expected non-null int.', - ); - final bool? arg_enabled = (args[1] as bool?); - assert( - arg_enabled != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setIndoorEnabled was null, expected non-null bool.', - ); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isConsumeMyLocationButtonClickEventsEnabled was null, expected non-null int.'); try { - api.setIndoorEnabled(arg_viewId!, arg_enabled!); - return wrapResponse(empty: true); + final bool output = api.isConsumeMyLocationButtonClickEventsEnabled(arg_viewId!); + return [output]; } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isIndoorLevelPickerEnabled$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isIndoorLevelPickerEnabled was null.', - ); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isIndoorLevelPickerEnabled was null, expected non-null int.', - ); - try { - final bool output = api.isIndoorLevelPickerEnabled(arg_viewId!); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setIndoorLevelPickerEnabled$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< - Object? - >(pigeonVar_channel, (Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setIndoorLevelPickerEnabled was null.', - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setConsumeMyLocationButtonClickEventsEnabled$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setConsumeMyLocationButtonClickEventsEnabled was null.'); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setIndoorLevelPickerEnabled was null, expected non-null int.', - ); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setConsumeMyLocationButtonClickEventsEnabled was null, expected non-null int.'); final bool? arg_enabled = (args[1] as bool?); - assert( - arg_enabled != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setIndoorLevelPickerEnabled was null, expected non-null bool.', - ); + assert(arg_enabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setConsumeMyLocationButtonClickEventsEnabled was null, expected non-null bool.'); try { - api.setIndoorLevelPickerEnabled(arg_viewId!, arg_enabled!); + api.setConsumeMyLocationButtonClickEventsEnabled(arg_viewId!, arg_enabled!); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getFocusedIndoorBuilding$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getFocusedIndoorBuilding was null.', - ); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getFocusedIndoorBuilding was null, expected non-null int.', - ); - try { - final IndoorBuildingDto? output = api.getFocusedIndoorBuilding( - arg_viewId!, - ); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.activateIndoorLevel$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< - Object? - >(pigeonVar_channel, (Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.activateIndoorLevel was null.', - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isZoomGesturesEnabled$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isZoomGesturesEnabled was null.'); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.activateIndoorLevel was null, expected non-null int.', - ); - final int? arg_levelIndex = (args[1] as int?); - assert( - arg_levelIndex != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.activateIndoorLevel was null, expected non-null int.', - ); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isZoomGesturesEnabled was null, expected non-null int.'); try { - api.activateIndoorLevel(arg_viewId!, arg_levelIndex!); - return wrapResponse(empty: true); + final bool output = api.isZoomGesturesEnabled(arg_viewId!); + return [output]; } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getCameraPosition$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getCameraPosition was null.', - ); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getCameraPosition was null, expected non-null int.', - ); - try { - final CameraPositionDto output = api.getCameraPosition( - arg_viewId!, - ); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getVisibleRegion$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getVisibleRegion was null.', - ); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getVisibleRegion was null, expected non-null int.', - ); - try { - final LatLngBoundsDto output = api.getVisibleRegion( - arg_viewId!, - ); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.followMyLocation$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< - Object? - >(pigeonVar_channel, (Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.followMyLocation was null.', - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setZoomGesturesEnabled$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setZoomGesturesEnabled was null.'); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.followMyLocation was null, expected non-null int.', - ); - final CameraPerspectiveDto? arg_perspective = - (args[1] as CameraPerspectiveDto?); - assert( - arg_perspective != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.followMyLocation was null, expected non-null CameraPerspectiveDto.', - ); - final double? arg_zoomLevel = (args[2] as double?); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setZoomGesturesEnabled was null, expected non-null int.'); + final bool? arg_enabled = (args[1] as bool?); + assert(arg_enabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setZoomGesturesEnabled was null, expected non-null bool.'); try { - api.followMyLocation(arg_viewId!, arg_perspective!, arg_zoomLevel); + api.setZoomGesturesEnabled(arg_viewId!, arg_enabled!); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToCameraPosition$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isZoomControlsEnabled$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< - Object? - >(pigeonVar_channel, (Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToCameraPosition was null.', - ); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isZoomControlsEnabled was null.'); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToCameraPosition was null, expected non-null int.', - ); - final CameraPositionDto? arg_cameraPosition = - (args[1] as CameraPositionDto?); - assert( - arg_cameraPosition != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToCameraPosition was null, expected non-null CameraPositionDto.', - ); - final int? arg_duration = (args[2] as int?); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isZoomControlsEnabled was null, expected non-null int.'); try { - final bool output = await api.animateCameraToCameraPosition( - arg_viewId!, - arg_cameraPosition!, - arg_duration, - ); + final bool output = api.isZoomControlsEnabled(arg_viewId!); return [output]; } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLng$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setZoomControlsEnabled$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< - Object? - >(pigeonVar_channel, (Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLng was null.', - ); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setZoomControlsEnabled was null.'); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLng was null, expected non-null int.', - ); - final LatLngDto? arg_point = (args[1] as LatLngDto?); - assert( - arg_point != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLng was null, expected non-null LatLngDto.', - ); - final int? arg_duration = (args[2] as int?); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setZoomControlsEnabled was null, expected non-null int.'); + final bool? arg_enabled = (args[1] as bool?); + assert(arg_enabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setZoomControlsEnabled was null, expected non-null bool.'); try { - final bool output = await api.animateCameraToLatLng( - arg_viewId!, - arg_point!, - arg_duration, - ); - return [output]; + api.setZoomControlsEnabled(arg_viewId!, arg_enabled!); + return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLngBounds$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isCompassEnabled$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< - Object? - >(pigeonVar_channel, (Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLngBounds was null.', - ); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isCompassEnabled was null.'); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLngBounds was null, expected non-null int.', - ); - final LatLngBoundsDto? arg_bounds = (args[1] as LatLngBoundsDto?); - assert( - arg_bounds != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLngBounds was null, expected non-null LatLngBoundsDto.', - ); - final double? arg_padding = (args[2] as double?); - assert( - arg_padding != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLngBounds was null, expected non-null double.', - ); - final int? arg_duration = (args[3] as int?); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isCompassEnabled was null, expected non-null int.'); try { - final bool output = await api.animateCameraToLatLngBounds( - arg_viewId!, - arg_bounds!, - arg_padding!, - arg_duration, - ); + final bool output = api.isCompassEnabled(arg_viewId!); return [output]; } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLngZoom$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setCompassEnabled$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< - Object? - >(pigeonVar_channel, (Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLngZoom was null.', - ); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setCompassEnabled was null.'); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLngZoom was null, expected non-null int.', - ); - final LatLngDto? arg_point = (args[1] as LatLngDto?); - assert( - arg_point != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLngZoom was null, expected non-null LatLngDto.', - ); - final double? arg_zoom = (args[2] as double?); - assert( - arg_zoom != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLngZoom was null, expected non-null double.', - ); - final int? arg_duration = (args[3] as int?); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setCompassEnabled was null, expected non-null int.'); + final bool? arg_enabled = (args[1] as bool?); + assert(arg_enabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setCompassEnabled was null, expected non-null bool.'); try { - final bool output = await api.animateCameraToLatLngZoom( - arg_viewId!, - arg_point!, - arg_zoom!, - arg_duration, - ); - return [output]; + api.setCompassEnabled(arg_viewId!, arg_enabled!); + return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraByScroll$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isRotateGesturesEnabled$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< - Object? - >(pigeonVar_channel, (Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraByScroll was null.', - ); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isRotateGesturesEnabled was null.'); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraByScroll was null, expected non-null int.', - ); - final double? arg_scrollByDx = (args[1] as double?); - assert( - arg_scrollByDx != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraByScroll was null, expected non-null double.', - ); - final double? arg_scrollByDy = (args[2] as double?); - assert( - arg_scrollByDy != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraByScroll was null, expected non-null double.', - ); - final int? arg_duration = (args[3] as int?); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isRotateGesturesEnabled was null, expected non-null int.'); try { - final bool output = await api.animateCameraByScroll( - arg_viewId!, - arg_scrollByDx!, - arg_scrollByDy!, - arg_duration, - ); + final bool output = api.isRotateGesturesEnabled(arg_viewId!); return [output]; } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraByZoom$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setRotateGesturesEnabled$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< - Object? - >(pigeonVar_channel, (Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraByZoom was null.', - ); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setRotateGesturesEnabled was null.'); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraByZoom was null, expected non-null int.', - ); - final double? arg_zoomBy = (args[1] as double?); - assert( - arg_zoomBy != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraByZoom was null, expected non-null double.', - ); - final double? arg_focusDx = (args[2] as double?); - final double? arg_focusDy = (args[3] as double?); - final int? arg_duration = (args[4] as int?); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setRotateGesturesEnabled was null, expected non-null int.'); + final bool? arg_enabled = (args[1] as bool?); + assert(arg_enabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setRotateGesturesEnabled was null, expected non-null bool.'); try { - final bool output = await api.animateCameraByZoom( - arg_viewId!, - arg_zoomBy!, - arg_focusDx, - arg_focusDy, - arg_duration, - ); - return [output]; + api.setRotateGesturesEnabled(arg_viewId!, arg_enabled!); + return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToZoom$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isScrollGesturesEnabled$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< - Object? - >(pigeonVar_channel, (Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToZoom was null.', - ); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isScrollGesturesEnabled was null.'); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToZoom was null, expected non-null int.', - ); - final double? arg_zoom = (args[1] as double?); - assert( - arg_zoom != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToZoom was null, expected non-null double.', - ); - final int? arg_duration = (args[2] as int?); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isScrollGesturesEnabled was null, expected non-null int.'); try { - final bool output = await api.animateCameraToZoom( - arg_viewId!, - arg_zoom!, - arg_duration, - ); + final bool output = api.isScrollGesturesEnabled(arg_viewId!); return [output]; } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToCameraPosition$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setScrollGesturesEnabled$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< - Object? - >(pigeonVar_channel, (Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToCameraPosition was null.', - ); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setScrollGesturesEnabled was null.'); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToCameraPosition was null, expected non-null int.', - ); - final CameraPositionDto? arg_cameraPosition = - (args[1] as CameraPositionDto?); - assert( - arg_cameraPosition != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToCameraPosition was null, expected non-null CameraPositionDto.', - ); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setScrollGesturesEnabled was null, expected non-null int.'); + final bool? arg_enabled = (args[1] as bool?); + assert(arg_enabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setScrollGesturesEnabled was null, expected non-null bool.'); try { - api.moveCameraToCameraPosition(arg_viewId!, arg_cameraPosition!); + api.setScrollGesturesEnabled(arg_viewId!, arg_enabled!); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLng$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isScrollGesturesEnabledDuringRotateOrZoom$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< - Object? - >(pigeonVar_channel, (Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLng was null.', - ); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isScrollGesturesEnabledDuringRotateOrZoom was null.'); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLng was null, expected non-null int.', - ); - final LatLngDto? arg_point = (args[1] as LatLngDto?); - assert( - arg_point != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLng was null, expected non-null LatLngDto.', - ); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isScrollGesturesEnabledDuringRotateOrZoom was null, expected non-null int.'); try { - api.moveCameraToLatLng(arg_viewId!, arg_point!); - return wrapResponse(empty: true); + final bool output = api.isScrollGesturesEnabledDuringRotateOrZoom(arg_viewId!); + return [output]; } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLngBounds$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setScrollGesturesDuringRotateOrZoomEnabled$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< - Object? - >(pigeonVar_channel, (Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLngBounds was null.', - ); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setScrollGesturesDuringRotateOrZoomEnabled was null.'); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLngBounds was null, expected non-null int.', - ); - final LatLngBoundsDto? arg_bounds = (args[1] as LatLngBoundsDto?); - assert( - arg_bounds != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLngBounds was null, expected non-null LatLngBoundsDto.', - ); - final double? arg_padding = (args[2] as double?); - assert( - arg_padding != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLngBounds was null, expected non-null double.', - ); - try { - api.moveCameraToLatLngBounds( - arg_viewId!, - arg_bounds!, - arg_padding!, - ); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setScrollGesturesDuringRotateOrZoomEnabled was null, expected non-null int.'); + final bool? arg_enabled = (args[1] as bool?); + assert(arg_enabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setScrollGesturesDuringRotateOrZoomEnabled was null, expected non-null bool.'); + try { + api.setScrollGesturesDuringRotateOrZoomEnabled(arg_viewId!, arg_enabled!); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLngZoom$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTiltGesturesEnabled$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< - Object? - >(pigeonVar_channel, (Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLngZoom was null.', - ); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTiltGesturesEnabled was null.'); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLngZoom was null, expected non-null int.', - ); - final LatLngDto? arg_point = (args[1] as LatLngDto?); - assert( - arg_point != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLngZoom was null, expected non-null LatLngDto.', - ); - final double? arg_zoom = (args[2] as double?); - assert( - arg_zoom != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLngZoom was null, expected non-null double.', - ); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTiltGesturesEnabled was null, expected non-null int.'); try { - api.moveCameraToLatLngZoom(arg_viewId!, arg_point!, arg_zoom!); - return wrapResponse(empty: true); + final bool output = api.isTiltGesturesEnabled(arg_viewId!); + return [output]; } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraByScroll$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTiltGesturesEnabled$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< - Object? - >(pigeonVar_channel, (Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraByScroll was null.', - ); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTiltGesturesEnabled was null.'); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraByScroll was null, expected non-null int.', - ); - final double? arg_scrollByDx = (args[1] as double?); - assert( - arg_scrollByDx != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraByScroll was null, expected non-null double.', - ); - final double? arg_scrollByDy = (args[2] as double?); - assert( - arg_scrollByDy != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraByScroll was null, expected non-null double.', - ); - try { - api.moveCameraByScroll( - arg_viewId!, - arg_scrollByDx!, - arg_scrollByDy!, - ); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTiltGesturesEnabled was null, expected non-null int.'); + final bool? arg_enabled = (args[1] as bool?); + assert(arg_enabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTiltGesturesEnabled was null, expected non-null bool.'); + try { + api.setTiltGesturesEnabled(arg_viewId!, arg_enabled!); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraByZoom$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMapToolbarEnabled$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< - Object? - >(pigeonVar_channel, (Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraByZoom was null.', - ); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMapToolbarEnabled was null.'); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraByZoom was null, expected non-null int.', - ); - final double? arg_zoomBy = (args[1] as double?); - assert( - arg_zoomBy != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraByZoom was null, expected non-null double.', - ); - final double? arg_focusDx = (args[2] as double?); - final double? arg_focusDy = (args[3] as double?); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMapToolbarEnabled was null, expected non-null int.'); try { - api.moveCameraByZoom( - arg_viewId!, - arg_zoomBy!, - arg_focusDx, - arg_focusDy, - ); - return wrapResponse(empty: true); + final bool output = api.isMapToolbarEnabled(arg_viewId!); + return [output]; } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToZoom$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapToolbarEnabled$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< - Object? - >(pigeonVar_channel, (Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToZoom was null.', - ); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapToolbarEnabled was null.'); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToZoom was null, expected non-null int.', - ); - final double? arg_zoom = (args[1] as double?); - assert( - arg_zoom != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToZoom was null, expected non-null double.', - ); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapToolbarEnabled was null, expected non-null int.'); + final bool? arg_enabled = (args[1] as bool?); + assert(arg_enabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapToolbarEnabled was null, expected non-null bool.'); try { - api.moveCameraToZoom(arg_viewId!, arg_zoom!); + api.setMapToolbarEnabled(arg_viewId!, arg_enabled!); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.showRouteOverview$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.showRouteOverview was null.', - ); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.showRouteOverview was null, expected non-null int.', - ); - try { - api.showRouteOverview(arg_viewId!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMinZoomPreference$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMinZoomPreference was null.', - ); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMinZoomPreference was null, expected non-null int.', - ); - try { - final double output = api.getMinZoomPreference(arg_viewId!); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMaxZoomPreference$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMaxZoomPreference was null.', - ); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMaxZoomPreference was null, expected non-null int.', - ); - try { - final double output = api.getMaxZoomPreference(arg_viewId!); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.resetMinMaxZoomPreference$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.resetMinMaxZoomPreference was null.', - ); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.resetMinMaxZoomPreference was null, expected non-null int.', - ); - try { - api.resetMinMaxZoomPreference(arg_viewId!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMinZoomPreference$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< - Object? - >(pigeonVar_channel, (Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMinZoomPreference was null.', - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficEnabled$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficEnabled was null.'); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMinZoomPreference was null, expected non-null int.', - ); - final double? arg_minZoomPreference = (args[1] as double?); - assert( - arg_minZoomPreference != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMinZoomPreference was null, expected non-null double.', - ); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficEnabled was null, expected non-null int.'); try { - api.setMinZoomPreference(arg_viewId!, arg_minZoomPreference!); - return wrapResponse(empty: true); + final bool output = api.isTrafficEnabled(arg_viewId!); + return [output]; } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMaxZoomPreference$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficEnabled$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< - Object? - >(pigeonVar_channel, (Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMaxZoomPreference was null.', - ); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficEnabled was null.'); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMaxZoomPreference was null, expected non-null int.', - ); - final double? arg_maxZoomPreference = (args[1] as double?); - assert( - arg_maxZoomPreference != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMaxZoomPreference was null, expected non-null double.', - ); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficEnabled was null, expected non-null int.'); + final bool? arg_enabled = (args[1] as bool?); + assert(arg_enabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficEnabled was null, expected non-null bool.'); try { - api.setMaxZoomPreference(arg_viewId!, arg_maxZoomPreference!); + api.setTrafficEnabled(arg_viewId!, arg_enabled!); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMarkers$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMarkers was null.', - ); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMarkers was null, expected non-null int.', - ); - try { - final List output = api.getMarkers(arg_viewId!); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addMarkers$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< - Object? - >(pigeonVar_channel, (Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addMarkers was null.', - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficIncidentCardsEnabled$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficIncidentCardsEnabled was null.'); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addMarkers was null, expected non-null int.', - ); - final List? arg_markers = (args[1] as List?) - ?.cast(); - assert( - arg_markers != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addMarkers was null, expected non-null List.', - ); - try { - final List output = api.addMarkers( - arg_viewId!, - arg_markers!, - ); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficIncidentCardsEnabled was null, expected non-null int.'); + try { + final bool output = api.isTrafficIncidentCardsEnabled(arg_viewId!); return [output]; } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updateMarkers$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficIncidentCardsEnabled$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< - Object? - >(pigeonVar_channel, (Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updateMarkers was null.', - ); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficIncidentCardsEnabled was null.'); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updateMarkers was null, expected non-null int.', - ); - final List? arg_markers = (args[1] as List?) - ?.cast(); - assert( - arg_markers != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updateMarkers was null, expected non-null List.', - ); - try { - final List output = api.updateMarkers( - arg_viewId!, - arg_markers!, - ); - return [output]; + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficIncidentCardsEnabled was null, expected non-null int.'); + final bool? arg_enabled = (args[1] as bool?); + assert(arg_enabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficIncidentCardsEnabled was null, expected non-null bool.'); + try { + api.setTrafficIncidentCardsEnabled(arg_viewId!, arg_enabled!); + return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removeMarkers$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficPromptsEnabled$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< - Object? - >(pigeonVar_channel, (Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removeMarkers was null.', - ); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficPromptsEnabled was null.'); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removeMarkers was null, expected non-null int.', - ); - final List? arg_markers = (args[1] as List?) - ?.cast(); - assert( - arg_markers != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removeMarkers was null, expected non-null List.', - ); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficPromptsEnabled was null, expected non-null int.'); try { - api.removeMarkers(arg_viewId!, arg_markers!); - return wrapResponse(empty: true); + final bool output = api.isTrafficPromptsEnabled(arg_viewId!); + return [output]; } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearMarkers$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearMarkers was null.', - ); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearMarkers was null, expected non-null int.', - ); - try { - api.clearMarkers(arg_viewId!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clear$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clear was null.', - ); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clear was null, expected non-null int.', - ); - try { - api.clear(arg_viewId!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPolygons$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPolygons was null.', - ); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPolygons was null, expected non-null int.', - ); - try { - final List output = api.getPolygons(arg_viewId!); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addPolygons$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< - Object? - >(pigeonVar_channel, (Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addPolygons was null.', - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficPromptsEnabled$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficPromptsEnabled was null.'); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addPolygons was null, expected non-null int.', - ); - final List? arg_polygons = (args[1] as List?) - ?.cast(); - assert( - arg_polygons != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addPolygons was null, expected non-null List.', - ); - try { - final List output = api.addPolygons( - arg_viewId!, - arg_polygons!, - ); - return [output]; + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficPromptsEnabled was null, expected non-null int.'); + final bool? arg_enabled = (args[1] as bool?); + assert(arg_enabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficPromptsEnabled was null, expected non-null bool.'); + try { + api.setTrafficPromptsEnabled(arg_viewId!, arg_enabled!); + return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updatePolygons$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isReportIncidentButtonEnabled$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< - Object? - >(pigeonVar_channel, (Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updatePolygons was null.', - ); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isReportIncidentButtonEnabled was null.'); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updatePolygons was null, expected non-null int.', - ); - final List? arg_polygons = (args[1] as List?) - ?.cast(); - assert( - arg_polygons != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updatePolygons was null, expected non-null List.', - ); - try { - final List output = api.updatePolygons( - arg_viewId!, - arg_polygons!, - ); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isReportIncidentButtonEnabled was null, expected non-null int.'); + try { + final bool output = api.isReportIncidentButtonEnabled(arg_viewId!); return [output]; } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removePolygons$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setReportIncidentButtonEnabled$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< - Object? - >(pigeonVar_channel, (Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removePolygons was null.', - ); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setReportIncidentButtonEnabled was null.'); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removePolygons was null, expected non-null int.', - ); - final List? arg_polygons = (args[1] as List?) - ?.cast(); - assert( - arg_polygons != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removePolygons was null, expected non-null List.', - ); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setReportIncidentButtonEnabled was null, expected non-null int.'); + final bool? arg_enabled = (args[1] as bool?); + assert(arg_enabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setReportIncidentButtonEnabled was null, expected non-null bool.'); try { - api.removePolygons(arg_viewId!, arg_polygons!); + api.setReportIncidentButtonEnabled(arg_viewId!, arg_enabled!); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearPolygons$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearPolygons was null.', - ); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearPolygons was null, expected non-null int.', - ); - try { - api.clearPolygons(arg_viewId!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPolylines$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPolylines was null.', - ); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPolylines was null, expected non-null int.', - ); - try { - final List output = api.getPolylines(arg_viewId!); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addPolylines$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< - Object? - >(pigeonVar_channel, (Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addPolylines was null.', - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isIncidentReportingAvailable$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isIncidentReportingAvailable was null.'); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addPolylines was null, expected non-null int.', - ); - final List? arg_polylines = (args[1] as List?) - ?.cast(); - assert( - arg_polylines != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addPolylines was null, expected non-null List.', - ); - try { - final List output = api.addPolylines( - arg_viewId!, - arg_polylines!, - ); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isIncidentReportingAvailable was null, expected non-null int.'); + try { + final bool output = api.isIncidentReportingAvailable(arg_viewId!); return [output]; } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.showReportIncidentsPanel$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.showReportIncidentsPanel was null.'); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.showReportIncidentsPanel was null, expected non-null int.'); + try { + api.showReportIncidentsPanel(arg_viewId!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updatePolylines$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isBuildingsEnabled$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< - Object? - >(pigeonVar_channel, (Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updatePolylines was null.', - ); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isBuildingsEnabled was null.'); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updatePolylines was null, expected non-null int.', - ); - final List? arg_polylines = (args[1] as List?) - ?.cast(); - assert( - arg_polylines != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updatePolylines was null, expected non-null List.', - ); - try { - final List output = api.updatePolylines( - arg_viewId!, - arg_polylines!, - ); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isBuildingsEnabled was null, expected non-null int.'); + try { + final bool output = api.isBuildingsEnabled(arg_viewId!); return [output]; } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removePolylines$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setBuildingsEnabled$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< - Object? - >(pigeonVar_channel, (Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removePolylines was null.', - ); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setBuildingsEnabled was null.'); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removePolylines was null, expected non-null int.', - ); - final List? arg_polylines = (args[1] as List?) - ?.cast(); - assert( - arg_polylines != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removePolylines was null, expected non-null List.', - ); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setBuildingsEnabled was null, expected non-null int.'); + final bool? arg_enabled = (args[1] as bool?); + assert(arg_enabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setBuildingsEnabled was null, expected non-null bool.'); try { - api.removePolylines(arg_viewId!, arg_polylines!); + api.setBuildingsEnabled(arg_viewId!, arg_enabled!); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearPolylines$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearPolylines was null.', - ); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearPolylines was null, expected non-null int.', - ); - try { - api.clearPolylines(arg_viewId!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getCircles$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getCircles was null.', - ); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getCircles was null, expected non-null int.', - ); - try { - final List output = api.getCircles(arg_viewId!); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addCircles$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< - Object? - >(pigeonVar_channel, (Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addCircles was null.', - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isIndoorEnabled$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isIndoorEnabled was null.'); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addCircles was null, expected non-null int.', - ); - final List? arg_circles = (args[1] as List?) - ?.cast(); - assert( - arg_circles != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addCircles was null, expected non-null List.', - ); - try { - final List output = api.addCircles( - arg_viewId!, - arg_circles!, - ); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isIndoorEnabled was null, expected non-null int.'); + try { + final bool output = api.isIndoorEnabled(arg_viewId!); return [output]; } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updateCircles$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setIndoorEnabled$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< - Object? - >(pigeonVar_channel, (Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updateCircles was null.', - ); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setIndoorEnabled was null.'); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updateCircles was null, expected non-null int.', - ); - final List? arg_circles = (args[1] as List?) - ?.cast(); - assert( - arg_circles != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updateCircles was null, expected non-null List.', - ); - try { - final List output = api.updateCircles( - arg_viewId!, - arg_circles!, - ); - return [output]; + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setIndoorEnabled was null, expected non-null int.'); + final bool? arg_enabled = (args[1] as bool?); + assert(arg_enabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setIndoorEnabled was null, expected non-null bool.'); + try { + api.setIndoorEnabled(arg_viewId!, arg_enabled!); + return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removeCircles$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isIndoorLevelPickerEnabled$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< - Object? - >(pigeonVar_channel, (Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removeCircles was null.', - ); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isIndoorLevelPickerEnabled was null.'); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removeCircles was null, expected non-null int.', - ); - final List? arg_circles = (args[1] as List?) - ?.cast(); - assert( - arg_circles != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removeCircles was null, expected non-null List.', - ); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isIndoorLevelPickerEnabled was null, expected non-null int.'); try { - api.removeCircles(arg_viewId!, arg_circles!); - return wrapResponse(empty: true); + final bool output = api.isIndoorLevelPickerEnabled(arg_viewId!); + return [output]; } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearCircles$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearCircles was null.', - ); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearCircles was null, expected non-null int.', - ); - try { - api.clearCircles(arg_viewId!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.enableOnCameraChangedEvents$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.enableOnCameraChangedEvents was null.', - ); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.enableOnCameraChangedEvents was null, expected non-null int.', - ); - try { - api.enableOnCameraChangedEvents(arg_viewId!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setPadding$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< - Object? - >(pigeonVar_channel, (Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setPadding was null.', - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setIndoorLevelPickerEnabled$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setIndoorLevelPickerEnabled was null.'); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setPadding was null, expected non-null int.', - ); - final MapPaddingDto? arg_padding = (args[1] as MapPaddingDto?); - assert( - arg_padding != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setPadding was null, expected non-null MapPaddingDto.', - ); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setIndoorLevelPickerEnabled was null, expected non-null int.'); + final bool? arg_enabled = (args[1] as bool?); + assert(arg_enabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setIndoorLevelPickerEnabled was null, expected non-null bool.'); try { - api.setPadding(arg_viewId!, arg_padding!); + api.setIndoorLevelPickerEnabled(arg_viewId!, arg_enabled!); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPadding$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPadding was null.', - ); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPadding was null, expected non-null int.', - ); - try { - final MapPaddingDto output = api.getPadding(arg_viewId!); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMapColorScheme$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMapColorScheme was null.', - ); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMapColorScheme was null, expected non-null int.', - ); - try { - final MapColorSchemeDto output = api.getMapColorScheme( - arg_viewId!, - ); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapColorScheme$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< - Object? - >(pigeonVar_channel, (Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapColorScheme was null.', - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getFocusedIndoorBuilding$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getFocusedIndoorBuilding was null.'); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapColorScheme was null, expected non-null int.', - ); - final MapColorSchemeDto? arg_mapColorScheme = - (args[1] as MapColorSchemeDto?); - assert( - arg_mapColorScheme != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapColorScheme was null, expected non-null MapColorSchemeDto.', - ); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getFocusedIndoorBuilding was null, expected non-null int.'); try { - api.setMapColorScheme(arg_viewId!, arg_mapColorScheme!); - return wrapResponse(empty: true); + final IndoorBuildingDto? output = api.getFocusedIndoorBuilding(arg_viewId!); + return [output]; } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getForceNightMode$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getForceNightMode was null.', - ); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getForceNightMode was null, expected non-null int.', - ); - try { - final NavigationForceNightModeDto output = api - .getForceNightMode(arg_viewId!); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setForceNightMode$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< - Object? - >(pigeonVar_channel, (Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setForceNightMode was null.', - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.activateIndoorLevel$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.activateIndoorLevel was null.'); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert( - arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setForceNightMode was null, expected non-null int.', - ); - final NavigationForceNightModeDto? arg_forceNightMode = - (args[1] as NavigationForceNightModeDto?); - assert( - arg_forceNightMode != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setForceNightMode was null, expected non-null NavigationForceNightModeDto.', - ); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.activateIndoorLevel was null, expected non-null int.'); + final int? arg_levelIndex = (args[1] as int?); + assert(arg_levelIndex != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.activateIndoorLevel was null, expected non-null int.'); try { - api.setForceNightMode(arg_viewId!, arg_forceNightMode!); + api.activateIndoorLevel(arg_viewId!, arg_levelIndex!); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } - } -} - -abstract class TestImageRegistryApi { - static TestDefaultBinaryMessengerBinding? get _testBinaryMessengerBinding => - TestDefaultBinaryMessengerBinding.instance; - static const MessageCodec pigeonChannelCodec = _PigeonCodec(); - - ImageDescriptorDto registerBitmapImage( - String imageId, - Uint8List bytes, - double imagePixelRatio, - double? width, - double? height, - ); - - void unregisterImage(ImageDescriptorDto imageDescriptor); - - List getRegisteredImages(); - - void clearRegisteredImages(RegisteredImageTypeDto? filter); - - Uint8List? getRegisteredImageData(ImageDescriptorDto imageDescriptor); - - static void setUp( - TestImageRegistryApi? api, { - BinaryMessenger? binaryMessenger, - String messageChannelSuffix = '', - }) { - messageChannelSuffix = messageChannelSuffix.isNotEmpty - ? '.$messageChannelSuffix' - : ''; - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.registerBitmapImage$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< - Object? - >(pigeonVar_channel, (Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.registerBitmapImage was null.', - ); + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getCameraPosition$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getCameraPosition was null.'); final List args = (message as List?)!; - final String? arg_imageId = (args[0] as String?); - assert( - arg_imageId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.registerBitmapImage was null, expected non-null String.', - ); - final Uint8List? arg_bytes = (args[1] as Uint8List?); - assert( - arg_bytes != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.registerBitmapImage was null, expected non-null Uint8List.', - ); - final double? arg_imagePixelRatio = (args[2] as double?); - assert( - arg_imagePixelRatio != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.registerBitmapImage was null, expected non-null double.', - ); - final double? arg_width = (args[3] as double?); - final double? arg_height = (args[4] as double?); + final int? arg_viewId = (args[0] as int?); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getCameraPosition was null, expected non-null int.'); try { - final ImageDescriptorDto output = api.registerBitmapImage( - arg_imageId!, - arg_bytes!, - arg_imagePixelRatio!, - arg_width, - arg_height, - ); + final CameraPositionDto output = api.getCameraPosition(arg_viewId!); return [output]; } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.unregisterImage$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.unregisterImage was null.', - ); - final List args = (message as List?)!; - final ImageDescriptorDto? arg_imageDescriptor = - (args[0] as ImageDescriptorDto?); - assert( - arg_imageDescriptor != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.unregisterImage was null, expected non-null ImageDescriptorDto.', - ); - try { - api.unregisterImage(arg_imageDescriptor!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.getRegisteredImages$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - try { - final List output = api - .getRegisteredImages(); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.clearRegisteredImages$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.clearRegisteredImages was null.', - ); - final List args = (message as List?)!; - final RegisteredImageTypeDto? arg_filter = - (args[0] as RegisteredImageTypeDto?); - try { - api.clearRegisteredImages(arg_filter); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.getRegisteredImageData$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.getRegisteredImageData was null.', - ); - final List args = (message as List?)!; - final ImageDescriptorDto? arg_imageDescriptor = - (args[0] as ImageDescriptorDto?); - assert( - arg_imageDescriptor != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.getRegisteredImageData was null, expected non-null ImageDescriptorDto.', - ); - try { - final Uint8List? output = api.getRegisteredImageData( - arg_imageDescriptor!, - ); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); } } - } -} - -abstract class TestNavigationSessionApi { - static TestDefaultBinaryMessengerBinding? get _testBinaryMessengerBinding => - TestDefaultBinaryMessengerBinding.instance; - static const MessageCodec pigeonChannelCodec = _PigeonCodec(); - - Future createNavigationSession( - bool abnormalTerminationReportingEnabled, - TaskRemovedBehaviorDto behavior, - ); - - bool isInitialized(); - + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getVisibleRegion$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getVisibleRegion was null.'); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getVisibleRegion was null, expected non-null int.'); + try { + final LatLngBoundsDto output = api.getVisibleRegion(arg_viewId!); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.followMyLocation$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.followMyLocation was null.'); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.followMyLocation was null, expected non-null int.'); + final CameraPerspectiveDto? arg_perspective = (args[1] as CameraPerspectiveDto?); + assert(arg_perspective != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.followMyLocation was null, expected non-null CameraPerspectiveDto.'); + final double? arg_zoomLevel = (args[2] as double?); + try { + api.followMyLocation(arg_viewId!, arg_perspective!, arg_zoomLevel); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToCameraPosition$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToCameraPosition was null.'); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToCameraPosition was null, expected non-null int.'); + final CameraPositionDto? arg_cameraPosition = (args[1] as CameraPositionDto?); + assert(arg_cameraPosition != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToCameraPosition was null, expected non-null CameraPositionDto.'); + final int? arg_duration = (args[2] as int?); + try { + final bool output = await api.animateCameraToCameraPosition(arg_viewId!, arg_cameraPosition!, arg_duration); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLng$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLng was null.'); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLng was null, expected non-null int.'); + final LatLngDto? arg_point = (args[1] as LatLngDto?); + assert(arg_point != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLng was null, expected non-null LatLngDto.'); + final int? arg_duration = (args[2] as int?); + try { + final bool output = await api.animateCameraToLatLng(arg_viewId!, arg_point!, arg_duration); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLngBounds$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLngBounds was null.'); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLngBounds was null, expected non-null int.'); + final LatLngBoundsDto? arg_bounds = (args[1] as LatLngBoundsDto?); + assert(arg_bounds != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLngBounds was null, expected non-null LatLngBoundsDto.'); + final double? arg_padding = (args[2] as double?); + assert(arg_padding != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLngBounds was null, expected non-null double.'); + final int? arg_duration = (args[3] as int?); + try { + final bool output = await api.animateCameraToLatLngBounds(arg_viewId!, arg_bounds!, arg_padding!, arg_duration); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLngZoom$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLngZoom was null.'); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLngZoom was null, expected non-null int.'); + final LatLngDto? arg_point = (args[1] as LatLngDto?); + assert(arg_point != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLngZoom was null, expected non-null LatLngDto.'); + final double? arg_zoom = (args[2] as double?); + assert(arg_zoom != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLngZoom was null, expected non-null double.'); + final int? arg_duration = (args[3] as int?); + try { + final bool output = await api.animateCameraToLatLngZoom(arg_viewId!, arg_point!, arg_zoom!, arg_duration); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraByScroll$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraByScroll was null.'); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraByScroll was null, expected non-null int.'); + final double? arg_scrollByDx = (args[1] as double?); + assert(arg_scrollByDx != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraByScroll was null, expected non-null double.'); + final double? arg_scrollByDy = (args[2] as double?); + assert(arg_scrollByDy != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraByScroll was null, expected non-null double.'); + final int? arg_duration = (args[3] as int?); + try { + final bool output = await api.animateCameraByScroll(arg_viewId!, arg_scrollByDx!, arg_scrollByDy!, arg_duration); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraByZoom$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraByZoom was null.'); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraByZoom was null, expected non-null int.'); + final double? arg_zoomBy = (args[1] as double?); + assert(arg_zoomBy != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraByZoom was null, expected non-null double.'); + final double? arg_focusDx = (args[2] as double?); + final double? arg_focusDy = (args[3] as double?); + final int? arg_duration = (args[4] as int?); + try { + final bool output = await api.animateCameraByZoom(arg_viewId!, arg_zoomBy!, arg_focusDx, arg_focusDy, arg_duration); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToZoom$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToZoom was null.'); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToZoom was null, expected non-null int.'); + final double? arg_zoom = (args[1] as double?); + assert(arg_zoom != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToZoom was null, expected non-null double.'); + final int? arg_duration = (args[2] as int?); + try { + final bool output = await api.animateCameraToZoom(arg_viewId!, arg_zoom!, arg_duration); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToCameraPosition$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToCameraPosition was null.'); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToCameraPosition was null, expected non-null int.'); + final CameraPositionDto? arg_cameraPosition = (args[1] as CameraPositionDto?); + assert(arg_cameraPosition != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToCameraPosition was null, expected non-null CameraPositionDto.'); + try { + api.moveCameraToCameraPosition(arg_viewId!, arg_cameraPosition!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLng$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLng was null.'); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLng was null, expected non-null int.'); + final LatLngDto? arg_point = (args[1] as LatLngDto?); + assert(arg_point != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLng was null, expected non-null LatLngDto.'); + try { + api.moveCameraToLatLng(arg_viewId!, arg_point!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLngBounds$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLngBounds was null.'); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLngBounds was null, expected non-null int.'); + final LatLngBoundsDto? arg_bounds = (args[1] as LatLngBoundsDto?); + assert(arg_bounds != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLngBounds was null, expected non-null LatLngBoundsDto.'); + final double? arg_padding = (args[2] as double?); + assert(arg_padding != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLngBounds was null, expected non-null double.'); + try { + api.moveCameraToLatLngBounds(arg_viewId!, arg_bounds!, arg_padding!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLngZoom$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLngZoom was null.'); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLngZoom was null, expected non-null int.'); + final LatLngDto? arg_point = (args[1] as LatLngDto?); + assert(arg_point != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLngZoom was null, expected non-null LatLngDto.'); + final double? arg_zoom = (args[2] as double?); + assert(arg_zoom != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLngZoom was null, expected non-null double.'); + try { + api.moveCameraToLatLngZoom(arg_viewId!, arg_point!, arg_zoom!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraByScroll$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraByScroll was null.'); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraByScroll was null, expected non-null int.'); + final double? arg_scrollByDx = (args[1] as double?); + assert(arg_scrollByDx != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraByScroll was null, expected non-null double.'); + final double? arg_scrollByDy = (args[2] as double?); + assert(arg_scrollByDy != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraByScroll was null, expected non-null double.'); + try { + api.moveCameraByScroll(arg_viewId!, arg_scrollByDx!, arg_scrollByDy!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraByZoom$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraByZoom was null.'); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraByZoom was null, expected non-null int.'); + final double? arg_zoomBy = (args[1] as double?); + assert(arg_zoomBy != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraByZoom was null, expected non-null double.'); + final double? arg_focusDx = (args[2] as double?); + final double? arg_focusDy = (args[3] as double?); + try { + api.moveCameraByZoom(arg_viewId!, arg_zoomBy!, arg_focusDx, arg_focusDy); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToZoom$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToZoom was null.'); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToZoom was null, expected non-null int.'); + final double? arg_zoom = (args[1] as double?); + assert(arg_zoom != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToZoom was null, expected non-null double.'); + try { + api.moveCameraToZoom(arg_viewId!, arg_zoom!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.showRouteOverview$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.showRouteOverview was null.'); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.showRouteOverview was null, expected non-null int.'); + try { + api.showRouteOverview(arg_viewId!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMinZoomPreference$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMinZoomPreference was null.'); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMinZoomPreference was null, expected non-null int.'); + try { + final double output = api.getMinZoomPreference(arg_viewId!); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMaxZoomPreference$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMaxZoomPreference was null.'); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMaxZoomPreference was null, expected non-null int.'); + try { + final double output = api.getMaxZoomPreference(arg_viewId!); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.resetMinMaxZoomPreference$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.resetMinMaxZoomPreference was null.'); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.resetMinMaxZoomPreference was null, expected non-null int.'); + try { + api.resetMinMaxZoomPreference(arg_viewId!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMinZoomPreference$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMinZoomPreference was null.'); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMinZoomPreference was null, expected non-null int.'); + final double? arg_minZoomPreference = (args[1] as double?); + assert(arg_minZoomPreference != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMinZoomPreference was null, expected non-null double.'); + try { + api.setMinZoomPreference(arg_viewId!, arg_minZoomPreference!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMaxZoomPreference$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMaxZoomPreference was null.'); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMaxZoomPreference was null, expected non-null int.'); + final double? arg_maxZoomPreference = (args[1] as double?); + assert(arg_maxZoomPreference != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMaxZoomPreference was null, expected non-null double.'); + try { + api.setMaxZoomPreference(arg_viewId!, arg_maxZoomPreference!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMarkers$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMarkers was null.'); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMarkers was null, expected non-null int.'); + try { + final List output = api.getMarkers(arg_viewId!); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addMarkers$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addMarkers was null.'); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addMarkers was null, expected non-null int.'); + final List? arg_markers = (args[1] as List?)?.cast(); + assert(arg_markers != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addMarkers was null, expected non-null List.'); + try { + final List output = api.addMarkers(arg_viewId!, arg_markers!); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updateMarkers$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updateMarkers was null.'); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updateMarkers was null, expected non-null int.'); + final List? arg_markers = (args[1] as List?)?.cast(); + assert(arg_markers != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updateMarkers was null, expected non-null List.'); + try { + final List output = api.updateMarkers(arg_viewId!, arg_markers!); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removeMarkers$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removeMarkers was null.'); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removeMarkers was null, expected non-null int.'); + final List? arg_markers = (args[1] as List?)?.cast(); + assert(arg_markers != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removeMarkers was null, expected non-null List.'); + try { + api.removeMarkers(arg_viewId!, arg_markers!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearMarkers$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearMarkers was null.'); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearMarkers was null, expected non-null int.'); + try { + api.clearMarkers(arg_viewId!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clear$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clear was null.'); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clear was null, expected non-null int.'); + try { + api.clear(arg_viewId!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPolygons$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPolygons was null.'); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPolygons was null, expected non-null int.'); + try { + final List output = api.getPolygons(arg_viewId!); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addPolygons$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addPolygons was null.'); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addPolygons was null, expected non-null int.'); + final List? arg_polygons = (args[1] as List?)?.cast(); + assert(arg_polygons != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addPolygons was null, expected non-null List.'); + try { + final List output = api.addPolygons(arg_viewId!, arg_polygons!); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updatePolygons$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updatePolygons was null.'); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updatePolygons was null, expected non-null int.'); + final List? arg_polygons = (args[1] as List?)?.cast(); + assert(arg_polygons != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updatePolygons was null, expected non-null List.'); + try { + final List output = api.updatePolygons(arg_viewId!, arg_polygons!); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removePolygons$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removePolygons was null.'); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removePolygons was null, expected non-null int.'); + final List? arg_polygons = (args[1] as List?)?.cast(); + assert(arg_polygons != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removePolygons was null, expected non-null List.'); + try { + api.removePolygons(arg_viewId!, arg_polygons!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearPolygons$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearPolygons was null.'); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearPolygons was null, expected non-null int.'); + try { + api.clearPolygons(arg_viewId!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPolylines$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPolylines was null.'); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPolylines was null, expected non-null int.'); + try { + final List output = api.getPolylines(arg_viewId!); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addPolylines$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addPolylines was null.'); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addPolylines was null, expected non-null int.'); + final List? arg_polylines = (args[1] as List?)?.cast(); + assert(arg_polylines != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addPolylines was null, expected non-null List.'); + try { + final List output = api.addPolylines(arg_viewId!, arg_polylines!); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updatePolylines$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updatePolylines was null.'); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updatePolylines was null, expected non-null int.'); + final List? arg_polylines = (args[1] as List?)?.cast(); + assert(arg_polylines != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updatePolylines was null, expected non-null List.'); + try { + final List output = api.updatePolylines(arg_viewId!, arg_polylines!); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removePolylines$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removePolylines was null.'); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removePolylines was null, expected non-null int.'); + final List? arg_polylines = (args[1] as List?)?.cast(); + assert(arg_polylines != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removePolylines was null, expected non-null List.'); + try { + api.removePolylines(arg_viewId!, arg_polylines!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearPolylines$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearPolylines was null.'); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearPolylines was null, expected non-null int.'); + try { + api.clearPolylines(arg_viewId!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getCircles$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getCircles was null.'); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getCircles was null, expected non-null int.'); + try { + final List output = api.getCircles(arg_viewId!); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addCircles$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addCircles was null.'); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addCircles was null, expected non-null int.'); + final List? arg_circles = (args[1] as List?)?.cast(); + assert(arg_circles != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addCircles was null, expected non-null List.'); + try { + final List output = api.addCircles(arg_viewId!, arg_circles!); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updateCircles$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updateCircles was null.'); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updateCircles was null, expected non-null int.'); + final List? arg_circles = (args[1] as List?)?.cast(); + assert(arg_circles != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updateCircles was null, expected non-null List.'); + try { + final List output = api.updateCircles(arg_viewId!, arg_circles!); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removeCircles$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removeCircles was null.'); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removeCircles was null, expected non-null int.'); + final List? arg_circles = (args[1] as List?)?.cast(); + assert(arg_circles != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removeCircles was null, expected non-null List.'); + try { + api.removeCircles(arg_viewId!, arg_circles!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearCircles$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearCircles was null.'); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearCircles was null, expected non-null int.'); + try { + api.clearCircles(arg_viewId!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.enableOnCameraChangedEvents$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.enableOnCameraChangedEvents was null.'); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.enableOnCameraChangedEvents was null, expected non-null int.'); + try { + api.enableOnCameraChangedEvents(arg_viewId!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setPadding$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setPadding was null.'); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setPadding was null, expected non-null int.'); + final MapPaddingDto? arg_padding = (args[1] as MapPaddingDto?); + assert(arg_padding != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setPadding was null, expected non-null MapPaddingDto.'); + try { + api.setPadding(arg_viewId!, arg_padding!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPadding$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPadding was null.'); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPadding was null, expected non-null int.'); + try { + final MapPaddingDto output = api.getPadding(arg_viewId!); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMapColorScheme$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMapColorScheme was null.'); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMapColorScheme was null, expected non-null int.'); + try { + final MapColorSchemeDto output = api.getMapColorScheme(arg_viewId!); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapColorScheme$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapColorScheme was null.'); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapColorScheme was null, expected non-null int.'); + final MapColorSchemeDto? arg_mapColorScheme = (args[1] as MapColorSchemeDto?); + assert(arg_mapColorScheme != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapColorScheme was null, expected non-null MapColorSchemeDto.'); + try { + api.setMapColorScheme(arg_viewId!, arg_mapColorScheme!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getForceNightMode$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getForceNightMode was null.'); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getForceNightMode was null, expected non-null int.'); + try { + final NavigationForceNightModeDto output = api.getForceNightMode(arg_viewId!); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setForceNightMode$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setForceNightMode was null.'); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert(arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setForceNightMode was null, expected non-null int.'); + final NavigationForceNightModeDto? arg_forceNightMode = (args[1] as NavigationForceNightModeDto?); + assert(arg_forceNightMode != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setForceNightMode was null, expected non-null NavigationForceNightModeDto.'); + try { + api.setForceNightMode(arg_viewId!, arg_forceNightMode!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + } +} + +abstract class TestImageRegistryApi { + static TestDefaultBinaryMessengerBinding? get _testBinaryMessengerBinding => TestDefaultBinaryMessengerBinding.instance; + static const MessageCodec pigeonChannelCodec = _PigeonCodec(); + + ImageDescriptorDto registerBitmapImage(String imageId, Uint8List bytes, double imagePixelRatio, double? width, double? height); + + void unregisterImage(ImageDescriptorDto imageDescriptor); + + List getRegisteredImages(); + + void clearRegisteredImages(RegisteredImageTypeDto? filter); + + Uint8List? getRegisteredImageData(ImageDescriptorDto imageDescriptor); + + static void setUp(TestImageRegistryApi? api, {BinaryMessenger? binaryMessenger, String messageChannelSuffix = '',}) { + messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.registerBitmapImage$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.registerBitmapImage was null.'); + final List args = (message as List?)!; + final String? arg_imageId = (args[0] as String?); + assert(arg_imageId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.registerBitmapImage was null, expected non-null String.'); + final Uint8List? arg_bytes = (args[1] as Uint8List?); + assert(arg_bytes != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.registerBitmapImage was null, expected non-null Uint8List.'); + final double? arg_imagePixelRatio = (args[2] as double?); + assert(arg_imagePixelRatio != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.registerBitmapImage was null, expected non-null double.'); + final double? arg_width = (args[3] as double?); + final double? arg_height = (args[4] as double?); + try { + final ImageDescriptorDto output = api.registerBitmapImage(arg_imageId!, arg_bytes!, arg_imagePixelRatio!, arg_width, arg_height); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.unregisterImage$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.unregisterImage was null.'); + final List args = (message as List?)!; + final ImageDescriptorDto? arg_imageDescriptor = (args[0] as ImageDescriptorDto?); + assert(arg_imageDescriptor != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.unregisterImage was null, expected non-null ImageDescriptorDto.'); + try { + api.unregisterImage(arg_imageDescriptor!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.getRegisteredImages$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + try { + final List output = api.getRegisteredImages(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.clearRegisteredImages$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.clearRegisteredImages was null.'); + final List args = (message as List?)!; + final RegisteredImageTypeDto? arg_filter = (args[0] as RegisteredImageTypeDto?); + try { + api.clearRegisteredImages(arg_filter); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.getRegisteredImageData$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.getRegisteredImageData was null.'); + final List args = (message as List?)!; + final ImageDescriptorDto? arg_imageDescriptor = (args[0] as ImageDescriptorDto?); + assert(arg_imageDescriptor != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.getRegisteredImageData was null, expected non-null ImageDescriptorDto.'); + try { + final Uint8List? output = api.getRegisteredImageData(arg_imageDescriptor!); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + } +} + +abstract class TestNavigationSessionApi { + static TestDefaultBinaryMessengerBinding? get _testBinaryMessengerBinding => TestDefaultBinaryMessengerBinding.instance; + static const MessageCodec pigeonChannelCodec = _PigeonCodec(); + + Future createNavigationSession(bool abnormalTerminationReportingEnabled, TaskRemovedBehaviorDto behavior); + + bool isInitialized(); + void cleanup(bool resetSession); - Future showTermsAndConditionsDialog( - String title, - String companyName, - bool shouldOnlyShowDriverAwarenessDisclaimer, - TermsAndConditionsUIParamsDto? uiParams, - ); + Future showTermsAndConditionsDialog(String title, String companyName, bool shouldOnlyShowDriverAwarenessDisclaimer, TermsAndConditionsUIParamsDto? uiParams); + + bool areTermsAccepted(); + + void resetTermsAccepted(); + + String getNavSDKVersion(); + + bool isGuidanceRunning(); + + void startGuidance(); + + void stopGuidance(); + + Future setDestinations(DestinationsDto destinations); + + void clearDestinations(); + + Future continueToNextDestination(); + + NavigationTimeAndDistanceDto getCurrentTimeAndDistance(); + + void setAudioGuidance(NavigationAudioGuidanceSettingsDto settings); + + void setSpeedAlertOptions(SpeedAlertOptionsDto options); + + List getRouteSegments(); + + List getTraveledRoute(); + + RouteSegmentDto? getCurrentRouteSegment(); + + void setUserLocation(LatLngDto location); + + void removeUserLocation(); + + void simulateLocationsAlongExistingRoute(); + + void simulateLocationsAlongExistingRouteWithOptions(SimulationOptionsDto options); + + Future simulateLocationsAlongNewRoute(List waypoints); + + Future simulateLocationsAlongNewRouteWithRoutingOptions(List waypoints, RoutingOptionsDto routingOptions); + + Future simulateLocationsAlongNewRouteWithRoutingAndSimulationOptions(List waypoints, RoutingOptionsDto routingOptions, SimulationOptionsDto simulationOptions); + + void pauseSimulation(); + + void resumeSimulation(); + + /// iOS-only method. + void allowBackgroundLocationUpdates(bool allow); + + void enableRoadSnappedLocationUpdates(); + + void disableRoadSnappedLocationUpdates(); + + void enableTurnByTurnNavigationEvents(int? numNextStepsToPreview, StepImageGenerationOptionsDto? options); + + void disableTurnByTurnNavigationEvents(); + + void registerRemainingTimeOrDistanceChangedListener(int remainingTimeThresholdSeconds, int remainingDistanceThresholdMeters); + + static void setUp(TestNavigationSessionApi? api, {BinaryMessenger? binaryMessenger, String messageChannelSuffix = '',}) { + messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.createNavigationSession$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.createNavigationSession was null.'); + final List args = (message as List?)!; + final bool? arg_abnormalTerminationReportingEnabled = (args[0] as bool?); + assert(arg_abnormalTerminationReportingEnabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.createNavigationSession was null, expected non-null bool.'); + final TaskRemovedBehaviorDto? arg_behavior = (args[1] as TaskRemovedBehaviorDto?); + assert(arg_behavior != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.createNavigationSession was null, expected non-null TaskRemovedBehaviorDto.'); + try { + 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())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.isInitialized$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + try { + final bool output = api.isInitialized(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.cleanup$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.cleanup was null.'); + final List args = (message as List?)!; + final bool? arg_resetSession = (args[0] as bool?); + assert(arg_resetSession != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.cleanup was null, expected non-null bool.'); + try { + api.cleanup(arg_resetSession!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.showTermsAndConditionsDialog$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.showTermsAndConditionsDialog was null.'); + final List args = (message as List?)!; + final String? arg_title = (args[0] as String?); + assert(arg_title != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.showTermsAndConditionsDialog was null, expected non-null String.'); + final String? arg_companyName = (args[1] as String?); + assert(arg_companyName != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.showTermsAndConditionsDialog was null, expected non-null String.'); + final bool? arg_shouldOnlyShowDriverAwarenessDisclaimer = (args[2] as bool?); + assert(arg_shouldOnlyShowDriverAwarenessDisclaimer != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.showTermsAndConditionsDialog was null, expected non-null bool.'); + final TermsAndConditionsUIParamsDto? arg_uiParams = (args[3] as TermsAndConditionsUIParamsDto?); + try { + final bool output = await api.showTermsAndConditionsDialog(arg_title!, arg_companyName!, arg_shouldOnlyShowDriverAwarenessDisclaimer!, arg_uiParams); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.areTermsAccepted$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + try { + final bool output = api.areTermsAccepted(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.resetTermsAccepted$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + try { + api.resetTermsAccepted(); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getNavSDKVersion$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + try { + final String output = api.getNavSDKVersion(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.isGuidanceRunning$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + try { + final bool output = api.isGuidanceRunning(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.startGuidance$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + try { + api.startGuidance(); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.stopGuidance$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + try { + api.stopGuidance(); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setDestinations$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setDestinations was null.'); + final List args = (message as List?)!; + final DestinationsDto? arg_destinations = (args[0] as DestinationsDto?); + assert(arg_destinations != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setDestinations was null, expected non-null DestinationsDto.'); + try { + final RouteStatusDto output = await api.setDestinations(arg_destinations!); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.clearDestinations$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + try { + api.clearDestinations(); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.continueToNextDestination$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + try { + final ContinueToNextDestinationResponseDto output = await api.continueToNextDestination(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getCurrentTimeAndDistance$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + try { + final NavigationTimeAndDistanceDto output = api.getCurrentTimeAndDistance(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setAudioGuidance$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setAudioGuidance was null.'); + final List args = (message as List?)!; + final NavigationAudioGuidanceSettingsDto? arg_settings = (args[0] as NavigationAudioGuidanceSettingsDto?); + assert(arg_settings != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setAudioGuidance was null, expected non-null NavigationAudioGuidanceSettingsDto.'); + try { + api.setAudioGuidance(arg_settings!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setSpeedAlertOptions$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setSpeedAlertOptions was null.'); + final List args = (message as List?)!; + final SpeedAlertOptionsDto? arg_options = (args[0] as SpeedAlertOptionsDto?); + assert(arg_options != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setSpeedAlertOptions was null, expected non-null SpeedAlertOptionsDto.'); + try { + api.setSpeedAlertOptions(arg_options!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getRouteSegments$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + try { + final List output = api.getRouteSegments(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getTraveledRoute$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + try { + final List output = api.getTraveledRoute(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getCurrentRouteSegment$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + try { + final RouteSegmentDto? output = api.getCurrentRouteSegment(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setUserLocation$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setUserLocation was null.'); + final List args = (message as List?)!; + final LatLngDto? arg_location = (args[0] as LatLngDto?); + assert(arg_location != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setUserLocation was null, expected non-null LatLngDto.'); + try { + api.setUserLocation(arg_location!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.removeUserLocation$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + try { + api.removeUserLocation(); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongExistingRoute$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + try { + api.simulateLocationsAlongExistingRoute(); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongExistingRouteWithOptions$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongExistingRouteWithOptions was null.'); + final List args = (message as List?)!; + final SimulationOptionsDto? arg_options = (args[0] as SimulationOptionsDto?); + assert(arg_options != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongExistingRouteWithOptions was null, expected non-null SimulationOptionsDto.'); + try { + api.simulateLocationsAlongExistingRouteWithOptions(arg_options!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRoute$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRoute was null.'); + final List args = (message as List?)!; + final List? arg_waypoints = (args[0] as List?)?.cast(); + assert(arg_waypoints != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRoute was null, expected non-null List.'); + try { + final RouteStatusDto output = await api.simulateLocationsAlongNewRoute(arg_waypoints!); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRouteWithRoutingOptions$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRouteWithRoutingOptions was null.'); + final List args = (message as List?)!; + final List? arg_waypoints = (args[0] as List?)?.cast(); + assert(arg_waypoints != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRouteWithRoutingOptions was null, expected non-null List.'); + final RoutingOptionsDto? arg_routingOptions = (args[1] as RoutingOptionsDto?); + assert(arg_routingOptions != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRouteWithRoutingOptions was null, expected non-null RoutingOptionsDto.'); + try { + final RouteStatusDto output = await api.simulateLocationsAlongNewRouteWithRoutingOptions(arg_waypoints!, arg_routingOptions!); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRouteWithRoutingAndSimulationOptions$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRouteWithRoutingAndSimulationOptions was null.'); + final List args = (message as List?)!; + final List? arg_waypoints = (args[0] as List?)?.cast(); + assert(arg_waypoints != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRouteWithRoutingAndSimulationOptions was null, expected non-null List.'); + final RoutingOptionsDto? arg_routingOptions = (args[1] as RoutingOptionsDto?); + assert(arg_routingOptions != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRouteWithRoutingAndSimulationOptions was null, expected non-null RoutingOptionsDto.'); + final SimulationOptionsDto? arg_simulationOptions = (args[2] as SimulationOptionsDto?); + assert(arg_simulationOptions != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRouteWithRoutingAndSimulationOptions was null, expected non-null SimulationOptionsDto.'); + try { + final RouteStatusDto output = await api.simulateLocationsAlongNewRouteWithRoutingAndSimulationOptions(arg_waypoints!, arg_routingOptions!, arg_simulationOptions!); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.pauseSimulation$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + try { + api.pauseSimulation(); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.resumeSimulation$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + try { + api.resumeSimulation(); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.allowBackgroundLocationUpdates$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.allowBackgroundLocationUpdates was null.'); + final List args = (message as List?)!; + final bool? arg_allow = (args[0] as bool?); + assert(arg_allow != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.allowBackgroundLocationUpdates was null, expected non-null bool.'); + try { + api.allowBackgroundLocationUpdates(arg_allow!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.enableRoadSnappedLocationUpdates$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + try { + api.enableRoadSnappedLocationUpdates(); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.disableRoadSnappedLocationUpdates$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + try { + api.disableRoadSnappedLocationUpdates(); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.enableTurnByTurnNavigationEvents$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.enableTurnByTurnNavigationEvents was null.'); + final List args = (message as List?)!; + final int? arg_numNextStepsToPreview = (args[0] as int?); + final StepImageGenerationOptionsDto? arg_options = (args[1] as StepImageGenerationOptionsDto?); + try { + api.enableTurnByTurnNavigationEvents(arg_numNextStepsToPreview, arg_options); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.disableTurnByTurnNavigationEvents$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + try { + api.disableTurnByTurnNavigationEvents(); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.registerRemainingTimeOrDistanceChangedListener$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.registerRemainingTimeOrDistanceChangedListener was null.'); + final List args = (message as List?)!; + final int? arg_remainingTimeThresholdSeconds = (args[0] as int?); + assert(arg_remainingTimeThresholdSeconds != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.registerRemainingTimeOrDistanceChangedListener was null, expected non-null int.'); + final int? arg_remainingDistanceThresholdMeters = (args[1] as int?); + assert(arg_remainingDistanceThresholdMeters != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.registerRemainingTimeOrDistanceChangedListener was null, expected non-null int.'); + try { + api.registerRemainingTimeOrDistanceChangedListener(arg_remainingTimeThresholdSeconds!, arg_remainingDistanceThresholdMeters!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + } +} + +abstract class TestAutoMapViewApi { + static TestDefaultBinaryMessengerBinding? get _testBinaryMessengerBinding => TestDefaultBinaryMessengerBinding.instance; + static const MessageCodec pigeonChannelCodec = _PigeonCodec(); - bool areTermsAccepted(); + /// Sets the map options to be used for Android Auto and CarPlay views. + /// Should be called before the Auto/CarPlay screen is created. + /// This allows customization of mapId and basic map settings. + void setAutoMapOptions(AutoMapOptionsDto mapOptions); - void resetTermsAccepted(); + bool isMyLocationEnabled(); - String getNavSDKVersion(); + void setMyLocationEnabled(bool enabled); - bool isGuidanceRunning(); + LatLngDto? getMyLocation(); - void startGuidance(); + MapTypeDto getMapType(); - void stopGuidance(); + void setMapType(MapTypeDto mapType); - Future setDestinations(DestinationsDto destinations); + void setMapStyle(String styleJson); - void clearDestinations(); + CameraPositionDto getCameraPosition(); - Future continueToNextDestination(); + LatLngBoundsDto getVisibleRegion(); - NavigationTimeAndDistanceDto getCurrentTimeAndDistance(); + void followMyLocation(CameraPerspectiveDto perspective, double? zoomLevel); - void setAudioGuidance(NavigationAudioGuidanceSettingsDto settings); + Future animateCameraToCameraPosition(CameraPositionDto cameraPosition, int? duration); - void setSpeedAlertOptions(SpeedAlertOptionsDto options); + Future animateCameraToLatLng(LatLngDto point, int? duration); - List getRouteSegments(); + Future animateCameraToLatLngBounds(LatLngBoundsDto bounds, double padding, int? duration); - List getTraveledRoute(); + Future animateCameraToLatLngZoom(LatLngDto point, double zoom, int? duration); - RouteSegmentDto? getCurrentRouteSegment(); + Future animateCameraByScroll(double scrollByDx, double scrollByDy, int? duration); - void setUserLocation(LatLngDto location); + Future animateCameraByZoom(double zoomBy, double? focusDx, double? focusDy, int? duration); - void removeUserLocation(); + Future animateCameraToZoom(double zoom, int? duration); - void simulateLocationsAlongExistingRoute(); + void moveCameraToCameraPosition(CameraPositionDto cameraPosition); - void simulateLocationsAlongExistingRouteWithOptions( - SimulationOptionsDto options, - ); + void moveCameraToLatLng(LatLngDto point); + + void moveCameraToLatLngBounds(LatLngBoundsDto bounds, double padding); - Future simulateLocationsAlongNewRoute( - List waypoints, - ); + void moveCameraToLatLngZoom(LatLngDto point, double zoom); - Future simulateLocationsAlongNewRouteWithRoutingOptions( - List waypoints, - RoutingOptionsDto routingOptions, - ); + void moveCameraByScroll(double scrollByDx, double scrollByDy); - Future - simulateLocationsAlongNewRouteWithRoutingAndSimulationOptions( - List waypoints, - RoutingOptionsDto routingOptions, - SimulationOptionsDto simulationOptions, - ); + void moveCameraByZoom(double zoomBy, double? focusDx, double? focusDy); - void pauseSimulation(); + void moveCameraToZoom(double zoom); - void resumeSimulation(); + double getMinZoomPreference(); - /// iOS-only method. - void allowBackgroundLocationUpdates(bool allow); + double getMaxZoomPreference(); - void enableRoadSnappedLocationUpdates(); + void resetMinMaxZoomPreference(); - void disableRoadSnappedLocationUpdates(); + void setMinZoomPreference(double minZoomPreference); - void enableTurnByTurnNavigationEvents( - int? numNextStepsToPreview, - StepImageGenerationOptionsDto? options, - ); + void setMaxZoomPreference(double maxZoomPreference); - void disableTurnByTurnNavigationEvents(); + void setMyLocationButtonEnabled(bool enabled); + + void setConsumeMyLocationButtonClickEventsEnabled(bool enabled); + + void setZoomGesturesEnabled(bool enabled); + + void setZoomControlsEnabled(bool enabled); + + void setCompassEnabled(bool enabled); + + void setRotateGesturesEnabled(bool enabled); + + void setScrollGesturesEnabled(bool enabled); + + void setScrollGesturesDuringRotateOrZoomEnabled(bool enabled); + + void setTiltGesturesEnabled(bool enabled); + + void setMapToolbarEnabled(bool enabled); + + void setTrafficEnabled(bool enabled); + + void setTrafficPromptsEnabled(bool enabled); + + void setTrafficIncidentCardsEnabled(bool enabled); + + void setNavigationTripProgressBarEnabled(bool enabled); + + void setSpeedLimitIconEnabled(bool enabled); + + void setSpeedometerEnabled(bool enabled); + + void setNavigationUIEnabled(bool enabled); - void registerRemainingTimeOrDistanceChangedListener( - int remainingTimeThresholdSeconds, - int remainingDistanceThresholdMeters, - ); - - static void setUp( - TestNavigationSessionApi? api, { - BinaryMessenger? binaryMessenger, - String messageChannelSuffix = '', - }) { - messageChannelSuffix = messageChannelSuffix.isNotEmpty - ? '.$messageChannelSuffix' - : ''; - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.createNavigationSession$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< - Object? - >(pigeonVar_channel, (Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.createNavigationSession was null.', - ); - final List args = (message as List?)!; - final bool? arg_abnormalTerminationReportingEnabled = - (args[0] as bool?); - assert( - arg_abnormalTerminationReportingEnabled != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.createNavigationSession was null, expected non-null bool.', - ); - final TaskRemovedBehaviorDto? arg_behavior = - (args[1] as TaskRemovedBehaviorDto?); - assert( - arg_behavior != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.createNavigationSession was null, expected non-null TaskRemovedBehaviorDto.', - ); - try { - await api.createNavigationSession( - arg_abnormalTerminationReportingEnabled!, - arg_behavior!, - ); + bool isMyLocationButtonEnabled(); + + bool isConsumeMyLocationButtonClickEventsEnabled(); + + bool isZoomGesturesEnabled(); + + bool isZoomControlsEnabled(); + + bool isCompassEnabled(); + + bool isRotateGesturesEnabled(); + + bool isScrollGesturesEnabled(); + + bool isScrollGesturesEnabledDuringRotateOrZoom(); + + bool isTiltGesturesEnabled(); + + bool isMapToolbarEnabled(); + + bool isTrafficEnabled(); + + bool isTrafficPromptsEnabled(); + + bool isTrafficIncidentCardsEnabled(); + + bool isNavigationTripProgressBarEnabled(); + + bool isSpeedLimitIconEnabled(); + + bool isSpeedometerEnabled(); + + bool isNavigationUIEnabled(); + + bool isIndoorEnabled(); + + void setIndoorEnabled(bool enabled); + + IndoorBuildingDto? getFocusedIndoorBuilding(); + + void activateIndoorLevel(int levelIndex); + + void showRouteOverview(); + + List getMarkers(); + + List addMarkers(List markers); + + List updateMarkers(List markers); + + void removeMarkers(List markers); + + void clearMarkers(); + + void clear(); + + List getPolygons(); + + List addPolygons(List polygons); + + List updatePolygons(List polygons); + + void removePolygons(List polygons); + + void clearPolygons(); + + List getPolylines(); + + List addPolylines(List polylines); + + List updatePolylines(List polylines); + + void removePolylines(List polylines); + + void clearPolylines(); + + List getCircles(); + + List addCircles(List circles); + + List updateCircles(List circles); + + void removeCircles(List circles); + + void clearCircles(); + + void enableOnCameraChangedEvents(); + + bool isAutoScreenAvailable(); + + void setPadding(MapPaddingDto padding); + + MapPaddingDto getPadding(); + + MapColorSchemeDto getMapColorScheme(); + + void setMapColorScheme(MapColorSchemeDto mapColorScheme); + + NavigationForceNightModeDto getForceNightMode(); + + void setForceNightMode(NavigationForceNightModeDto forceNightMode); + + void sendCustomNavigationAutoEvent(String event, Object data); + + static void setUp(TestAutoMapViewApi? api, {BinaryMessenger? binaryMessenger, String messageChannelSuffix = '',}) { + messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setAutoMapOptions$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setAutoMapOptions was null.'); + final List args = (message as List?)!; + final AutoMapOptionsDto? arg_mapOptions = (args[0] as AutoMapOptionsDto?); + assert(arg_mapOptions != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setAutoMapOptions was null, expected non-null AutoMapOptionsDto.'); + try { + api.setAutoMapOptions(arg_mapOptions!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isMyLocationEnabled$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + try { + final bool output = api.isMyLocationEnabled(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMyLocationEnabled$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMyLocationEnabled was null.'); + final List args = (message as List?)!; + final bool? arg_enabled = (args[0] as bool?); + assert(arg_enabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMyLocationEnabled was null, expected non-null bool.'); + try { + api.setMyLocationEnabled(arg_enabled!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMyLocation$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + try { + final LatLngDto? output = api.getMyLocation(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMapType$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + try { + final MapTypeDto output = api.getMapType(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapType$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapType was null.'); + final List args = (message as List?)!; + final MapTypeDto? arg_mapType = (args[0] as MapTypeDto?); + assert(arg_mapType != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapType was null, expected non-null MapTypeDto.'); + try { + api.setMapType(arg_mapType!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapStyle$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapStyle was null.'); + final List args = (message as List?)!; + final String? arg_styleJson = (args[0] as String?); + assert(arg_styleJson != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapStyle was null, expected non-null String.'); + try { + api.setMapStyle(arg_styleJson!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getCameraPosition$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + try { + final CameraPositionDto output = api.getCameraPosition(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getVisibleRegion$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + try { + final LatLngBoundsDto output = api.getVisibleRegion(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.followMyLocation$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.followMyLocation was null.'); + final List args = (message as List?)!; + final CameraPerspectiveDto? arg_perspective = (args[0] as CameraPerspectiveDto?); + assert(arg_perspective != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.followMyLocation was null, expected non-null CameraPerspectiveDto.'); + final double? arg_zoomLevel = (args[1] as double?); + try { + api.followMyLocation(arg_perspective!, arg_zoomLevel); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToCameraPosition$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToCameraPosition was null.'); + final List args = (message as List?)!; + final CameraPositionDto? arg_cameraPosition = (args[0] as CameraPositionDto?); + assert(arg_cameraPosition != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToCameraPosition was null, expected non-null CameraPositionDto.'); + final int? arg_duration = (args[1] as int?); + try { + final bool output = await api.animateCameraToCameraPosition(arg_cameraPosition!, arg_duration); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLng$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLng was null.'); + final List args = (message as List?)!; + final LatLngDto? arg_point = (args[0] as LatLngDto?); + assert(arg_point != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLng was null, expected non-null LatLngDto.'); + final int? arg_duration = (args[1] as int?); + try { + final bool output = await api.animateCameraToLatLng(arg_point!, arg_duration); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLngBounds$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLngBounds was null.'); + final List args = (message as List?)!; + final LatLngBoundsDto? arg_bounds = (args[0] as LatLngBoundsDto?); + assert(arg_bounds != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLngBounds was null, expected non-null LatLngBoundsDto.'); + final double? arg_padding = (args[1] as double?); + assert(arg_padding != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLngBounds was null, expected non-null double.'); + final int? arg_duration = (args[2] as int?); + try { + final bool output = await api.animateCameraToLatLngBounds(arg_bounds!, arg_padding!, arg_duration); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLngZoom$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLngZoom was null.'); + final List args = (message as List?)!; + final LatLngDto? arg_point = (args[0] as LatLngDto?); + assert(arg_point != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLngZoom was null, expected non-null LatLngDto.'); + final double? arg_zoom = (args[1] as double?); + assert(arg_zoom != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLngZoom was null, expected non-null double.'); + final int? arg_duration = (args[2] as int?); + try { + final bool output = await api.animateCameraToLatLngZoom(arg_point!, arg_zoom!, arg_duration); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraByScroll$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraByScroll was null.'); + final List args = (message as List?)!; + final double? arg_scrollByDx = (args[0] as double?); + assert(arg_scrollByDx != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraByScroll was null, expected non-null double.'); + final double? arg_scrollByDy = (args[1] as double?); + assert(arg_scrollByDy != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraByScroll was null, expected non-null double.'); + final int? arg_duration = (args[2] as int?); + try { + final bool output = await api.animateCameraByScroll(arg_scrollByDx!, arg_scrollByDy!, arg_duration); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraByZoom$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraByZoom was null.'); + final List args = (message as List?)!; + final double? arg_zoomBy = (args[0] as double?); + assert(arg_zoomBy != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraByZoom was null, expected non-null double.'); + final double? arg_focusDx = (args[1] as double?); + final double? arg_focusDy = (args[2] as double?); + final int? arg_duration = (args[3] as int?); + try { + final bool output = await api.animateCameraByZoom(arg_zoomBy!, arg_focusDx, arg_focusDy, arg_duration); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToZoom$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToZoom was null.'); + final List args = (message as List?)!; + final double? arg_zoom = (args[0] as double?); + assert(arg_zoom != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToZoom was null, expected non-null double.'); + final int? arg_duration = (args[1] as int?); + try { + final bool output = await api.animateCameraToZoom(arg_zoom!, arg_duration); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToCameraPosition$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToCameraPosition was null.'); + final List args = (message as List?)!; + final CameraPositionDto? arg_cameraPosition = (args[0] as CameraPositionDto?); + assert(arg_cameraPosition != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToCameraPosition was null, expected non-null CameraPositionDto.'); + try { + api.moveCameraToCameraPosition(arg_cameraPosition!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLng$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLng was null.'); + final List args = (message as List?)!; + final LatLngDto? arg_point = (args[0] as LatLngDto?); + assert(arg_point != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLng was null, expected non-null LatLngDto.'); + try { + api.moveCameraToLatLng(arg_point!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLngBounds$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLngBounds was null.'); + final List args = (message as List?)!; + final LatLngBoundsDto? arg_bounds = (args[0] as LatLngBoundsDto?); + assert(arg_bounds != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLngBounds was null, expected non-null LatLngBoundsDto.'); + final double? arg_padding = (args[1] as double?); + assert(arg_padding != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLngBounds was null, expected non-null double.'); + try { + api.moveCameraToLatLngBounds(arg_bounds!, arg_padding!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLngZoom$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLngZoom was null.'); + final List args = (message as List?)!; + final LatLngDto? arg_point = (args[0] as LatLngDto?); + assert(arg_point != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLngZoom was null, expected non-null LatLngDto.'); + final double? arg_zoom = (args[1] as double?); + assert(arg_zoom != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLngZoom was null, expected non-null double.'); + try { + api.moveCameraToLatLngZoom(arg_point!, arg_zoom!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraByScroll$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraByScroll was null.'); + final List args = (message as List?)!; + final double? arg_scrollByDx = (args[0] as double?); + assert(arg_scrollByDx != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraByScroll was null, expected non-null double.'); + final double? arg_scrollByDy = (args[1] as double?); + assert(arg_scrollByDy != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraByScroll was null, expected non-null double.'); + try { + api.moveCameraByScroll(arg_scrollByDx!, arg_scrollByDy!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraByZoom$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraByZoom was null.'); + final List args = (message as List?)!; + final double? arg_zoomBy = (args[0] as double?); + assert(arg_zoomBy != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraByZoom was null, expected non-null double.'); + final double? arg_focusDx = (args[1] as double?); + final double? arg_focusDy = (args[2] as double?); + try { + api.moveCameraByZoom(arg_zoomBy!, arg_focusDx, arg_focusDy); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToZoom$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToZoom was null.'); + final List args = (message as List?)!; + final double? arg_zoom = (args[0] as double?); + assert(arg_zoom != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToZoom was null, expected non-null double.'); + try { + api.moveCameraToZoom(arg_zoom!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMinZoomPreference$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + try { + final double output = api.getMinZoomPreference(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMaxZoomPreference$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + try { + final double output = api.getMaxZoomPreference(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.resetMinMaxZoomPreference$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + try { + api.resetMinMaxZoomPreference(); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMinZoomPreference$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMinZoomPreference was null.'); + final List args = (message as List?)!; + final double? arg_minZoomPreference = (args[0] as double?); + assert(arg_minZoomPreference != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMinZoomPreference was null, expected non-null double.'); + try { + api.setMinZoomPreference(arg_minZoomPreference!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMaxZoomPreference$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMaxZoomPreference was null.'); + final List args = (message as List?)!; + final double? arg_maxZoomPreference = (args[0] as double?); + assert(arg_maxZoomPreference != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMaxZoomPreference was null, expected non-null double.'); + try { + api.setMaxZoomPreference(arg_maxZoomPreference!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMyLocationButtonEnabled$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMyLocationButtonEnabled was null.'); + final List args = (message as List?)!; + final bool? arg_enabled = (args[0] as bool?); + assert(arg_enabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMyLocationButtonEnabled was null, expected non-null bool.'); + try { + api.setMyLocationButtonEnabled(arg_enabled!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setConsumeMyLocationButtonClickEventsEnabled$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setConsumeMyLocationButtonClickEventsEnabled was null.'); + final List args = (message as List?)!; + final bool? arg_enabled = (args[0] as bool?); + assert(arg_enabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setConsumeMyLocationButtonClickEventsEnabled was null, expected non-null bool.'); + try { + api.setConsumeMyLocationButtonClickEventsEnabled(arg_enabled!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setZoomGesturesEnabled$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setZoomGesturesEnabled was null.'); + final List args = (message as List?)!; + final bool? arg_enabled = (args[0] as bool?); + assert(arg_enabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setZoomGesturesEnabled was null, expected non-null bool.'); + try { + api.setZoomGesturesEnabled(arg_enabled!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setZoomControlsEnabled$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setZoomControlsEnabled was null.'); + final List args = (message as List?)!; + final bool? arg_enabled = (args[0] as bool?); + assert(arg_enabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setZoomControlsEnabled was null, expected non-null bool.'); + try { + api.setZoomControlsEnabled(arg_enabled!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setCompassEnabled$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setCompassEnabled was null.'); + final List args = (message as List?)!; + final bool? arg_enabled = (args[0] as bool?); + assert(arg_enabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setCompassEnabled was null, expected non-null bool.'); + try { + api.setCompassEnabled(arg_enabled!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setRotateGesturesEnabled$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setRotateGesturesEnabled was null.'); + final List args = (message as List?)!; + final bool? arg_enabled = (args[0] as bool?); + assert(arg_enabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setRotateGesturesEnabled was null, expected non-null bool.'); + try { + api.setRotateGesturesEnabled(arg_enabled!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setScrollGesturesEnabled$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setScrollGesturesEnabled was null.'); + final List args = (message as List?)!; + final bool? arg_enabled = (args[0] as bool?); + assert(arg_enabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setScrollGesturesEnabled was null, expected non-null bool.'); + try { + api.setScrollGesturesEnabled(arg_enabled!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setScrollGesturesDuringRotateOrZoomEnabled$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setScrollGesturesDuringRotateOrZoomEnabled was null.'); + final List args = (message as List?)!; + final bool? arg_enabled = (args[0] as bool?); + assert(arg_enabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setScrollGesturesDuringRotateOrZoomEnabled was null, expected non-null bool.'); + try { + api.setScrollGesturesDuringRotateOrZoomEnabled(arg_enabled!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTiltGesturesEnabled$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTiltGesturesEnabled was null.'); + final List args = (message as List?)!; + final bool? arg_enabled = (args[0] as bool?); + assert(arg_enabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTiltGesturesEnabled was null, expected non-null bool.'); + try { + api.setTiltGesturesEnabled(arg_enabled!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapToolbarEnabled$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapToolbarEnabled was null.'); + final List args = (message as List?)!; + final bool? arg_enabled = (args[0] as bool?); + assert(arg_enabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapToolbarEnabled was null, expected non-null bool.'); + try { + api.setMapToolbarEnabled(arg_enabled!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficEnabled$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficEnabled was null.'); + final List args = (message as List?)!; + final bool? arg_enabled = (args[0] as bool?); + assert(arg_enabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficEnabled was null, expected non-null bool.'); + try { + api.setTrafficEnabled(arg_enabled!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficPromptsEnabled$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficPromptsEnabled was null.'); + final List args = (message as List?)!; + final bool? arg_enabled = (args[0] as bool?); + assert(arg_enabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficPromptsEnabled was null, expected non-null bool.'); + try { + api.setTrafficPromptsEnabled(arg_enabled!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficIncidentCardsEnabled$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficIncidentCardsEnabled was null.'); + final List args = (message as List?)!; + final bool? arg_enabled = (args[0] as bool?); + assert(arg_enabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficIncidentCardsEnabled was null, expected non-null bool.'); + try { + api.setTrafficIncidentCardsEnabled(arg_enabled!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setNavigationTripProgressBarEnabled$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setNavigationTripProgressBarEnabled was null.'); + final List args = (message as List?)!; + final bool? arg_enabled = (args[0] as bool?); + assert(arg_enabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setNavigationTripProgressBarEnabled was null, expected non-null bool.'); + try { + api.setNavigationTripProgressBarEnabled(arg_enabled!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setSpeedLimitIconEnabled$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setSpeedLimitIconEnabled was null.'); + final List args = (message as List?)!; + final bool? arg_enabled = (args[0] as bool?); + assert(arg_enabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setSpeedLimitIconEnabled was null, expected non-null bool.'); + try { + api.setSpeedLimitIconEnabled(arg_enabled!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setSpeedometerEnabled$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setSpeedometerEnabled was null.'); + final List args = (message as List?)!; + final bool? arg_enabled = (args[0] as bool?); + assert(arg_enabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setSpeedometerEnabled was null, expected non-null bool.'); + try { + api.setSpeedometerEnabled(arg_enabled!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setNavigationUIEnabled$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setNavigationUIEnabled was null.'); + final List args = (message as List?)!; + final bool? arg_enabled = (args[0] as bool?); + assert(arg_enabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setNavigationUIEnabled was null, expected non-null bool.'); + try { + api.setNavigationUIEnabled(arg_enabled!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isMyLocationButtonEnabled$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + try { + final bool output = api.isMyLocationButtonEnabled(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isConsumeMyLocationButtonClickEventsEnabled$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + try { + final bool output = api.isConsumeMyLocationButtonClickEventsEnabled(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isZoomGesturesEnabled$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + try { + final bool output = api.isZoomGesturesEnabled(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isZoomControlsEnabled$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + try { + final bool output = api.isZoomControlsEnabled(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isCompassEnabled$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + try { + final bool output = api.isCompassEnabled(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isRotateGesturesEnabled$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + try { + final bool output = api.isRotateGesturesEnabled(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isScrollGesturesEnabled$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + try { + final bool output = api.isScrollGesturesEnabled(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isScrollGesturesEnabledDuringRotateOrZoom$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + try { + final bool output = api.isScrollGesturesEnabledDuringRotateOrZoom(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTiltGesturesEnabled$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + try { + final bool output = api.isTiltGesturesEnabled(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isMapToolbarEnabled$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + try { + final bool output = api.isMapToolbarEnabled(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTrafficEnabled$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + try { + final bool output = api.isTrafficEnabled(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTrafficPromptsEnabled$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + try { + final bool output = api.isTrafficPromptsEnabled(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTrafficIncidentCardsEnabled$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + try { + final bool output = api.isTrafficIncidentCardsEnabled(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isNavigationTripProgressBarEnabled$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + try { + final bool output = api.isNavigationTripProgressBarEnabled(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isSpeedLimitIconEnabled$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + try { + final bool output = api.isSpeedLimitIconEnabled(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isSpeedometerEnabled$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + try { + final bool output = api.isSpeedometerEnabled(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isNavigationUIEnabled$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + try { + final bool output = api.isNavigationUIEnabled(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isIndoorEnabled$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + try { + final bool output = api.isIndoorEnabled(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setIndoorEnabled$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setIndoorEnabled was null.'); + final List args = (message as List?)!; + final bool? arg_enabled = (args[0] as bool?); + assert(arg_enabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setIndoorEnabled was null, expected non-null bool.'); + try { + api.setIndoorEnabled(arg_enabled!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getFocusedIndoorBuilding$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + try { + final IndoorBuildingDto? output = api.getFocusedIndoorBuilding(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.activateIndoorLevel$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.activateIndoorLevel was null.'); + final List args = (message as List?)!; + final int? arg_levelIndex = (args[0] as int?); + assert(arg_levelIndex != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.activateIndoorLevel was null, expected non-null int.'); + try { + api.activateIndoorLevel(arg_levelIndex!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.showRouteOverview$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + try { + api.showRouteOverview(); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.isInitialized$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - try { - final bool output = api.isInitialized(); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.cleanup$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.cleanup was null.', - ); - final List args = (message as List?)!; - final bool? arg_resetSession = (args[0] as bool?); - assert( - arg_resetSession != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.cleanup was null, expected non-null bool.', - ); - try { - api.cleanup(arg_resetSession!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.showTermsAndConditionsDialog$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< - Object? - >(pigeonVar_channel, (Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.showTermsAndConditionsDialog was null.', - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMarkers$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + try { + final List output = api.getMarkers(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addMarkers$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addMarkers was null.'); final List args = (message as List?)!; - final String? arg_title = (args[0] as String?); - assert( - arg_title != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.showTermsAndConditionsDialog was null, expected non-null String.', - ); - final String? arg_companyName = (args[1] as String?); - assert( - arg_companyName != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.showTermsAndConditionsDialog was null, expected non-null String.', - ); - final bool? arg_shouldOnlyShowDriverAwarenessDisclaimer = - (args[2] as bool?); - assert( - arg_shouldOnlyShowDriverAwarenessDisclaimer != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.showTermsAndConditionsDialog was null, expected non-null bool.', - ); - final TermsAndConditionsUIParamsDto? arg_uiParams = - (args[3] as TermsAndConditionsUIParamsDto?); - try { - final bool output = await api.showTermsAndConditionsDialog( - arg_title!, - arg_companyName!, - arg_shouldOnlyShowDriverAwarenessDisclaimer!, - arg_uiParams, - ); + final List? arg_markers = (args[0] as List?)?.cast(); + assert(arg_markers != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addMarkers was null, expected non-null List.'); + try { + final List output = api.addMarkers(arg_markers!); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updateMarkers$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updateMarkers was null.'); + final List args = (message as List?)!; + final List? arg_markers = (args[0] as List?)?.cast(); + assert(arg_markers != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updateMarkers was null, expected non-null List.'); + try { + final List output = api.updateMarkers(arg_markers!); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removeMarkers$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removeMarkers was null.'); + final List args = (message as List?)!; + final List? arg_markers = (args[0] as List?)?.cast(); + assert(arg_markers != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removeMarkers was null, expected non-null List.'); + try { + api.removeMarkers(arg_markers!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearMarkers$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + try { + api.clearMarkers(); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clear$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + try { + api.clear(); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getPolygons$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + try { + final List output = api.getPolygons(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addPolygons$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addPolygons was null.'); + final List args = (message as List?)!; + final List? arg_polygons = (args[0] as List?)?.cast(); + assert(arg_polygons != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addPolygons was null, expected non-null List.'); + try { + final List output = api.addPolygons(arg_polygons!); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updatePolygons$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updatePolygons was null.'); + final List args = (message as List?)!; + final List? arg_polygons = (args[0] as List?)?.cast(); + assert(arg_polygons != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updatePolygons was null, expected non-null List.'); + try { + final List output = api.updatePolygons(arg_polygons!); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removePolygons$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removePolygons was null.'); + final List args = (message as List?)!; + final List? arg_polygons = (args[0] as List?)?.cast(); + assert(arg_polygons != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removePolygons was null, expected non-null List.'); + try { + api.removePolygons(arg_polygons!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearPolygons$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + try { + api.clearPolygons(); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getPolylines$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + try { + final List output = api.getPolylines(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addPolylines$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addPolylines was null.'); + final List args = (message as List?)!; + final List? arg_polylines = (args[0] as List?)?.cast(); + assert(arg_polylines != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addPolylines was null, expected non-null List.'); + try { + final List output = api.addPolylines(arg_polylines!); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updatePolylines$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updatePolylines was null.'); + final List args = (message as List?)!; + final List? arg_polylines = (args[0] as List?)?.cast(); + assert(arg_polylines != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updatePolylines was null, expected non-null List.'); + try { + final List output = api.updatePolylines(arg_polylines!); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removePolylines$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removePolylines was null.'); + final List args = (message as List?)!; + final List? arg_polylines = (args[0] as List?)?.cast(); + assert(arg_polylines != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removePolylines was null, expected non-null List.'); + try { + api.removePolylines(arg_polylines!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearPolylines$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + try { + api.clearPolylines(); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getCircles$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + try { + final List output = api.getCircles(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addCircles$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addCircles was null.'); + final List args = (message as List?)!; + final List? arg_circles = (args[0] as List?)?.cast(); + assert(arg_circles != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addCircles was null, expected non-null List.'); + try { + final List output = api.addCircles(arg_circles!); return [output]; } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.areTermsAccepted$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - try { - final bool output = api.areTermsAccepted(); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.resetTermsAccepted$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - try { - api.resetTermsAccepted(); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getNavSDKVersion$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - try { - final String output = api.getNavSDKVersion(); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.isGuidanceRunning$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - try { - final bool output = api.isGuidanceRunning(); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.startGuidance$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - try { - api.startGuidance(); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.stopGuidance$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - try { - api.stopGuidance(); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setDestinations$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setDestinations was null.', - ); - final List args = (message as List?)!; - final DestinationsDto? arg_destinations = - (args[0] as DestinationsDto?); - assert( - arg_destinations != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setDestinations was null, expected non-null DestinationsDto.', - ); - try { - final RouteStatusDto output = await api.setDestinations( - arg_destinations!, - ); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.clearDestinations$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - try { - api.clearDestinations(); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.continueToNextDestination$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - try { - final ContinueToNextDestinationResponseDto output = await api - .continueToNextDestination(); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getCurrentTimeAndDistance$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - try { - final NavigationTimeAndDistanceDto output = api - .getCurrentTimeAndDistance(); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setAudioGuidance$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setAudioGuidance was null.', - ); - final List args = (message as List?)!; - final NavigationAudioGuidanceSettingsDto? arg_settings = - (args[0] as NavigationAudioGuidanceSettingsDto?); - assert( - arg_settings != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setAudioGuidance was null, expected non-null NavigationAudioGuidanceSettingsDto.', - ); - try { - api.setAudioGuidance(arg_settings!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setSpeedAlertOptions$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setSpeedAlertOptions was null.', - ); - final List args = (message as List?)!; - final SpeedAlertOptionsDto? arg_options = - (args[0] as SpeedAlertOptionsDto?); - assert( - arg_options != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setSpeedAlertOptions was null, expected non-null SpeedAlertOptionsDto.', - ); - try { - api.setSpeedAlertOptions(arg_options!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getRouteSegments$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - try { - final List output = api.getRouteSegments(); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getTraveledRoute$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - try { - final List output = api.getTraveledRoute(); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getCurrentRouteSegment$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - try { - final RouteSegmentDto? output = api.getCurrentRouteSegment(); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setUserLocation$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setUserLocation was null.', - ); - final List args = (message as List?)!; - final LatLngDto? arg_location = (args[0] as LatLngDto?); - assert( - arg_location != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setUserLocation was null, expected non-null LatLngDto.', - ); - try { - api.setUserLocation(arg_location!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.removeUserLocation$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - try { - api.removeUserLocation(); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongExistingRoute$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - try { - api.simulateLocationsAlongExistingRoute(); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongExistingRouteWithOptions$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongExistingRouteWithOptions was null.', - ); - final List args = (message as List?)!; - final SimulationOptionsDto? arg_options = - (args[0] as SimulationOptionsDto?); - assert( - arg_options != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongExistingRouteWithOptions was null, expected non-null SimulationOptionsDto.', - ); - try { - api.simulateLocationsAlongExistingRouteWithOptions( - arg_options!, - ); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRoute$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRoute was null.', - ); - final List args = (message as List?)!; - final List? arg_waypoints = - (args[0] as List?)?.cast(); - assert( - arg_waypoints != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRoute was null, expected non-null List.', - ); - try { - final RouteStatusDto output = await api - .simulateLocationsAlongNewRoute(arg_waypoints!); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRouteWithRoutingOptions$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< - Object? - >(pigeonVar_channel, (Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRouteWithRoutingOptions was null.', - ); - final List args = (message as List?)!; - final List? arg_waypoints = - (args[0] as List?)?.cast(); - assert( - arg_waypoints != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRouteWithRoutingOptions was null, expected non-null List.', - ); - final RoutingOptionsDto? arg_routingOptions = - (args[1] as RoutingOptionsDto?); - assert( - arg_routingOptions != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRouteWithRoutingOptions was null, expected non-null RoutingOptionsDto.', - ); - try { - final RouteStatusDto output = await api - .simulateLocationsAlongNewRouteWithRoutingOptions( - arg_waypoints!, - arg_routingOptions!, - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updateCircles$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updateCircles was null.'); + final List args = (message as List?)!; + final List? arg_circles = (args[0] as List?)?.cast(); + assert(arg_circles != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updateCircles was null, expected non-null List.'); + try { + final List output = api.updateCircles(arg_circles!); return [output]; } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRouteWithRoutingAndSimulationOptions$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< - Object? - >(pigeonVar_channel, (Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRouteWithRoutingAndSimulationOptions was null.', - ); - final List args = (message as List?)!; - final List? arg_waypoints = - (args[0] as List?)?.cast(); - assert( - arg_waypoints != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRouteWithRoutingAndSimulationOptions was null, expected non-null List.', - ); - final RoutingOptionsDto? arg_routingOptions = - (args[1] as RoutingOptionsDto?); - assert( - arg_routingOptions != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRouteWithRoutingAndSimulationOptions was null, expected non-null RoutingOptionsDto.', - ); - final SimulationOptionsDto? arg_simulationOptions = - (args[2] as SimulationOptionsDto?); - assert( - arg_simulationOptions != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRouteWithRoutingAndSimulationOptions was null, expected non-null SimulationOptionsDto.', - ); - try { - final RouteStatusDto output = await api - .simulateLocationsAlongNewRouteWithRoutingAndSimulationOptions( - arg_waypoints!, - arg_routingOptions!, - arg_simulationOptions!, - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removeCircles$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removeCircles was null.'); + final List args = (message as List?)!; + final List? arg_circles = (args[0] as List?)?.cast(); + assert(arg_circles != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removeCircles was null, expected non-null List.'); + try { + api.removeCircles(arg_circles!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearCircles$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + try { + api.clearCircles(); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.enableOnCameraChangedEvents$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + try { + api.enableOnCameraChangedEvents(); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isAutoScreenAvailable$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + try { + final bool output = api.isAutoScreenAvailable(); return [output]; } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.pauseSimulation$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - try { - api.pauseSimulation(); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.resumeSimulation$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - try { - api.resumeSimulation(); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.allowBackgroundLocationUpdates$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.allowBackgroundLocationUpdates was null.', - ); - final List args = (message as List?)!; - final bool? arg_allow = (args[0] as bool?); - assert( - arg_allow != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.allowBackgroundLocationUpdates was null, expected non-null bool.', - ); - try { - api.allowBackgroundLocationUpdates(arg_allow!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.enableRoadSnappedLocationUpdates$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - try { - api.enableRoadSnappedLocationUpdates(); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.disableRoadSnappedLocationUpdates$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - try { - api.disableRoadSnappedLocationUpdates(); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.enableTurnByTurnNavigationEvents$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.enableTurnByTurnNavigationEvents was null.', - ); - final List args = (message as List?)!; - final int? arg_numNextStepsToPreview = (args[0] as int?); - final StepImageGenerationOptionsDto? arg_options = - (args[1] as StepImageGenerationOptionsDto?); - try { - api.enableTurnByTurnNavigationEvents( - arg_numNextStepsToPreview, - arg_options, - ); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.disableTurnByTurnNavigationEvents$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - try { - api.disableTurnByTurnNavigationEvents(); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.registerRemainingTimeOrDistanceChangedListener$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< - Object? - >(pigeonVar_channel, (Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.registerRemainingTimeOrDistanceChangedListener was null.', - ); - final List args = (message as List?)!; - final int? arg_remainingTimeThresholdSeconds = (args[0] as int?); - assert( - arg_remainingTimeThresholdSeconds != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.registerRemainingTimeOrDistanceChangedListener was null, expected non-null int.', - ); - final int? arg_remainingDistanceThresholdMeters = (args[1] as int?); - assert( - arg_remainingDistanceThresholdMeters != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.registerRemainingTimeOrDistanceChangedListener was null, expected non-null int.', - ); - try { - api.registerRemainingTimeOrDistanceChangedListener( - arg_remainingTimeThresholdSeconds!, - arg_remainingDistanceThresholdMeters!, - ); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } - } -} - -abstract class TestAutoMapViewApi { - static TestDefaultBinaryMessengerBinding? get _testBinaryMessengerBinding => - TestDefaultBinaryMessengerBinding.instance; - static const MessageCodec pigeonChannelCodec = _PigeonCodec(); - - /// Sets the map options to be used for Android Auto and CarPlay views. - /// Should be called before the Auto/CarPlay screen is created. - /// This allows customization of mapId and basic map settings. - void setAutoMapOptions(AutoMapOptionsDto mapOptions); - - bool isMyLocationEnabled(); - - void setMyLocationEnabled(bool enabled); - - LatLngDto? getMyLocation(); - - MapTypeDto getMapType(); - - void setMapType(MapTypeDto mapType); - - void setMapStyle(String styleJson); - - CameraPositionDto getCameraPosition(); - - LatLngBoundsDto getVisibleRegion(); - - void followMyLocation(CameraPerspectiveDto perspective, double? zoomLevel); - - Future animateCameraToCameraPosition( - CameraPositionDto cameraPosition, - int? duration, - ); - - Future animateCameraToLatLng(LatLngDto point, int? duration); - - Future animateCameraToLatLngBounds( - LatLngBoundsDto bounds, - double padding, - int? duration, - ); - - Future animateCameraToLatLngZoom( - LatLngDto point, - double zoom, - int? duration, - ); - - Future animateCameraByScroll( - double scrollByDx, - double scrollByDy, - int? duration, - ); - - Future animateCameraByZoom( - double zoomBy, - double? focusDx, - double? focusDy, - int? duration, - ); - - Future animateCameraToZoom(double zoom, int? duration); - - void moveCameraToCameraPosition(CameraPositionDto cameraPosition); - - void moveCameraToLatLng(LatLngDto point); - - void moveCameraToLatLngBounds(LatLngBoundsDto bounds, double padding); - - void moveCameraToLatLngZoom(LatLngDto point, double zoom); - - void moveCameraByScroll(double scrollByDx, double scrollByDy); - - void moveCameraByZoom(double zoomBy, double? focusDx, double? focusDy); - - void moveCameraToZoom(double zoom); - - double getMinZoomPreference(); - - double getMaxZoomPreference(); - - void resetMinMaxZoomPreference(); - - void setMinZoomPreference(double minZoomPreference); - - void setMaxZoomPreference(double maxZoomPreference); - - void setMyLocationButtonEnabled(bool enabled); - - void setConsumeMyLocationButtonClickEventsEnabled(bool enabled); - - void setZoomGesturesEnabled(bool enabled); - - void setZoomControlsEnabled(bool enabled); - - void setCompassEnabled(bool enabled); - - void setRotateGesturesEnabled(bool enabled); - - void setScrollGesturesEnabled(bool enabled); - - void setScrollGesturesDuringRotateOrZoomEnabled(bool enabled); - - void setTiltGesturesEnabled(bool enabled); - - void setMapToolbarEnabled(bool enabled); - - void setTrafficEnabled(bool enabled); - - void setTrafficPromptsEnabled(bool enabled); - - void setTrafficIncidentCardsEnabled(bool enabled); - - void setNavigationTripProgressBarEnabled(bool enabled); - - void setSpeedLimitIconEnabled(bool enabled); - - void setSpeedometerEnabled(bool enabled); - - void setNavigationUIEnabled(bool enabled); - - bool isMyLocationButtonEnabled(); - - bool isConsumeMyLocationButtonClickEventsEnabled(); - - bool isZoomGesturesEnabled(); - - bool isZoomControlsEnabled(); - - bool isCompassEnabled(); - - bool isRotateGesturesEnabled(); - - bool isScrollGesturesEnabled(); - - bool isScrollGesturesEnabledDuringRotateOrZoom(); - - bool isTiltGesturesEnabled(); - - bool isMapToolbarEnabled(); - - bool isTrafficEnabled(); - - bool isTrafficPromptsEnabled(); - - bool isTrafficIncidentCardsEnabled(); - - bool isNavigationTripProgressBarEnabled(); - - bool isSpeedLimitIconEnabled(); - - bool isSpeedometerEnabled(); - - bool isNavigationUIEnabled(); - - bool isIndoorEnabled(); - - void setIndoorEnabled(bool enabled); - - IndoorBuildingDto? getFocusedIndoorBuilding(); - - void activateIndoorLevel(int levelIndex); - - void showRouteOverview(); - - List getMarkers(); - - List addMarkers(List markers); - - List updateMarkers(List markers); - - void removeMarkers(List markers); - - void clearMarkers(); - - void clear(); - - List getPolygons(); - - List addPolygons(List polygons); - - List updatePolygons(List polygons); - - void removePolygons(List polygons); - - void clearPolygons(); - - List getPolylines(); - - List addPolylines(List polylines); - - List updatePolylines(List polylines); - - void removePolylines(List polylines); - - void clearPolylines(); - - List getCircles(); - - List addCircles(List circles); - - List updateCircles(List circles); - - void removeCircles(List circles); - - void clearCircles(); - - void enableOnCameraChangedEvents(); - - bool isAutoScreenAvailable(); - - void setPadding(MapPaddingDto padding); - - MapPaddingDto getPadding(); - - MapColorSchemeDto getMapColorScheme(); - - void setMapColorScheme(MapColorSchemeDto mapColorScheme); - - NavigationForceNightModeDto getForceNightMode(); - - void setForceNightMode(NavigationForceNightModeDto forceNightMode); - - void sendCustomNavigationAutoEvent(String event, Object data); - - static void setUp( - TestAutoMapViewApi? api, { - BinaryMessenger? binaryMessenger, - String messageChannelSuffix = '', - }) { - messageChannelSuffix = messageChannelSuffix.isNotEmpty - ? '.$messageChannelSuffix' - : ''; - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setAutoMapOptions$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setAutoMapOptions was null.', - ); - final List args = (message as List?)!; - final AutoMapOptionsDto? arg_mapOptions = - (args[0] as AutoMapOptionsDto?); - assert( - arg_mapOptions != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setAutoMapOptions was null, expected non-null AutoMapOptionsDto.', - ); - try { - api.setAutoMapOptions(arg_mapOptions!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isMyLocationEnabled$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - try { - final bool output = api.isMyLocationEnabled(); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMyLocationEnabled$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMyLocationEnabled was null.', - ); - final List args = (message as List?)!; - final bool? arg_enabled = (args[0] as bool?); - assert( - arg_enabled != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMyLocationEnabled was null, expected non-null bool.', - ); - try { - api.setMyLocationEnabled(arg_enabled!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMyLocation$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - try { - final LatLngDto? output = api.getMyLocation(); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMapType$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - try { - final MapTypeDto output = api.getMapType(); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapType$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapType was null.', - ); - final List args = (message as List?)!; - final MapTypeDto? arg_mapType = (args[0] as MapTypeDto?); - assert( - arg_mapType != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapType was null, expected non-null MapTypeDto.', - ); - try { - api.setMapType(arg_mapType!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapStyle$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapStyle was null.', - ); - final List args = (message as List?)!; - final String? arg_styleJson = (args[0] as String?); - assert( - arg_styleJson != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapStyle was null, expected non-null String.', - ); - try { - api.setMapStyle(arg_styleJson!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getCameraPosition$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - try { - final CameraPositionDto output = api.getCameraPosition(); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getVisibleRegion$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - try { - final LatLngBoundsDto output = api.getVisibleRegion(); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.followMyLocation$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.followMyLocation was null.', - ); - final List args = (message as List?)!; - final CameraPerspectiveDto? arg_perspective = - (args[0] as CameraPerspectiveDto?); - assert( - arg_perspective != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.followMyLocation was null, expected non-null CameraPerspectiveDto.', - ); - final double? arg_zoomLevel = (args[1] as double?); - try { - api.followMyLocation(arg_perspective!, arg_zoomLevel); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToCameraPosition$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToCameraPosition was null.', - ); - final List args = (message as List?)!; - final CameraPositionDto? arg_cameraPosition = - (args[0] as CameraPositionDto?); - assert( - arg_cameraPosition != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToCameraPosition was null, expected non-null CameraPositionDto.', - ); - final int? arg_duration = (args[1] as int?); - try { - final bool output = await api.animateCameraToCameraPosition( - arg_cameraPosition!, - arg_duration, - ); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLng$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLng was null.', - ); - final List args = (message as List?)!; - final LatLngDto? arg_point = (args[0] as LatLngDto?); - assert( - arg_point != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLng was null, expected non-null LatLngDto.', - ); - final int? arg_duration = (args[1] as int?); - try { - final bool output = await api.animateCameraToLatLng( - arg_point!, - arg_duration, - ); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLngBounds$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< - Object? - >(pigeonVar_channel, (Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLngBounds was null.', - ); + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setPadding$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setPadding was null.'); final List args = (message as List?)!; - final LatLngBoundsDto? arg_bounds = (args[0] as LatLngBoundsDto?); - assert( - arg_bounds != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLngBounds was null, expected non-null LatLngBoundsDto.', - ); - final double? arg_padding = (args[1] as double?); - assert( - arg_padding != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLngBounds was null, expected non-null double.', - ); - final int? arg_duration = (args[2] as int?); + final MapPaddingDto? arg_padding = (args[0] as MapPaddingDto?); + assert(arg_padding != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setPadding was null, expected non-null MapPaddingDto.'); try { - final bool output = await api.animateCameraToLatLngBounds( - arg_bounds!, - arg_padding!, - arg_duration, - ); - return [output]; + api.setPadding(arg_padding!); + return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLngZoom$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getPadding$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< - Object? - >(pigeonVar_channel, (Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLngZoom was null.', - ); - final List args = (message as List?)!; - final LatLngDto? arg_point = (args[0] as LatLngDto?); - assert( - arg_point != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLngZoom was null, expected non-null LatLngDto.', - ); - final double? arg_zoom = (args[1] as double?); - assert( - arg_zoom != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLngZoom was null, expected non-null double.', - ); - final int? arg_duration = (args[2] as int?); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { try { - final bool output = await api.animateCameraToLatLngZoom( - arg_point!, - arg_zoom!, - arg_duration, - ); + final MapPaddingDto output = api.getPadding(); return [output]; } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraByScroll$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMapColorScheme$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< - Object? - >(pigeonVar_channel, (Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraByScroll was null.', - ); - final List args = (message as List?)!; - final double? arg_scrollByDx = (args[0] as double?); - assert( - arg_scrollByDx != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraByScroll was null, expected non-null double.', - ); - final double? arg_scrollByDy = (args[1] as double?); - assert( - arg_scrollByDy != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraByScroll was null, expected non-null double.', - ); - final int? arg_duration = (args[2] as int?); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { try { - final bool output = await api.animateCameraByScroll( - arg_scrollByDx!, - arg_scrollByDy!, - arg_duration, - ); + final MapColorSchemeDto output = api.getMapColorScheme(); return [output]; } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraByZoom$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraByZoom was null.', - ); - final List args = (message as List?)!; - final double? arg_zoomBy = (args[0] as double?); - assert( - arg_zoomBy != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraByZoom was null, expected non-null double.', - ); - final double? arg_focusDx = (args[1] as double?); - final double? arg_focusDy = (args[2] as double?); - final int? arg_duration = (args[3] as int?); - try { - final bool output = await api.animateCameraByZoom( - arg_zoomBy!, - arg_focusDx, - arg_focusDy, - arg_duration, - ); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToZoom$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToZoom was null.', - ); - final List args = (message as List?)!; - final double? arg_zoom = (args[0] as double?); - assert( - arg_zoom != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToZoom was null, expected non-null double.', - ); - final int? arg_duration = (args[1] as int?); - try { - final bool output = await api.animateCameraToZoom( - arg_zoom!, - arg_duration, - ); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToCameraPosition$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToCameraPosition was null.', - ); - final List args = (message as List?)!; - final CameraPositionDto? arg_cameraPosition = - (args[0] as CameraPositionDto?); - assert( - arg_cameraPosition != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToCameraPosition was null, expected non-null CameraPositionDto.', - ); - try { - api.moveCameraToCameraPosition(arg_cameraPosition!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLng$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLng was null.', - ); - final List args = (message as List?)!; - final LatLngDto? arg_point = (args[0] as LatLngDto?); - assert( - arg_point != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLng was null, expected non-null LatLngDto.', - ); - try { - api.moveCameraToLatLng(arg_point!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLngBounds$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< - Object? - >(pigeonVar_channel, (Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLngBounds was null.', - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapColorScheme$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapColorScheme was null.'); final List args = (message as List?)!; - final LatLngBoundsDto? arg_bounds = (args[0] as LatLngBoundsDto?); - assert( - arg_bounds != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLngBounds was null, expected non-null LatLngBoundsDto.', - ); - final double? arg_padding = (args[1] as double?); - assert( - arg_padding != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLngBounds was null, expected non-null double.', - ); + final MapColorSchemeDto? arg_mapColorScheme = (args[0] as MapColorSchemeDto?); + assert(arg_mapColorScheme != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapColorScheme was null, expected non-null MapColorSchemeDto.'); try { - api.moveCameraToLatLngBounds(arg_bounds!, arg_padding!); + api.setMapColorScheme(arg_mapColorScheme!); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLngZoom$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getForceNightMode$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< - Object? - >(pigeonVar_channel, (Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLngZoom was null.', - ); - final List args = (message as List?)!; - final LatLngDto? arg_point = (args[0] as LatLngDto?); - assert( - arg_point != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLngZoom was null, expected non-null LatLngDto.', - ); - final double? arg_zoom = (args[1] as double?); - assert( - arg_zoom != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLngZoom was null, expected non-null double.', - ); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { try { - api.moveCameraToLatLngZoom(arg_point!, arg_zoom!); - return wrapResponse(empty: true); + final NavigationForceNightModeDto output = api.getForceNightMode(); + return [output]; } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } } { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraByScroll$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setForceNightMode$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< - Object? - >(pigeonVar_channel, (Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraByScroll was null.', - ); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setForceNightMode was null.'); final List args = (message as List?)!; - final double? arg_scrollByDx = (args[0] as double?); - assert( - arg_scrollByDx != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraByScroll was null, expected non-null double.', - ); - final double? arg_scrollByDy = (args[1] as double?); - assert( - arg_scrollByDy != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraByScroll was null, expected non-null double.', - ); + final NavigationForceNightModeDto? arg_forceNightMode = (args[0] as NavigationForceNightModeDto?); + assert(arg_forceNightMode != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setForceNightMode was null, expected non-null NavigationForceNightModeDto.'); try { - api.moveCameraByScroll(arg_scrollByDx!, arg_scrollByDy!); + api.setForceNightMode(arg_forceNightMode!); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraByZoom$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraByZoom was null.', - ); - final List args = (message as List?)!; - final double? arg_zoomBy = (args[0] as double?); - assert( - arg_zoomBy != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraByZoom was null, expected non-null double.', - ); - final double? arg_focusDx = (args[1] as double?); - final double? arg_focusDy = (args[2] as double?); - try { - api.moveCameraByZoom(arg_zoomBy!, arg_focusDx, arg_focusDy); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToZoom$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToZoom was null.', - ); - final List args = (message as List?)!; - final double? arg_zoom = (args[0] as double?); - assert( - arg_zoom != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToZoom was null, expected non-null double.', - ); - try { - api.moveCameraToZoom(arg_zoom!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMinZoomPreference$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - try { - final double output = api.getMinZoomPreference(); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMaxZoomPreference$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - try { - final double output = api.getMaxZoomPreference(); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.resetMinMaxZoomPreference$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - try { - api.resetMinMaxZoomPreference(); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMinZoomPreference$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMinZoomPreference was null.', - ); - final List args = (message as List?)!; - final double? arg_minZoomPreference = (args[0] as double?); - assert( - arg_minZoomPreference != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMinZoomPreference was null, expected non-null double.', - ); - try { - api.setMinZoomPreference(arg_minZoomPreference!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMaxZoomPreference$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMaxZoomPreference was null.', - ); - final List args = (message as List?)!; - final double? arg_maxZoomPreference = (args[0] as double?); - assert( - arg_maxZoomPreference != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMaxZoomPreference was null, expected non-null double.', - ); - try { - api.setMaxZoomPreference(arg_maxZoomPreference!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMyLocationButtonEnabled$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMyLocationButtonEnabled was null.', - ); - final List args = (message as List?)!; - final bool? arg_enabled = (args[0] as bool?); - assert( - arg_enabled != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMyLocationButtonEnabled was null, expected non-null bool.', - ); - try { - api.setMyLocationButtonEnabled(arg_enabled!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setConsumeMyLocationButtonClickEventsEnabled$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setConsumeMyLocationButtonClickEventsEnabled was null.', - ); - final List args = (message as List?)!; - final bool? arg_enabled = (args[0] as bool?); - assert( - arg_enabled != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setConsumeMyLocationButtonClickEventsEnabled was null, expected non-null bool.', - ); - try { - api.setConsumeMyLocationButtonClickEventsEnabled(arg_enabled!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setZoomGesturesEnabled$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setZoomGesturesEnabled was null.', - ); - final List args = (message as List?)!; - final bool? arg_enabled = (args[0] as bool?); - assert( - arg_enabled != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setZoomGesturesEnabled was null, expected non-null bool.', - ); - try { - api.setZoomGesturesEnabled(arg_enabled!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setZoomControlsEnabled$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setZoomControlsEnabled was null.', - ); - final List args = (message as List?)!; - final bool? arg_enabled = (args[0] as bool?); - assert( - arg_enabled != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setZoomControlsEnabled was null, expected non-null bool.', - ); - try { - api.setZoomControlsEnabled(arg_enabled!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setCompassEnabled$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setCompassEnabled was null.', - ); - final List args = (message as List?)!; - final bool? arg_enabled = (args[0] as bool?); - assert( - arg_enabled != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setCompassEnabled was null, expected non-null bool.', - ); - try { - api.setCompassEnabled(arg_enabled!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setRotateGesturesEnabled$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setRotateGesturesEnabled was null.', - ); - final List args = (message as List?)!; - final bool? arg_enabled = (args[0] as bool?); - assert( - arg_enabled != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setRotateGesturesEnabled was null, expected non-null bool.', - ); - try { - api.setRotateGesturesEnabled(arg_enabled!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setScrollGesturesEnabled$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setScrollGesturesEnabled was null.', - ); - final List args = (message as List?)!; - final bool? arg_enabled = (args[0] as bool?); - assert( - arg_enabled != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setScrollGesturesEnabled was null, expected non-null bool.', - ); - try { - api.setScrollGesturesEnabled(arg_enabled!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setScrollGesturesDuringRotateOrZoomEnabled$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setScrollGesturesDuringRotateOrZoomEnabled was null.', - ); - final List args = (message as List?)!; - final bool? arg_enabled = (args[0] as bool?); - assert( - arg_enabled != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setScrollGesturesDuringRotateOrZoomEnabled was null, expected non-null bool.', - ); - try { - api.setScrollGesturesDuringRotateOrZoomEnabled(arg_enabled!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTiltGesturesEnabled$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTiltGesturesEnabled was null.', - ); - final List args = (message as List?)!; - final bool? arg_enabled = (args[0] as bool?); - assert( - arg_enabled != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTiltGesturesEnabled was null, expected non-null bool.', - ); - try { - api.setTiltGesturesEnabled(arg_enabled!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapToolbarEnabled$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapToolbarEnabled was null.', - ); - final List args = (message as List?)!; - final bool? arg_enabled = (args[0] as bool?); - assert( - arg_enabled != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapToolbarEnabled was null, expected non-null bool.', - ); - try { - api.setMapToolbarEnabled(arg_enabled!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficEnabled$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficEnabled was null.', - ); - final List args = (message as List?)!; - final bool? arg_enabled = (args[0] as bool?); - assert( - arg_enabled != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficEnabled was null, expected non-null bool.', - ); - try { - api.setTrafficEnabled(arg_enabled!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficPromptsEnabled$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficPromptsEnabled was null.', - ); - final List args = (message as List?)!; - final bool? arg_enabled = (args[0] as bool?); - assert( - arg_enabled != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficPromptsEnabled was null, expected non-null bool.', - ); - try { - api.setTrafficPromptsEnabled(arg_enabled!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficIncidentCardsEnabled$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficIncidentCardsEnabled was null.', - ); - final List args = (message as List?)!; - final bool? arg_enabled = (args[0] as bool?); - assert( - arg_enabled != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficIncidentCardsEnabled was null, expected non-null bool.', - ); - try { - api.setTrafficIncidentCardsEnabled(arg_enabled!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setNavigationTripProgressBarEnabled$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setNavigationTripProgressBarEnabled was null.', - ); - final List args = (message as List?)!; - final bool? arg_enabled = (args[0] as bool?); - assert( - arg_enabled != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setNavigationTripProgressBarEnabled was null, expected non-null bool.', - ); - try { - api.setNavigationTripProgressBarEnabled(arg_enabled!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setSpeedLimitIconEnabled$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setSpeedLimitIconEnabled was null.', - ); - final List args = (message as List?)!; - final bool? arg_enabled = (args[0] as bool?); - assert( - arg_enabled != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setSpeedLimitIconEnabled was null, expected non-null bool.', - ); - try { - api.setSpeedLimitIconEnabled(arg_enabled!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setSpeedometerEnabled$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setSpeedometerEnabled was null.', - ); - final List args = (message as List?)!; - final bool? arg_enabled = (args[0] as bool?); - assert( - arg_enabled != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setSpeedometerEnabled was null, expected non-null bool.', - ); - try { - api.setSpeedometerEnabled(arg_enabled!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setNavigationUIEnabled$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setNavigationUIEnabled was null.', - ); - final List args = (message as List?)!; - final bool? arg_enabled = (args[0] as bool?); - assert( - arg_enabled != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setNavigationUIEnabled was null, expected non-null bool.', - ); - try { - api.setNavigationUIEnabled(arg_enabled!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isMyLocationButtonEnabled$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - try { - final bool output = api.isMyLocationButtonEnabled(); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isConsumeMyLocationButtonClickEventsEnabled$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - try { - final bool output = api - .isConsumeMyLocationButtonClickEventsEnabled(); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isZoomGesturesEnabled$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - try { - final bool output = api.isZoomGesturesEnabled(); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isZoomControlsEnabled$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - try { - final bool output = api.isZoomControlsEnabled(); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isCompassEnabled$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - try { - final bool output = api.isCompassEnabled(); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isRotateGesturesEnabled$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - try { - final bool output = api.isRotateGesturesEnabled(); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isScrollGesturesEnabled$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - try { - final bool output = api.isScrollGesturesEnabled(); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isScrollGesturesEnabledDuringRotateOrZoom$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - try { - final bool output = api - .isScrollGesturesEnabledDuringRotateOrZoom(); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTiltGesturesEnabled$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - try { - final bool output = api.isTiltGesturesEnabled(); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isMapToolbarEnabled$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - try { - final bool output = api.isMapToolbarEnabled(); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTrafficEnabled$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - try { - final bool output = api.isTrafficEnabled(); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTrafficPromptsEnabled$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - try { - final bool output = api.isTrafficPromptsEnabled(); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTrafficIncidentCardsEnabled$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - try { - final bool output = api.isTrafficIncidentCardsEnabled(); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isNavigationTripProgressBarEnabled$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - try { - final bool output = api.isNavigationTripProgressBarEnabled(); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isSpeedLimitIconEnabled$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - try { - final bool output = api.isSpeedLimitIconEnabled(); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isSpeedometerEnabled$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - try { - final bool output = api.isSpeedometerEnabled(); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isNavigationUIEnabled$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - try { - final bool output = api.isNavigationUIEnabled(); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isIndoorEnabled$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - try { - final bool output = api.isIndoorEnabled(); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setIndoorEnabled$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setIndoorEnabled was null.', - ); - final List args = (message as List?)!; - final bool? arg_enabled = (args[0] as bool?); - assert( - arg_enabled != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setIndoorEnabled was null, expected non-null bool.', - ); - try { - api.setIndoorEnabled(arg_enabled!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getFocusedIndoorBuilding$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - try { - final IndoorBuildingDto? output = api - .getFocusedIndoorBuilding(); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.activateIndoorLevel$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.activateIndoorLevel was null.', - ); - final List args = (message as List?)!; - final int? arg_levelIndex = (args[0] as int?); - assert( - arg_levelIndex != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.activateIndoorLevel was null, expected non-null int.', - ); - try { - api.activateIndoorLevel(arg_levelIndex!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.showRouteOverview$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - try { - api.showRouteOverview(); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMarkers$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - try { - final List output = api.getMarkers(); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addMarkers$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addMarkers was null.', - ); - final List args = (message as List?)!; - final List? arg_markers = (args[0] as List?) - ?.cast(); - assert( - arg_markers != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addMarkers was null, expected non-null List.', - ); - try { - final List output = api.addMarkers(arg_markers!); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updateMarkers$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updateMarkers was null.', - ); - final List args = (message as List?)!; - final List? arg_markers = (args[0] as List?) - ?.cast(); - assert( - arg_markers != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updateMarkers was null, expected non-null List.', - ); - try { - final List output = api.updateMarkers(arg_markers!); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removeMarkers$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removeMarkers was null.', - ); - final List args = (message as List?)!; - final List? arg_markers = (args[0] as List?) - ?.cast(); - assert( - arg_markers != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removeMarkers was null, expected non-null List.', - ); - try { - api.removeMarkers(arg_markers!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearMarkers$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - try { - api.clearMarkers(); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clear$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - try { - api.clear(); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getPolygons$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - try { - final List output = api.getPolygons(); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addPolygons$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addPolygons was null.', - ); - final List args = (message as List?)!; - final List? arg_polygons = (args[0] as List?) - ?.cast(); - assert( - arg_polygons != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addPolygons was null, expected non-null List.', - ); - try { - final List output = api.addPolygons(arg_polygons!); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updatePolygons$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updatePolygons was null.', - ); - final List args = (message as List?)!; - final List? arg_polygons = (args[0] as List?) - ?.cast(); - assert( - arg_polygons != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updatePolygons was null, expected non-null List.', - ); - try { - final List output = api.updatePolygons( - arg_polygons!, - ); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removePolygons$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removePolygons was null.', - ); - final List args = (message as List?)!; - final List? arg_polygons = (args[0] as List?) - ?.cast(); - assert( - arg_polygons != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removePolygons was null, expected non-null List.', - ); - try { - api.removePolygons(arg_polygons!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearPolygons$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - try { - api.clearPolygons(); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getPolylines$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - try { - final List output = api.getPolylines(); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addPolylines$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addPolylines was null.', - ); - final List args = (message as List?)!; - final List? arg_polylines = - (args[0] as List?)?.cast(); - assert( - arg_polylines != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addPolylines was null, expected non-null List.', - ); - try { - final List output = api.addPolylines( - arg_polylines!, - ); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updatePolylines$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updatePolylines was null.', - ); - final List args = (message as List?)!; - final List? arg_polylines = - (args[0] as List?)?.cast(); - assert( - arg_polylines != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updatePolylines was null, expected non-null List.', - ); - try { - final List output = api.updatePolylines( - arg_polylines!, - ); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removePolylines$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removePolylines was null.', - ); - final List args = (message as List?)!; - final List? arg_polylines = - (args[0] as List?)?.cast(); - assert( - arg_polylines != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removePolylines was null, expected non-null List.', - ); - try { - api.removePolylines(arg_polylines!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearPolylines$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - try { - api.clearPolylines(); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getCircles$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - try { - final List output = api.getCircles(); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addCircles$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addCircles was null.', - ); - final List args = (message as List?)!; - final List? arg_circles = (args[0] as List?) - ?.cast(); - assert( - arg_circles != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addCircles was null, expected non-null List.', - ); - try { - final List output = api.addCircles(arg_circles!); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updateCircles$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updateCircles was null.', - ); - final List args = (message as List?)!; - final List? arg_circles = (args[0] as List?) - ?.cast(); - assert( - arg_circles != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updateCircles was null, expected non-null List.', - ); - try { - final List output = api.updateCircles(arg_circles!); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removeCircles$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removeCircles was null.', - ); - final List args = (message as List?)!; - final List? arg_circles = (args[0] as List?) - ?.cast(); - assert( - arg_circles != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removeCircles was null, expected non-null List.', - ); - try { - api.removeCircles(arg_circles!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearCircles$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - try { - api.clearCircles(); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.enableOnCameraChangedEvents$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - try { - api.enableOnCameraChangedEvents(); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isAutoScreenAvailable$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - try { - final bool output = api.isAutoScreenAvailable(); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setPadding$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setPadding was null.', - ); - final List args = (message as List?)!; - final MapPaddingDto? arg_padding = (args[0] as MapPaddingDto?); - assert( - arg_padding != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setPadding was null, expected non-null MapPaddingDto.', - ); - try { - api.setPadding(arg_padding!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getPadding$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - try { - final MapPaddingDto output = api.getPadding(); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMapColorScheme$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - try { - final MapColorSchemeDto output = api.getMapColorScheme(); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapColorScheme$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapColorScheme was null.', - ); - final List args = (message as List?)!; - final MapColorSchemeDto? arg_mapColorScheme = - (args[0] as MapColorSchemeDto?); - assert( - arg_mapColorScheme != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapColorScheme was null, expected non-null MapColorSchemeDto.', - ); - try { - api.setMapColorScheme(arg_mapColorScheme!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getForceNightMode$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - try { - final NavigationForceNightModeDto output = api - .getForceNightMode(); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setForceNightMode$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, ( - Object? message, - ) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setForceNightMode was null.', - ); - final List args = (message as List?)!; - final NavigationForceNightModeDto? arg_forceNightMode = - (args[0] as NavigationForceNightModeDto?); - assert( - arg_forceNightMode != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setForceNightMode was null, expected non-null NavigationForceNightModeDto.', - ); - try { - api.setForceNightMode(arg_forceNightMode!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException( - code: 'error', - message: e.toString(), - ), - ); - } - }); - } - } - { - final BasicMessageChannel - pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.sendCustomNavigationAutoEvent$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger, - ); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< - Object? - >(pigeonVar_channel, (Object? message) async { - assert( - message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.sendCustomNavigationAutoEvent was null.', - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.sendCustomNavigationAutoEvent$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.sendCustomNavigationAutoEvent was null.'); final List args = (message as List?)!; final String? arg_event = (args[0] as String?); - assert( - arg_event != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.sendCustomNavigationAutoEvent was null, expected non-null String.', - ); + assert(arg_event != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.sendCustomNavigationAutoEvent was null, expected non-null String.'); final Object? arg_data = (args[1] as Object?); - assert( - arg_data != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.sendCustomNavigationAutoEvent was null, expected non-null Object.', - ); + assert(arg_data != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.sendCustomNavigationAutoEvent was null, expected non-null Object.'); try { api.sendCustomNavigationAutoEvent(arg_event!, arg_data!); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse( - error: PlatformException(code: 'error', message: e.toString()), - ); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); } From 24fdc6b56d448d5d8091dc75363f4027e8ae3100 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ville=20V=C3=A4limaa?= Date: Mon, 22 Jun 2026 14:52:44 +0800 Subject: [PATCH 2/4] chore: formatting --- .../maps/flutter/navigation/messages.g.kt | 6958 ++++--- .../GoogleMapsNavigationView.swift | 12 +- ...ogleMapsNavigationViewMessageHandler.swift | 3 +- .../messages.g.swift | 2160 ++- lib/src/method_channel/messages.g.dart | 6456 ++++--- test/google_navigation_flutter_test.dart | 18 +- test/messages_test.g.dart | 15989 ++++++++++------ 7 files changed, 19984 insertions(+), 11612 deletions(-) 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 e0b7b646..ef41c189 100644 --- a/android/src/main/kotlin/com/google/maps/flutter/navigation/messages.g.kt +++ b/android/src/main/kotlin/com/google/maps/flutter/navigation/messages.g.kt @@ -21,16 +21,20 @@ package com.google.maps.flutter.navigation import android.util.Log import io.flutter.plugin.common.BasicMessageChannel import io.flutter.plugin.common.BinaryMessenger -import io.flutter.plugin.common.EventChannel import io.flutter.plugin.common.MessageCodec -import io.flutter.plugin.common.StandardMethodCodec import io.flutter.plugin.common.StandardMessageCodec import java.io.ByteArrayOutputStream import java.nio.ByteBuffer + private object MessagesPigeonUtils { fun createConnectionError(channelName: String): FlutterError { - return FlutterError("channel-error", "Unable to establish connection on channel: '$channelName'.", "") } + return FlutterError( + "channel-error", + "Unable to establish connection on channel: '$channelName'.", + "", + ) + } fun wrapResult(result: Any?): List { return listOf(result) @@ -38,66 +42,62 @@ private object MessagesPigeonUtils { fun wrapError(exception: Throwable): List { return if (exception is FlutterError) { - listOf( - exception.code, - exception.message, - exception.details - ) + listOf(exception.code, exception.message, exception.details) } else { listOf( exception.javaClass.simpleName, exception.toString(), - "Cause: " + exception.cause + ", Stacktrace: " + Log.getStackTraceString(exception) + "Cause: " + exception.cause + ", Stacktrace: " + Log.getStackTraceString(exception), ) } } + fun deepEquals(a: Any?, b: Any?): Boolean { if (a is ByteArray && b is ByteArray) { - return a.contentEquals(b) + return a.contentEquals(b) } if (a is IntArray && b is IntArray) { - return a.contentEquals(b) + return a.contentEquals(b) } if (a is LongArray && b is LongArray) { - return a.contentEquals(b) + return a.contentEquals(b) } if (a is DoubleArray && b is DoubleArray) { - return a.contentEquals(b) + return a.contentEquals(b) } if (a is Array<*> && b is Array<*>) { - return a.size == b.size && - a.indices.all{ deepEquals(a[it], b[it]) } + return a.size == b.size && a.indices.all { deepEquals(a[it], b[it]) } } if (a is List<*> && b is List<*>) { - return a.size == b.size && - a.indices.all{ deepEquals(a[it], b[it]) } + return a.size == b.size && a.indices.all { deepEquals(a[it], b[it]) } } if (a is Map<*, *> && b is Map<*, *>) { - return a.size == b.size && a.all { - (b as Map).containsKey(it.key) && - deepEquals(it.value, b[it.key]) - } + return a.size == b.size && + a.all { (b as Map).containsKey(it.key) && deepEquals(it.value, b[it.key]) } } return a == b } - } /** * Error class for passing custom error details to Flutter via a thrown PlatformException. + * * @property code The error code. * @property message The error message. * @property details The error details. Must be a datatype supported by the api codec. */ -class FlutterError ( +class FlutterError( val code: String, override val message: String? = null, - val details: Any? = null + val details: Any? = null, ) : Throwable() /** Describes the type of map to construct. */ enum class MapViewTypeDto(val raw: Int) { - /** Navigation view supports navigation overlay, and current navigation session is displayed on the map. */ + /** + * Navigation view supports navigation overlay, and current navigation session is displayed on the + * map. + */ NAVIGATION(0), /** Classic map view, without navigation overlay. */ MAP(1); @@ -111,10 +111,7 @@ enum class MapViewTypeDto(val raw: Int) { /** Determines the initial visibility of the navigation UI on map initialization. */ enum class NavigationUIEnabledPreferenceDto(val raw: Int) { - /** - * Navigation UI gets enabled if the navigation - * session has already been successfully started. - */ + /** Navigation UI gets enabled if the navigation session has already been successfully started. */ AUTOMATIC(0), /** Navigation UI is disabled. */ DISABLED(1); @@ -436,7 +433,9 @@ enum class ManeuverDto(val raw: Int) { OFF_RAMP_UTURN_COUNTERCLOCKWISE(22), /** Keep to the left side of the road when entering a turnpike or freeway as the road diverges. */ ON_RAMP_KEEP_LEFT(23), - /** Keep to the right side of the road when entering a turnpike or freeway as the road diverges. */ + /** + * Keep to the right side of the road when entering a turnpike or freeway as the road diverges. + */ ON_RAMP_KEEP_RIGHT(24), /** Regular left turn to enter a turnpike or freeway. */ ON_RAMP_LEFT(25), @@ -492,9 +491,15 @@ enum class ManeuverDto(val raw: Int) { ROUNDABOUT_STRAIGHT_CLOCKWISE(50), /** Enter a roundabout in the counterclockwise direction and continue straight. */ ROUNDABOUT_STRAIGHT_COUNTERCLOCKWISE(51), - /** Enter a roundabout in the clockwise direction and turn clockwise onto the opposite side of the street. */ + /** + * Enter a roundabout in the clockwise direction and turn clockwise onto the opposite side of the + * street. + */ ROUNDABOUT_UTURN_CLOCKWISE(52), - /** Enter a roundabout in the counterclockwise direction and turn counterclockwise onto the opposite side of the street. */ + /** + * Enter a roundabout in the counterclockwise direction and turn counterclockwise onto the + * opposite side of the street. + */ ROUNDABOUT_UTURN_COUNTERCLOCKWISE(53), /** Continue straight. */ STRAIGHT(54), @@ -595,11 +600,14 @@ enum class LaneShapeDto(val raw: Int) { /** Determines how application should behave when a application task is removed. */ enum class TaskRemovedBehaviorDto(val raw: Int) { /** - * The default state, indicating that navigation guidance, - * location updates, and notification should persist after user removes the application task. + * The default state, indicating that navigation guidance, location updates, and notification + * should persist after user removes the application task. */ CONTINUE_SERVICE(0), - /** Indicates that navigation guidance, location updates, and notification should shut down immediately when the user removes the application task. */ + /** + * Indicates that navigation guidance, location updates, and notification should shut down + * immediately when the user removes the application task. + */ QUIT_SERVICE(1); companion object { @@ -614,7 +622,7 @@ enum class TaskRemovedBehaviorDto(val raw: Int) { * * Generated class from Pigeon that represents data sent in messages. */ -data class AutoMapOptionsDto ( +data class AutoMapOptionsDto( /** The initial positioning of the camera in the map view. */ val cameraPosition: CameraPositionDto? = null, /** Cloud-based map ID for custom styling. */ @@ -626,9 +634,8 @@ data class AutoMapOptionsDto ( /** Forces night mode (dark theme) regardless of system settings. */ val forceNightMode: NavigationForceNightModeDto? = null, /** Determines the initial visibility of the navigation UI on map initialization. */ - val navigationUIEnabledPreference: NavigationUIEnabledPreferenceDto? = null -) - { + val navigationUIEnabledPreference: NavigationUIEnabledPreferenceDto? = null, +) { companion object { fun fromList(pigeonVar_list: List): AutoMapOptionsDto { val cameraPosition = pigeonVar_list[0] as CameraPositionDto? @@ -637,9 +644,17 @@ data class AutoMapOptionsDto ( val mapColorScheme = pigeonVar_list[3] as MapColorSchemeDto? val forceNightMode = pigeonVar_list[4] as NavigationForceNightModeDto? val navigationUIEnabledPreference = pigeonVar_list[5] as NavigationUIEnabledPreferenceDto? - return AutoMapOptionsDto(cameraPosition, mapId, mapType, mapColorScheme, forceNightMode, navigationUIEnabledPreference) + return AutoMapOptionsDto( + cameraPosition, + mapId, + mapType, + mapColorScheme, + forceNightMode, + navigationUIEnabledPreference, + ) } } + fun toList(): List { return listOf( cameraPosition, @@ -650,6 +665,7 @@ data class AutoMapOptionsDto ( navigationUIEnabledPreference, ) } + override fun equals(other: Any?): Boolean { if (other !is AutoMapOptionsDto) { return false @@ -657,7 +673,8 @@ data class AutoMapOptionsDto ( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) + } override fun hashCode(): Int = toList().hashCode() } @@ -667,7 +684,7 @@ data class AutoMapOptionsDto ( * * Generated class from Pigeon that represents data sent in messages. */ -data class MapOptionsDto ( +data class MapOptionsDto( /** The initial positioning of the camera in the map view. */ val cameraPosition: CameraPositionDto, /** The type of map to display (e.g., satellite, terrain, hybrid, etc.). */ @@ -700,14 +717,13 @@ data class MapOptionsDto ( /** Specifies the padding for the map. */ val padding: MapPaddingDto? = null, /** - * The map ID for advanced map options eg. cloud-based map styling. - * This value can only be set on map initialization and cannot be changed afterwards. + * The map ID for advanced map options eg. cloud-based map styling. This value can only be set on + * map initialization and cannot be changed afterwards. */ val mapId: String? = null, /** The map color scheme mode for the map view. */ - val mapColorScheme: MapColorSchemeDto -) - { + val mapColorScheme: MapColorSchemeDto, +) { companion object { fun fromList(pigeonVar_list: List): MapOptionsDto { val cameraPosition = pigeonVar_list[0] as CameraPositionDto @@ -726,9 +742,27 @@ data class MapOptionsDto ( val padding = pigeonVar_list[13] as MapPaddingDto? val mapId = pigeonVar_list[14] as String? val mapColorScheme = pigeonVar_list[15] as MapColorSchemeDto - return MapOptionsDto(cameraPosition, mapType, compassEnabled, rotateGesturesEnabled, scrollGesturesEnabled, tiltGesturesEnabled, zoomGesturesEnabled, scrollGesturesEnabledDuringRotateOrZoom, mapToolbarEnabled, minZoomPreference, maxZoomPreference, zoomControlsEnabled, cameraTargetBounds, padding, mapId, mapColorScheme) + return MapOptionsDto( + cameraPosition, + mapType, + compassEnabled, + rotateGesturesEnabled, + scrollGesturesEnabled, + tiltGesturesEnabled, + zoomGesturesEnabled, + scrollGesturesEnabledDuringRotateOrZoom, + mapToolbarEnabled, + minZoomPreference, + maxZoomPreference, + zoomControlsEnabled, + cameraTargetBounds, + padding, + mapId, + mapColorScheme, + ) } } + fun toList(): List { return listOf( cameraPosition, @@ -749,6 +783,7 @@ data class MapOptionsDto ( mapColorScheme, ) } + override fun equals(other: Any?): Boolean { if (other !is MapOptionsDto) { return false @@ -756,7 +791,8 @@ data class MapOptionsDto ( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) + } override fun hashCode(): Int = toList().hashCode() } @@ -766,13 +802,12 @@ data class MapOptionsDto ( * * Generated class from Pigeon that represents data sent in messages. */ -data class NavigationViewOptionsDto ( +data class NavigationViewOptionsDto( /** Determines the initial visibility of the navigation UI on map initialization. */ val navigationUIEnabledPreference: NavigationUIEnabledPreferenceDto, /** Controls the navigation night mode for Navigation UI. */ - val forceNightMode: NavigationForceNightModeDto -) - { + val forceNightMode: NavigationForceNightModeDto, +) { companion object { fun fromList(pigeonVar_list: List): NavigationViewOptionsDto { val navigationUIEnabledPreference = pigeonVar_list[0] as NavigationUIEnabledPreferenceDto @@ -780,12 +815,11 @@ data class NavigationViewOptionsDto ( return NavigationViewOptionsDto(navigationUIEnabledPreference, forceNightMode) } } + fun toList(): List { - return listOf( - navigationUIEnabledPreference, - forceNightMode, - ) + return listOf(navigationUIEnabledPreference, forceNightMode) } + override fun equals(other: Any?): Boolean { if (other !is NavigationViewOptionsDto) { return false @@ -793,7 +827,8 @@ data class NavigationViewOptionsDto ( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) + } override fun hashCode(): Int = toList().hashCode() } @@ -801,17 +836,15 @@ data class NavigationViewOptionsDto ( /** * A message for creating a new navigation view. * - * This message is used to initialize a new navigation view with a - * specified initial parameters. + * This message is used to initialize a new navigation view with a specified initial parameters. * * Generated class from Pigeon that represents data sent in messages. */ -data class ViewCreationOptionsDto ( +data class ViewCreationOptionsDto( val mapViewType: MapViewTypeDto, val mapOptions: MapOptionsDto, - val navigationViewOptions: NavigationViewOptionsDto? = null -) - { + val navigationViewOptions: NavigationViewOptionsDto? = null, +) { companion object { fun fromList(pigeonVar_list: List): ViewCreationOptionsDto { val mapViewType = pigeonVar_list[0] as MapViewTypeDto @@ -820,13 +853,11 @@ data class ViewCreationOptionsDto ( return ViewCreationOptionsDto(mapViewType, mapOptions, navigationViewOptions) } } + fun toList(): List { - return listOf( - mapViewType, - mapOptions, - navigationViewOptions, - ) + return listOf(mapViewType, mapOptions, navigationViewOptions) } + override fun equals(other: Any?): Boolean { if (other !is ViewCreationOptionsDto) { return false @@ -834,19 +865,19 @@ data class ViewCreationOptionsDto ( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) + } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class CameraPositionDto ( +data class CameraPositionDto( val bearing: Double, val target: LatLngDto, val tilt: Double, - val zoom: Double -) - { + val zoom: Double, +) { companion object { fun fromList(pigeonVar_list: List): CameraPositionDto { val bearing = pigeonVar_list[0] as Double @@ -856,14 +887,11 @@ data class CameraPositionDto ( return CameraPositionDto(bearing, target, tilt, zoom) } } + fun toList(): List { - return listOf( - bearing, - target, - tilt, - zoom, - ) + return listOf(bearing, target, tilt, zoom) } + override fun equals(other: Any?): Boolean { if (other !is CameraPositionDto) { return false @@ -871,19 +899,19 @@ data class CameraPositionDto ( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) + } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class MarkerDto ( +data class MarkerDto( /** Identifies marker */ val markerId: String, /** Options for marker */ - val options: MarkerOptionsDto -) - { + val options: MarkerOptionsDto, +) { companion object { fun fromList(pigeonVar_list: List): MarkerDto { val markerId = pigeonVar_list[0] as String @@ -891,12 +919,11 @@ data class MarkerDto ( return MarkerDto(markerId, options) } } + fun toList(): List { - return listOf( - markerId, - options, - ) + return listOf(markerId, options) } + override fun equals(other: Any?): Boolean { if (other !is MarkerDto) { return false @@ -904,13 +931,14 @@ data class MarkerDto ( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) + } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class MarkerOptionsDto ( +data class MarkerOptionsDto( val alpha: Double, val anchor: MarkerAnchorDto, val draggable: Boolean, @@ -921,9 +949,8 @@ data class MarkerOptionsDto ( val infoWindow: InfoWindowDto, val visible: Boolean, val zIndex: Double, - val icon: ImageDescriptorDto -) - { + val icon: ImageDescriptorDto, +) { companion object { fun fromList(pigeonVar_list: List): MarkerOptionsDto { val alpha = pigeonVar_list[0] as Double @@ -937,9 +964,22 @@ data class MarkerOptionsDto ( val visible = pigeonVar_list[8] as Boolean val zIndex = pigeonVar_list[9] as Double val icon = pigeonVar_list[10] as ImageDescriptorDto - return MarkerOptionsDto(alpha, anchor, draggable, flat, consumeTapEvents, position, rotation, infoWindow, visible, zIndex, icon) + return MarkerOptionsDto( + alpha, + anchor, + draggable, + flat, + consumeTapEvents, + position, + rotation, + infoWindow, + visible, + zIndex, + icon, + ) } } + fun toList(): List { return listOf( alpha, @@ -955,6 +995,7 @@ data class MarkerOptionsDto ( icon, ) } + override fun equals(other: Any?): Boolean { if (other !is MarkerOptionsDto) { return false @@ -962,20 +1003,20 @@ data class MarkerOptionsDto ( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) + } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class ImageDescriptorDto ( +data class ImageDescriptorDto( val registeredImageId: String? = null, val imagePixelRatio: Double? = null, val width: Double? = null, val height: Double? = null, - val type: RegisteredImageTypeDto -) - { + val type: RegisteredImageTypeDto, +) { companion object { fun fromList(pigeonVar_list: List): ImageDescriptorDto { val registeredImageId = pigeonVar_list[0] as String? @@ -986,15 +1027,11 @@ data class ImageDescriptorDto ( return ImageDescriptorDto(registeredImageId, imagePixelRatio, width, height, type) } } + fun toList(): List { - return listOf( - registeredImageId, - imagePixelRatio, - width, - height, - type, - ) + return listOf(registeredImageId, imagePixelRatio, width, height, type) } + override fun equals(other: Any?): Boolean { if (other !is ImageDescriptorDto) { return false @@ -1002,18 +1039,18 @@ data class ImageDescriptorDto ( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) + } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class InfoWindowDto ( +data class InfoWindowDto( val title: String? = null, val snippet: String? = null, - val anchor: MarkerAnchorDto -) - { + val anchor: MarkerAnchorDto, +) { companion object { fun fromList(pigeonVar_list: List): InfoWindowDto { val title = pigeonVar_list[0] as String? @@ -1022,13 +1059,11 @@ data class InfoWindowDto ( return InfoWindowDto(title, snippet, anchor) } } + fun toList(): List { - return listOf( - title, - snippet, - anchor, - ) + return listOf(title, snippet, anchor) } + override fun equals(other: Any?): Boolean { if (other !is InfoWindowDto) { return false @@ -1036,17 +1071,14 @@ data class InfoWindowDto ( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) + } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class MarkerAnchorDto ( - val u: Double, - val v: Double -) - { +data class MarkerAnchorDto(val u: Double, val v: Double) { companion object { fun fromList(pigeonVar_list: List): MarkerAnchorDto { val u = pigeonVar_list[0] as Double @@ -1054,12 +1086,11 @@ data class MarkerAnchorDto ( return MarkerAnchorDto(u, v) } } + fun toList(): List { - return listOf( - u, - v, - ) + return listOf(u, v) } + override fun equals(other: Any?): Boolean { if (other !is MarkerAnchorDto) { return false @@ -1067,29 +1098,29 @@ data class MarkerAnchorDto ( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) + } override fun hashCode(): Int = toList().hashCode() } /** - * Represents a point of interest (POI) on the map. - * POIs include parks, schools, government buildings, and businesses. + * Represents a point of interest (POI) on the map. POIs include parks, schools, government + * buildings, and businesses. * * Generated class from Pigeon that represents data sent in messages. */ -data class PointOfInterestDto ( +data class PointOfInterestDto( /** - * The Place ID of this POI, as defined in the Places SDK. - * This can be used to retrieve additional information about the place. + * The Place ID of this POI, as defined in the Places SDK. This can be used to retrieve additional + * information about the place. */ val placeID: String, /** The name of the POI (e.g., "Central Park", "City Hall"). */ val name: String, /** The geographical coordinates of the POI. */ - val latLng: LatLngDto -) - { + val latLng: LatLngDto, +) { companion object { fun fromList(pigeonVar_list: List): PointOfInterestDto { val placeID = pigeonVar_list[0] as String @@ -1098,13 +1129,11 @@ data class PointOfInterestDto ( return PointOfInterestDto(placeID, name, latLng) } } + fun toList(): List { - return listOf( - placeID, - name, - latLng, - ) + return listOf(placeID, name, latLng) } + override fun equals(other: Any?): Boolean { if (other !is PointOfInterestDto) { return false @@ -1112,7 +1141,8 @@ data class PointOfInterestDto ( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) + } override fun hashCode(): Int = toList().hashCode() } @@ -1122,13 +1152,12 @@ data class PointOfInterestDto ( * * Generated class from Pigeon that represents data sent in messages. */ -data class IndoorLevelDto ( +data class IndoorLevelDto( /** Full display name of the level. */ val name: String? = null, /** Short display name of the level. */ - val shortName: String? = null -) - { + val shortName: String? = null, +) { companion object { fun fromList(pigeonVar_list: List): IndoorLevelDto { val name = pigeonVar_list[0] as String? @@ -1136,12 +1165,11 @@ data class IndoorLevelDto ( return IndoorLevelDto(name, shortName) } } + fun toList(): List { - return listOf( - name, - shortName, - ) + return listOf(name, shortName) } + override fun equals(other: Any?): Boolean { if (other !is IndoorLevelDto) { return false @@ -1149,7 +1177,8 @@ data class IndoorLevelDto ( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) + } override fun hashCode(): Int = toList().hashCode() } @@ -1159,7 +1188,7 @@ data class IndoorLevelDto ( * * Generated class from Pigeon that represents data sent in messages. */ -data class IndoorBuildingDto ( +data class IndoorBuildingDto( /** All levels available in the focused building. */ val levels: List, /** Currently active level index in [levels], if known. */ @@ -1167,9 +1196,8 @@ data class IndoorBuildingDto ( /** Default level index in [levels], if known. */ val defaultLevelIndex: Long? = null, /** Whether building is mostly underground, if known. */ - val isUnderground: Boolean? = null -) - { + val isUnderground: Boolean? = null, +) { companion object { fun fromList(pigeonVar_list: List): IndoorBuildingDto { val levels = pigeonVar_list[0] as List @@ -1179,14 +1207,11 @@ data class IndoorBuildingDto ( return IndoorBuildingDto(levels, activeLevelIndex, defaultLevelIndex, isUnderground) } } + fun toList(): List { - return listOf( - levels, - activeLevelIndex, - defaultLevelIndex, - isUnderground, - ) + return listOf(levels, activeLevelIndex, defaultLevelIndex, isUnderground) } + override fun equals(other: Any?): Boolean { if (other !is IndoorBuildingDto) { return false @@ -1194,17 +1219,14 @@ data class IndoorBuildingDto ( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) + } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class PolygonDto ( - val polygonId: String, - val options: PolygonOptionsDto -) - { +data class PolygonDto(val polygonId: String, val options: PolygonOptionsDto) { companion object { fun fromList(pigeonVar_list: List): PolygonDto { val polygonId = pigeonVar_list[0] as String @@ -1212,12 +1234,11 @@ data class PolygonDto ( return PolygonDto(polygonId, options) } } + fun toList(): List { - return listOf( - polygonId, - options, - ) + return listOf(polygonId, options) } + override fun equals(other: Any?): Boolean { if (other !is PolygonDto) { return false @@ -1225,13 +1246,14 @@ data class PolygonDto ( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) + } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class PolygonOptionsDto ( +data class PolygonOptionsDto( val points: List, val holes: List, val clickable: Boolean, @@ -1240,9 +1262,8 @@ data class PolygonOptionsDto ( val strokeColor: Long, val strokeWidth: Double, val visible: Boolean, - val zIndex: Double -) - { + val zIndex: Double, +) { companion object { fun fromList(pigeonVar_list: List): PolygonOptionsDto { val points = pigeonVar_list[0] as List @@ -1254,9 +1275,20 @@ data class PolygonOptionsDto ( val strokeWidth = pigeonVar_list[6] as Double val visible = pigeonVar_list[7] as Boolean val zIndex = pigeonVar_list[8] as Double - return PolygonOptionsDto(points, holes, clickable, fillColor, geodesic, strokeColor, strokeWidth, visible, zIndex) + return PolygonOptionsDto( + points, + holes, + clickable, + fillColor, + geodesic, + strokeColor, + strokeWidth, + visible, + zIndex, + ) } } + fun toList(): List { return listOf( points, @@ -1270,6 +1302,7 @@ data class PolygonOptionsDto ( zIndex, ) } + override fun equals(other: Any?): Boolean { if (other !is PolygonOptionsDto) { return false @@ -1277,27 +1310,25 @@ data class PolygonOptionsDto ( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) + } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class PolygonHoleDto ( - val points: List -) - { +data class PolygonHoleDto(val points: List) { companion object { fun fromList(pigeonVar_list: List): PolygonHoleDto { val points = pigeonVar_list[0] as List return PolygonHoleDto(points) } } + fun toList(): List { - return listOf( - points, - ) + return listOf(points) } + override fun equals(other: Any?): Boolean { if (other !is PolygonHoleDto) { return false @@ -1305,18 +1336,18 @@ data class PolygonHoleDto ( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) + } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class StyleSpanStrokeStyleDto ( +data class StyleSpanStrokeStyleDto( val solidColor: Long? = null, val fromColor: Long? = null, - val toColor: Long? = null -) - { + val toColor: Long? = null, +) { companion object { fun fromList(pigeonVar_list: List): StyleSpanStrokeStyleDto { val solidColor = pigeonVar_list[0] as Long? @@ -1325,13 +1356,11 @@ data class StyleSpanStrokeStyleDto ( return StyleSpanStrokeStyleDto(solidColor, fromColor, toColor) } } + fun toList(): List { - return listOf( - solidColor, - fromColor, - toColor, - ) + return listOf(solidColor, fromColor, toColor) } + override fun equals(other: Any?): Boolean { if (other !is StyleSpanStrokeStyleDto) { return false @@ -1339,17 +1368,14 @@ data class StyleSpanStrokeStyleDto ( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) + } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class StyleSpanDto ( - val length: Double, - val style: StyleSpanStrokeStyleDto -) - { +data class StyleSpanDto(val length: Double, val style: StyleSpanStrokeStyleDto) { companion object { fun fromList(pigeonVar_list: List): StyleSpanDto { val length = pigeonVar_list[0] as Double @@ -1357,12 +1383,11 @@ data class StyleSpanDto ( return StyleSpanDto(length, style) } } + fun toList(): List { - return listOf( - length, - style, - ) + return listOf(length, style) } + override fun equals(other: Any?): Boolean { if (other !is StyleSpanDto) { return false @@ -1370,17 +1395,14 @@ data class StyleSpanDto ( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) + } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class PolylineDto ( - val polylineId: String, - val options: PolylineOptionsDto -) - { +data class PolylineDto(val polylineId: String, val options: PolylineOptionsDto) { companion object { fun fromList(pigeonVar_list: List): PolylineDto { val polylineId = pigeonVar_list[0] as String @@ -1388,12 +1410,11 @@ data class PolylineDto ( return PolylineDto(polylineId, options) } } + fun toList(): List { - return listOf( - polylineId, - options, - ) + return listOf(polylineId, options) } + override fun equals(other: Any?): Boolean { if (other !is PolylineDto) { return false @@ -1401,17 +1422,14 @@ data class PolylineDto ( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) + } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class PatternItemDto ( - val type: PatternTypeDto, - val length: Double? = null -) - { +data class PatternItemDto(val type: PatternTypeDto, val length: Double? = null) { companion object { fun fromList(pigeonVar_list: List): PatternItemDto { val type = pigeonVar_list[0] as PatternTypeDto @@ -1419,12 +1437,11 @@ data class PatternItemDto ( return PatternItemDto(type, length) } } + fun toList(): List { - return listOf( - type, - length, - ) + return listOf(type, length) } + override fun equals(other: Any?): Boolean { if (other !is PatternItemDto) { return false @@ -1432,13 +1449,14 @@ data class PatternItemDto ( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) + } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class PolylineOptionsDto ( +data class PolylineOptionsDto( val points: List? = null, val clickable: Boolean? = null, val geodesic: Boolean? = null, @@ -1448,9 +1466,8 @@ data class PolylineOptionsDto ( val strokeWidth: Double? = null, val visible: Boolean? = null, val zIndex: Double? = null, - val spans: List -) - { + val spans: List, +) { companion object { fun fromList(pigeonVar_list: List): PolylineOptionsDto { val points = pigeonVar_list[0] as List? @@ -1463,9 +1480,21 @@ data class PolylineOptionsDto ( val visible = pigeonVar_list[7] as Boolean? val zIndex = pigeonVar_list[8] as Double? val spans = pigeonVar_list[9] as List - return PolylineOptionsDto(points, clickable, geodesic, strokeColor, strokeJointType, strokePattern, strokeWidth, visible, zIndex, spans) + return PolylineOptionsDto( + points, + clickable, + geodesic, + strokeColor, + strokeJointType, + strokePattern, + strokeWidth, + visible, + zIndex, + spans, + ) } } + fun toList(): List { return listOf( points, @@ -1480,6 +1509,7 @@ data class PolylineOptionsDto ( spans, ) } + override fun equals(other: Any?): Boolean { if (other !is PolylineOptionsDto) { return false @@ -1487,19 +1517,19 @@ data class PolylineOptionsDto ( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) + } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class CircleDto ( +data class CircleDto( /** Identifies circle. */ val circleId: String, /** Options for circle. */ - val options: CircleOptionsDto -) - { + val options: CircleOptionsDto, +) { companion object { fun fromList(pigeonVar_list: List): CircleDto { val circleId = pigeonVar_list[0] as String @@ -1507,12 +1537,11 @@ data class CircleDto ( return CircleDto(circleId, options) } } + fun toList(): List { - return listOf( - circleId, - options, - ) + return listOf(circleId, options) } + override fun equals(other: Any?): Boolean { if (other !is CircleDto) { return false @@ -1520,13 +1549,14 @@ data class CircleDto ( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) + } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class CircleOptionsDto ( +data class CircleOptionsDto( val position: LatLngDto, val radius: Double, val strokeWidth: Double, @@ -1535,9 +1565,8 @@ data class CircleOptionsDto ( val fillColor: Long, val zIndex: Double, val visible: Boolean, - val clickable: Boolean -) - { + val clickable: Boolean, +) { companion object { fun fromList(pigeonVar_list: List): CircleOptionsDto { val position = pigeonVar_list[0] as LatLngDto @@ -1549,9 +1578,20 @@ data class CircleOptionsDto ( val zIndex = pigeonVar_list[6] as Double val visible = pigeonVar_list[7] as Boolean val clickable = pigeonVar_list[8] as Boolean - return CircleOptionsDto(position, radius, strokeWidth, strokeColor, strokePattern, fillColor, zIndex, visible, clickable) + return CircleOptionsDto( + position, + radius, + strokeWidth, + strokeColor, + strokePattern, + fillColor, + zIndex, + visible, + clickable, + ) } } + fun toList(): List { return listOf( position, @@ -1565,6 +1605,7 @@ data class CircleOptionsDto ( clickable, ) } + override fun equals(other: Any?): Boolean { if (other !is CircleOptionsDto) { return false @@ -1572,19 +1613,14 @@ data class CircleOptionsDto ( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) + } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class MapPaddingDto ( - val top: Long, - val left: Long, - val bottom: Long, - val right: Long -) - { +data class MapPaddingDto(val top: Long, val left: Long, val bottom: Long, val right: Long) { companion object { fun fromList(pigeonVar_list: List): MapPaddingDto { val top = pigeonVar_list[0] as Long @@ -1594,14 +1630,11 @@ data class MapPaddingDto ( return MapPaddingDto(top, left, bottom, right) } } + fun toList(): List { - return listOf( - top, - left, - bottom, - right, - ) + return listOf(top, left, bottom, right) } + override fun equals(other: Any?): Boolean { if (other !is MapPaddingDto) { return false @@ -1609,7 +1642,8 @@ data class MapPaddingDto ( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) + } override fun hashCode(): Int = toList().hashCode() } @@ -1617,27 +1651,32 @@ data class MapPaddingDto ( /** * Navigation header background colors. * - * All color values are 32-bit ARGB integers (format: 0xAARRGGBB). - * Any null value resets that specific color to the native SDK default. + * All color values are 32-bit ARGB integers (format: 0xAARRGGBB). Any null value resets that + * specific color to the native SDK default. * * Generated class from Pigeon that represents data sent in messages. */ -data class NavigationHeaderStylingOptionsDto ( +data class NavigationHeaderStylingOptionsDto( val primaryDayModeBackgroundColor: Long? = null, val secondaryDayModeBackgroundColor: Long? = null, val primaryNightModeBackgroundColor: Long? = null, - val secondaryNightModeBackgroundColor: Long? = null -) - { + val secondaryNightModeBackgroundColor: Long? = null, +) { companion object { fun fromList(pigeonVar_list: List): NavigationHeaderStylingOptionsDto { val primaryDayModeBackgroundColor = pigeonVar_list[0] as Long? val secondaryDayModeBackgroundColor = pigeonVar_list[1] as Long? val primaryNightModeBackgroundColor = pigeonVar_list[2] as Long? val secondaryNightModeBackgroundColor = pigeonVar_list[3] as Long? - return NavigationHeaderStylingOptionsDto(primaryDayModeBackgroundColor, secondaryDayModeBackgroundColor, primaryNightModeBackgroundColor, secondaryNightModeBackgroundColor) + return NavigationHeaderStylingOptionsDto( + primaryDayModeBackgroundColor, + secondaryDayModeBackgroundColor, + primaryNightModeBackgroundColor, + secondaryNightModeBackgroundColor, + ) } } + fun toList(): List { return listOf( primaryDayModeBackgroundColor, @@ -1646,6 +1685,7 @@ data class NavigationHeaderStylingOptionsDto ( secondaryNightModeBackgroundColor, ) } + override fun equals(other: Any?): Boolean { if (other !is NavigationHeaderStylingOptionsDto) { return false @@ -1653,17 +1693,14 @@ data class NavigationHeaderStylingOptionsDto ( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) + } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class RouteTokenOptionsDto ( - val routeToken: String, - val travelMode: TravelModeDto? = null -) - { +data class RouteTokenOptionsDto(val routeToken: String, val travelMode: TravelModeDto? = null) { companion object { fun fromList(pigeonVar_list: List): RouteTokenOptionsDto { val routeToken = pigeonVar_list[0] as String @@ -1671,12 +1708,11 @@ data class RouteTokenOptionsDto ( return RouteTokenOptionsDto(routeToken, travelMode) } } + fun toList(): List { - return listOf( - routeToken, - travelMode, - ) + return listOf(routeToken, travelMode) } + override fun equals(other: Any?): Boolean { if (other !is RouteTokenOptionsDto) { return false @@ -1684,19 +1720,19 @@ data class RouteTokenOptionsDto ( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) + } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class DestinationsDto ( +data class DestinationsDto( val waypoints: List, val displayOptions: NavigationDisplayOptionsDto, val routingOptions: RoutingOptionsDto? = null, - val routeTokenOptions: RouteTokenOptionsDto? = null -) - { + val routeTokenOptions: RouteTokenOptionsDto? = null, +) { companion object { fun fromList(pigeonVar_list: List): DestinationsDto { val waypoints = pigeonVar_list[0] as List @@ -1706,14 +1742,11 @@ data class DestinationsDto ( return DestinationsDto(waypoints, displayOptions, routingOptions, routeTokenOptions) } } + fun toList(): List { - return listOf( - waypoints, - displayOptions, - routingOptions, - routeTokenOptions, - ) + return listOf(waypoints, displayOptions, routingOptions, routeTokenOptions) } + override fun equals(other: Any?): Boolean { if (other !is DestinationsDto) { return false @@ -1721,13 +1754,14 @@ data class DestinationsDto ( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) + } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class RoutingOptionsDto ( +data class RoutingOptionsDto( val alternateRoutesStrategy: AlternateRoutesStrategyDto? = null, val routingStrategy: RoutingStrategyDto? = null, val targetDistanceMeters: List? = null, @@ -1735,9 +1769,8 @@ data class RoutingOptionsDto ( val avoidTolls: Boolean? = null, val avoidFerries: Boolean? = null, val avoidHighways: Boolean? = null, - val locationTimeoutMs: Long? = null -) - { + val locationTimeoutMs: Long? = null, +) { companion object { fun fromList(pigeonVar_list: List): RoutingOptionsDto { val alternateRoutesStrategy = pigeonVar_list[0] as AlternateRoutesStrategyDto? @@ -1748,9 +1781,19 @@ data class RoutingOptionsDto ( val avoidFerries = pigeonVar_list[5] as Boolean? val avoidHighways = pigeonVar_list[6] as Boolean? val locationTimeoutMs = pigeonVar_list[7] as Long? - return RoutingOptionsDto(alternateRoutesStrategy, routingStrategy, targetDistanceMeters, travelMode, avoidTolls, avoidFerries, avoidHighways, locationTimeoutMs) + return RoutingOptionsDto( + alternateRoutesStrategy, + routingStrategy, + targetDistanceMeters, + travelMode, + avoidTolls, + avoidFerries, + avoidHighways, + locationTimeoutMs, + ) } } + fun toList(): List { return listOf( alternateRoutesStrategy, @@ -1763,6 +1806,7 @@ data class RoutingOptionsDto ( locationTimeoutMs, ) } + override fun equals(other: Any?): Boolean { if (other !is RoutingOptionsDto) { return false @@ -1770,20 +1814,20 @@ data class RoutingOptionsDto ( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) + } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class NavigationDisplayOptionsDto ( +data class NavigationDisplayOptionsDto( val showDestinationMarkers: Boolean? = null, /** Deprecated: This option now defaults to true. */ val showStopSigns: Boolean? = null, /** Deprecated: This option now defaults to true. */ - val showTrafficLights: Boolean? = null -) - { + val showTrafficLights: Boolean? = null, +) { companion object { fun fromList(pigeonVar_list: List): NavigationDisplayOptionsDto { val showDestinationMarkers = pigeonVar_list[0] as Boolean? @@ -1792,13 +1836,11 @@ data class NavigationDisplayOptionsDto ( return NavigationDisplayOptionsDto(showDestinationMarkers, showStopSigns, showTrafficLights) } } + fun toList(): List { - return listOf( - showDestinationMarkers, - showStopSigns, - showTrafficLights, - ) + return listOf(showDestinationMarkers, showStopSigns, showTrafficLights) } + override fun equals(other: Any?): Boolean { if (other !is NavigationDisplayOptionsDto) { return false @@ -1806,20 +1848,20 @@ data class NavigationDisplayOptionsDto ( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) + } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class NavigationWaypointDto ( +data class NavigationWaypointDto( val title: String, val target: LatLngDto? = null, val placeID: String? = null, val preferSameSideOfRoad: Boolean? = null, - val preferredSegmentHeading: Long? = null -) - { + val preferredSegmentHeading: Long? = null, +) { companion object { fun fromList(pigeonVar_list: List): NavigationWaypointDto { val title = pigeonVar_list[0] as String @@ -1827,18 +1869,20 @@ data class NavigationWaypointDto ( val placeID = pigeonVar_list[2] as String? val preferSameSideOfRoad = pigeonVar_list[3] as Boolean? val preferredSegmentHeading = pigeonVar_list[4] as Long? - return NavigationWaypointDto(title, target, placeID, preferSameSideOfRoad, preferredSegmentHeading) + return NavigationWaypointDto( + title, + target, + placeID, + preferSameSideOfRoad, + preferredSegmentHeading, + ) } } + fun toList(): List { - return listOf( - title, - target, - placeID, - preferSameSideOfRoad, - preferredSegmentHeading, - ) + return listOf(title, target, placeID, preferSameSideOfRoad, preferredSegmentHeading) } + override fun equals(other: Any?): Boolean { if (other !is NavigationWaypointDto) { return false @@ -1846,17 +1890,17 @@ data class NavigationWaypointDto ( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) + } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class ContinueToNextDestinationResponseDto ( +data class ContinueToNextDestinationResponseDto( val waypoint: NavigationWaypointDto? = null, - val routeStatus: RouteStatusDto? = null -) - { + val routeStatus: RouteStatusDto? = null, +) { companion object { fun fromList(pigeonVar_list: List): ContinueToNextDestinationResponseDto { val waypoint = pigeonVar_list[0] as NavigationWaypointDto? @@ -1864,12 +1908,11 @@ data class ContinueToNextDestinationResponseDto ( return ContinueToNextDestinationResponseDto(waypoint, routeStatus) } } + fun toList(): List { - return listOf( - waypoint, - routeStatus, - ) + return listOf(waypoint, routeStatus) } + override fun equals(other: Any?): Boolean { if (other !is ContinueToNextDestinationResponseDto) { return false @@ -1877,18 +1920,18 @@ data class ContinueToNextDestinationResponseDto ( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) + } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class NavigationTimeAndDistanceDto ( +data class NavigationTimeAndDistanceDto( val time: Double, val distance: Double, - val delaySeverity: TrafficDelaySeverityDto -) - { + val delaySeverity: TrafficDelaySeverityDto, +) { companion object { fun fromList(pigeonVar_list: List): NavigationTimeAndDistanceDto { val time = pigeonVar_list[0] as Double @@ -1897,13 +1940,11 @@ data class NavigationTimeAndDistanceDto ( return NavigationTimeAndDistanceDto(time, distance, delaySeverity) } } + fun toList(): List { - return listOf( - time, - distance, - delaySeverity, - ) + return listOf(time, distance, delaySeverity) } + override fun equals(other: Any?): Boolean { if (other !is NavigationTimeAndDistanceDto) { return false @@ -1911,33 +1952,35 @@ data class NavigationTimeAndDistanceDto ( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) + } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class NavigationAudioGuidanceSettingsDto ( +data class NavigationAudioGuidanceSettingsDto( val isBluetoothAudioEnabled: Boolean? = null, val isVibrationEnabled: Boolean? = null, - val guidanceType: AudioGuidanceTypeDto? = null -) - { + val guidanceType: AudioGuidanceTypeDto? = null, +) { companion object { fun fromList(pigeonVar_list: List): NavigationAudioGuidanceSettingsDto { val isBluetoothAudioEnabled = pigeonVar_list[0] as Boolean? val isVibrationEnabled = pigeonVar_list[1] as Boolean? val guidanceType = pigeonVar_list[2] as AudioGuidanceTypeDto? - return NavigationAudioGuidanceSettingsDto(isBluetoothAudioEnabled, isVibrationEnabled, guidanceType) + return NavigationAudioGuidanceSettingsDto( + isBluetoothAudioEnabled, + isVibrationEnabled, + guidanceType, + ) } } + fun toList(): List { - return listOf( - isBluetoothAudioEnabled, - isVibrationEnabled, - guidanceType, - ) + return listOf(isBluetoothAudioEnabled, isVibrationEnabled, guidanceType) } + override fun equals(other: Any?): Boolean { if (other !is NavigationAudioGuidanceSettingsDto) { return false @@ -1945,27 +1988,25 @@ data class NavigationAudioGuidanceSettingsDto ( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) + } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class SimulationOptionsDto ( - val speedMultiplier: Double -) - { +data class SimulationOptionsDto(val speedMultiplier: Double) { companion object { fun fromList(pigeonVar_list: List): SimulationOptionsDto { val speedMultiplier = pigeonVar_list[0] as Double return SimulationOptionsDto(speedMultiplier) } } + fun toList(): List { - return listOf( - speedMultiplier, - ) + return listOf(speedMultiplier) } + override fun equals(other: Any?): Boolean { if (other !is SimulationOptionsDto) { return false @@ -1973,17 +2014,14 @@ data class SimulationOptionsDto ( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) + } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class LatLngDto ( - val latitude: Double, - val longitude: Double -) - { +data class LatLngDto(val latitude: Double, val longitude: Double) { companion object { fun fromList(pigeonVar_list: List): LatLngDto { val latitude = pigeonVar_list[0] as Double @@ -1991,12 +2029,11 @@ data class LatLngDto ( return LatLngDto(latitude, longitude) } } + fun toList(): List { - return listOf( - latitude, - longitude, - ) + return listOf(latitude, longitude) } + override fun equals(other: Any?): Boolean { if (other !is LatLngDto) { return false @@ -2004,17 +2041,14 @@ data class LatLngDto ( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) + } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class LatLngBoundsDto ( - val southwest: LatLngDto, - val northeast: LatLngDto -) - { +data class LatLngBoundsDto(val southwest: LatLngDto, val northeast: LatLngDto) { companion object { fun fromList(pigeonVar_list: List): LatLngBoundsDto { val southwest = pigeonVar_list[0] as LatLngDto @@ -2022,12 +2056,11 @@ data class LatLngBoundsDto ( return LatLngBoundsDto(southwest, northeast) } } + fun toList(): List { - return listOf( - southwest, - northeast, - ) + return listOf(southwest, northeast) } + override fun equals(other: Any?): Boolean { if (other !is LatLngBoundsDto) { return false @@ -2035,17 +2068,17 @@ data class LatLngBoundsDto ( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) + } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class SpeedingUpdatedEventDto ( +data class SpeedingUpdatedEventDto( val percentageAboveLimit: Double, - val severity: SpeedAlertSeverityDto -) - { + val severity: SpeedAlertSeverityDto, +) { companion object { fun fromList(pigeonVar_list: List): SpeedingUpdatedEventDto { val percentageAboveLimit = pigeonVar_list[0] as Double @@ -2053,12 +2086,11 @@ data class SpeedingUpdatedEventDto ( return SpeedingUpdatedEventDto(percentageAboveLimit, severity) } } + fun toList(): List { - return listOf( - percentageAboveLimit, - severity, - ) + return listOf(percentageAboveLimit, severity) } + override fun equals(other: Any?): Boolean { if (other !is SpeedingUpdatedEventDto) { return false @@ -2066,17 +2098,17 @@ data class SpeedingUpdatedEventDto ( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) + } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class GpsAvailabilityChangeEventDto ( +data class GpsAvailabilityChangeEventDto( val isGpsLost: Boolean, - val isGpsValidForNavigation: Boolean -) - { + val isGpsValidForNavigation: Boolean, +) { companion object { fun fromList(pigeonVar_list: List): GpsAvailabilityChangeEventDto { val isGpsLost = pigeonVar_list[0] as Boolean @@ -2084,12 +2116,11 @@ data class GpsAvailabilityChangeEventDto ( return GpsAvailabilityChangeEventDto(isGpsLost, isGpsValidForNavigation) } } + fun toList(): List { - return listOf( - isGpsLost, - isGpsValidForNavigation, - ) + return listOf(isGpsLost, isGpsValidForNavigation) } + override fun equals(other: Any?): Boolean { if (other !is GpsAvailabilityChangeEventDto) { return false @@ -2097,17 +2128,17 @@ data class GpsAvailabilityChangeEventDto ( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) + } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class SpeedAlertOptionsThresholdPercentageDto ( +data class SpeedAlertOptionsThresholdPercentageDto( val percentage: Double, - val severity: SpeedAlertSeverityDto -) - { + val severity: SpeedAlertSeverityDto, +) { companion object { fun fromList(pigeonVar_list: List): SpeedAlertOptionsThresholdPercentageDto { val percentage = pigeonVar_list[0] as Double @@ -2115,12 +2146,11 @@ data class SpeedAlertOptionsThresholdPercentageDto ( return SpeedAlertOptionsThresholdPercentageDto(percentage, severity) } } + fun toList(): List { - return listOf( - percentage, - severity, - ) + return listOf(percentage, severity) } + override fun equals(other: Any?): Boolean { if (other !is SpeedAlertOptionsThresholdPercentageDto) { return false @@ -2128,26 +2158,31 @@ data class SpeedAlertOptionsThresholdPercentageDto ( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) + } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class SpeedAlertOptionsDto ( +data class SpeedAlertOptionsDto( val severityUpgradeDurationSeconds: Double, val minorSpeedAlertThresholdPercentage: Double, - val majorSpeedAlertThresholdPercentage: Double -) - { + val majorSpeedAlertThresholdPercentage: Double, +) { companion object { fun fromList(pigeonVar_list: List): SpeedAlertOptionsDto { val severityUpgradeDurationSeconds = pigeonVar_list[0] as Double val minorSpeedAlertThresholdPercentage = pigeonVar_list[1] as Double val majorSpeedAlertThresholdPercentage = pigeonVar_list[2] as Double - return SpeedAlertOptionsDto(severityUpgradeDurationSeconds, minorSpeedAlertThresholdPercentage, majorSpeedAlertThresholdPercentage) + return SpeedAlertOptionsDto( + severityUpgradeDurationSeconds, + minorSpeedAlertThresholdPercentage, + majorSpeedAlertThresholdPercentage, + ) } } + fun toList(): List { return listOf( severityUpgradeDurationSeconds, @@ -2155,6 +2190,7 @@ data class SpeedAlertOptionsDto ( majorSpeedAlertThresholdPercentage, ) } + override fun equals(other: Any?): Boolean { if (other !is SpeedAlertOptionsDto) { return false @@ -2162,18 +2198,18 @@ data class SpeedAlertOptionsDto ( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) + } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class RouteSegmentTrafficDataRoadStretchRenderingDataDto ( +data class RouteSegmentTrafficDataRoadStretchRenderingDataDto( val style: RouteSegmentTrafficDataRoadStretchRenderingDataStyleDto, val lengthMeters: Long, - val offsetMeters: Long -) - { + val offsetMeters: Long, +) { companion object { fun fromList(pigeonVar_list: List): RouteSegmentTrafficDataRoadStretchRenderingDataDto { val style = pigeonVar_list[0] as RouteSegmentTrafficDataRoadStretchRenderingDataStyleDto @@ -2182,13 +2218,11 @@ data class RouteSegmentTrafficDataRoadStretchRenderingDataDto ( return RouteSegmentTrafficDataRoadStretchRenderingDataDto(style, lengthMeters, offsetMeters) } } + fun toList(): List { - return listOf( - style, - lengthMeters, - offsetMeters, - ) + return listOf(style, lengthMeters, offsetMeters) } + override fun equals(other: Any?): Boolean { if (other !is RouteSegmentTrafficDataRoadStretchRenderingDataDto) { return false @@ -2196,30 +2230,30 @@ data class RouteSegmentTrafficDataRoadStretchRenderingDataDto ( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) + } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class RouteSegmentTrafficDataDto ( +data class RouteSegmentTrafficDataDto( val status: RouteSegmentTrafficDataStatusDto, - val roadStretchRenderingDataList: List -) - { + val roadStretchRenderingDataList: List, +) { companion object { fun fromList(pigeonVar_list: List): RouteSegmentTrafficDataDto { val status = pigeonVar_list[0] as RouteSegmentTrafficDataStatusDto - val roadStretchRenderingDataList = pigeonVar_list[1] as List + val roadStretchRenderingDataList = + pigeonVar_list[1] as List return RouteSegmentTrafficDataDto(status, roadStretchRenderingDataList) } } + fun toList(): List { - return listOf( - status, - roadStretchRenderingDataList, - ) + return listOf(status, roadStretchRenderingDataList) } + override fun equals(other: Any?): Boolean { if (other !is RouteSegmentTrafficDataDto) { return false @@ -2227,19 +2261,19 @@ data class RouteSegmentTrafficDataDto ( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) + } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class RouteSegmentDto ( +data class RouteSegmentDto( val trafficData: RouteSegmentTrafficDataDto? = null, val destinationLatLng: LatLngDto, val latLngs: List? = null, - val destinationWaypoint: NavigationWaypointDto? = null -) - { + val destinationWaypoint: NavigationWaypointDto? = null, +) { companion object { fun fromList(pigeonVar_list: List): RouteSegmentDto { val trafficData = pigeonVar_list[0] as RouteSegmentTrafficDataDto? @@ -2249,14 +2283,11 @@ data class RouteSegmentDto ( return RouteSegmentDto(trafficData, destinationLatLng, latLngs, destinationWaypoint) } } + fun toList(): List { - return listOf( - trafficData, - destinationLatLng, - latLngs, - destinationWaypoint, - ) + return listOf(trafficData, destinationLatLng, latLngs, destinationWaypoint) } + override fun equals(other: Any?): Boolean { if (other !is RouteSegmentDto) { return false @@ -2264,23 +2295,24 @@ data class RouteSegmentDto ( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) + } override fun hashCode(): Int = toList().hashCode() } /** - * One of the possible directions from a lane at the end of a route step, and whether it is on the recommended route. + * One of the possible directions from a lane at the end of a route step, and whether it is on the + * recommended route. * * Generated class from Pigeon that represents data sent in messages. */ -data class LaneDirectionDto ( +data class LaneDirectionDto( /** Shape for this lane direction. */ val laneShape: LaneShapeDto, /** Whether this lane is recommended. */ - val isRecommended: Boolean -) - { + val isRecommended: Boolean, +) { companion object { fun fromList(pigeonVar_list: List): LaneDirectionDto { val laneShape = pigeonVar_list[0] as LaneShapeDto @@ -2288,12 +2320,11 @@ data class LaneDirectionDto ( return LaneDirectionDto(laneShape, isRecommended) } } + fun toList(): List { - return listOf( - laneShape, - isRecommended, - ) + return listOf(laneShape, isRecommended) } + override fun equals(other: Any?): Boolean { if (other !is LaneDirectionDto) { return false @@ -2301,7 +2332,8 @@ data class LaneDirectionDto ( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) + } override fun hashCode(): Int = toList().hashCode() } @@ -2311,22 +2343,24 @@ data class LaneDirectionDto ( * * Generated class from Pigeon that represents data sent in messages. */ -data class LaneDto ( - /** List of possible directions a driver can follow when using this lane at the end of the respective route step */ +data class LaneDto( + /** + * List of possible directions a driver can follow when using this lane at the end of the + * respective route step + */ val laneDirections: List -) - { +) { companion object { fun fromList(pigeonVar_list: List): LaneDto { val laneDirections = pigeonVar_list[0] as List return LaneDto(laneDirections) } } + fun toList(): List { - return listOf( - laneDirections, - ) + return listOf(laneDirections) } + override fun equals(other: Any?): Boolean { if (other !is LaneDto) { return false @@ -2334,7 +2368,8 @@ data class LaneDto ( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) + } override fun hashCode(): Int = toList().hashCode() } @@ -2344,7 +2379,7 @@ data class LaneDto ( * * Generated class from Pigeon that represents data sent in messages. */ -data class StepInfoDto ( +data class StepInfoDto( /** Distance in meters from the previous step to this step if available, otherwise null. */ val distanceFromPrevStepMeters: Long? = null, /** Time in seconds from the previous step to this step if available, otherwise null. */ @@ -2360,8 +2395,8 @@ data class StepInfoDto ( /** The simplified version of the road name if available, otherwise null. */ val simpleRoadName: String? = null, /** - * The counted number of the exit to take relative to the location where the - * roundabout was entered if available, otherwise null. + * The counted number of the exit to take relative to the location where the roundabout was + * entered if available, otherwise null. */ val roundaboutTurnNumber: Long? = null, /** The list of available lanes at the end of this route step if available, otherwise null. */ @@ -2371,17 +2406,17 @@ data class StepInfoDto ( /** The index of the step in the list of all steps in the route if available, otherwise null. */ val stepNumber: Long? = null, /** - * Image descriptor for the generated maneuver image for the current step if available, otherwise null. - * This image is generated only if step image generation option includes maneuver images. + * Image descriptor for the generated maneuver image for the current step if available, otherwise + * null. This image is generated only if step image generation option includes maneuver images. */ val maneuverImage: ImageDescriptorDto? = null, /** - * Image descriptor for the generated lane guidance image for the current step if available, otherwise null. - * This image is generated only if step image generation option includes lane images. + * Image descriptor for the generated lane guidance image for the current step if available, + * otherwise null. This image is generated only if step image generation option includes lane + * images. */ - val lanesImage: ImageDescriptorDto? = null -) - { + val lanesImage: ImageDescriptorDto? = null, +) { companion object { fun fromList(pigeonVar_list: List): StepInfoDto { val distanceFromPrevStepMeters = pigeonVar_list[0] as Long? @@ -2397,9 +2432,24 @@ data class StepInfoDto ( val stepNumber = pigeonVar_list[10] as Long? val maneuverImage = pigeonVar_list[11] as ImageDescriptorDto? val lanesImage = pigeonVar_list[12] as ImageDescriptorDto? - return StepInfoDto(distanceFromPrevStepMeters, timeFromPrevStepSeconds, drivingSide, exitNumber, fullInstructions, fullRoadName, simpleRoadName, roundaboutTurnNumber, lanes, maneuver, stepNumber, maneuverImage, lanesImage) + return StepInfoDto( + distanceFromPrevStepMeters, + timeFromPrevStepSeconds, + drivingSide, + exitNumber, + fullInstructions, + fullRoadName, + simpleRoadName, + roundaboutTurnNumber, + lanes, + maneuver, + stepNumber, + maneuverImage, + lanesImage, + ) } } + fun toList(): List { return listOf( distanceFromPrevStepMeters, @@ -2417,6 +2467,7 @@ data class StepInfoDto ( lanesImage, ) } + override fun equals(other: Any?): Boolean { if (other !is StepInfoDto) { return false @@ -2424,18 +2475,19 @@ data class StepInfoDto ( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) + } override fun hashCode(): Int = toList().hashCode() } /** - * Contains information about the state of navigation, the current nav step if - * available, and remaining steps if available. + * Contains information about the state of navigation, the current nav step if available, and + * remaining steps if available. * * Generated class from Pigeon that represents data sent in messages. */ -data class NavInfoDto ( +data class NavInfoDto( /** The current state of navigation. */ val navState: NavStateDto, /** Information about the upcoming maneuver step. */ @@ -2444,14 +2496,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. */ + val distanceToCurrentStepMeters: Long? = null, /** - * 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, /** @@ -2460,14 +2509,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, /** @@ -2475,9 +2521,8 @@ data class NavInfoDto ( * * Android only. */ - val timeToNextDestinationSeconds: Long? = null -) - { + val timeToNextDestinationSeconds: Long? = null, +) { companion object { fun fromList(pigeonVar_list: List): NavInfoDto { val navState = pigeonVar_list[0] as NavStateDto @@ -2490,9 +2535,21 @@ data class NavInfoDto ( val timeToCurrentStepSeconds = pigeonVar_list[7] as Long? val timeToFinalDestinationSeconds = pigeonVar_list[8] as Long? val timeToNextDestinationSeconds = pigeonVar_list[9] as Long? - return NavInfoDto(navState, currentStep, remainingSteps, routeChanged, distanceToCurrentStepMeters, distanceToFinalDestinationMeters, distanceToNextDestinationMeters, timeToCurrentStepSeconds, timeToFinalDestinationSeconds, timeToNextDestinationSeconds) + return NavInfoDto( + navState, + currentStep, + remainingSteps, + routeChanged, + distanceToCurrentStepMeters, + distanceToFinalDestinationMeters, + distanceToNextDestinationMeters, + timeToCurrentStepSeconds, + timeToFinalDestinationSeconds, + timeToNextDestinationSeconds, + ) } } + fun toList(): List { return listOf( navState, @@ -2507,6 +2564,7 @@ data class NavInfoDto ( timeToNextDestinationSeconds, ) } + override fun equals(other: Any?): Boolean { if (other !is NavInfoDto) { return false @@ -2514,7 +2572,8 @@ data class NavInfoDto ( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) + } override fun hashCode(): Int = toList().hashCode() } @@ -2522,12 +2581,12 @@ data class NavInfoDto ( /** * UI customization parameters for the Terms and Conditions dialog. * - * All color values are 32-bit ARGB integers (format: 0xAARRGGBB). - * All parameters are optional - if not provided, platform defaults will be used. + * All color values are 32-bit ARGB integers (format: 0xAARRGGBB). All parameters are optional - if + * not provided, platform defaults will be used. * * Generated class from Pigeon that represents data sent in messages. */ -data class TermsAndConditionsUIParamsDto ( +data class TermsAndConditionsUIParamsDto( /** Background color of the dialog box. */ val backgroundColor: Long? = null, /** Text color for the dialog title. */ @@ -2537,9 +2596,8 @@ data class TermsAndConditionsUIParamsDto ( /** Text color for the accept button. */ val acceptButtonTextColor: Long? = null, /** Text color for the cancel button. */ - val cancelButtonTextColor: Long? = null -) - { + val cancelButtonTextColor: Long? = null, +) { companion object { fun fromList(pigeonVar_list: List): TermsAndConditionsUIParamsDto { val backgroundColor = pigeonVar_list[0] as Long? @@ -2547,9 +2605,16 @@ data class TermsAndConditionsUIParamsDto ( val mainTextColor = pigeonVar_list[2] as Long? val acceptButtonTextColor = pigeonVar_list[3] as Long? val cancelButtonTextColor = pigeonVar_list[4] as Long? - return TermsAndConditionsUIParamsDto(backgroundColor, titleColor, mainTextColor, acceptButtonTextColor, cancelButtonTextColor) + return TermsAndConditionsUIParamsDto( + backgroundColor, + titleColor, + mainTextColor, + acceptButtonTextColor, + cancelButtonTextColor, + ) } } + fun toList(): List { return listOf( backgroundColor, @@ -2559,6 +2624,7 @@ data class TermsAndConditionsUIParamsDto ( cancelButtonTextColor, ) } + override fun equals(other: Any?): Boolean { if (other !is TermsAndConditionsUIParamsDto) { return false @@ -2566,7 +2632,8 @@ data class TermsAndConditionsUIParamsDto ( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) + } override fun hashCode(): Int = toList().hashCode() } @@ -2576,19 +2643,14 @@ data class TermsAndConditionsUIParamsDto ( * * Generated class from Pigeon that represents data sent in messages. */ -data class StepImageGenerationOptionsDto ( +data class StepImageGenerationOptionsDto( /** - * Whether to generate maneuver images for navigation steps. - * Defaults to false if not specified. + * Whether to generate maneuver images for navigation steps. Defaults to false if not specified. */ val generateManeuverImages: Boolean? = null, - /** - * Whether to generate lane images for navigation steps. - * Defaults to false if not specified. - */ - val generateLaneImages: Boolean? = null -) - { + /** Whether to generate lane images for navigation steps. Defaults to false if not specified. */ + val generateLaneImages: Boolean? = null, +) { companion object { fun fromList(pigeonVar_list: List): StepImageGenerationOptionsDto { val generateManeuverImages = pigeonVar_list[0] as Boolean? @@ -2596,12 +2658,11 @@ data class StepImageGenerationOptionsDto ( return StepImageGenerationOptionsDto(generateManeuverImages, generateLaneImages) } } + fun toList(): List { - return listOf( - generateManeuverImages, - generateLaneImages, - ) + return listOf(generateManeuverImages, generateLaneImages) } + override fun equals(other: Any?): Boolean { if (other !is StepImageGenerationOptionsDto) { return false @@ -2609,17 +2670,17 @@ data class StepImageGenerationOptionsDto ( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) + } override fun hashCode(): Int = toList().hashCode() } + private open class messagesPigeonCodec : StandardMessageCodec() { override fun readValueOfType(type: Byte, buffer: ByteBuffer): Any? { return when (type) { 129.toByte() -> { - return (readValue(buffer) as Long?)?.let { - MapViewTypeDto.ofRaw(it.toInt()) - } + return (readValue(buffer) as Long?)?.let { MapViewTypeDto.ofRaw(it.toInt()) } } 130.toByte() -> { return (readValue(buffer) as Long?)?.let { @@ -2627,89 +2688,55 @@ private open class messagesPigeonCodec : StandardMessageCodec() { } } 131.toByte() -> { - return (readValue(buffer) as Long?)?.let { - MapTypeDto.ofRaw(it.toInt()) - } + return (readValue(buffer) as Long?)?.let { MapTypeDto.ofRaw(it.toInt()) } } 132.toByte() -> { - return (readValue(buffer) as Long?)?.let { - MapColorSchemeDto.ofRaw(it.toInt()) - } + return (readValue(buffer) as Long?)?.let { MapColorSchemeDto.ofRaw(it.toInt()) } } 133.toByte() -> { - return (readValue(buffer) as Long?)?.let { - NavigationForceNightModeDto.ofRaw(it.toInt()) - } + return (readValue(buffer) as Long?)?.let { NavigationForceNightModeDto.ofRaw(it.toInt()) } } 134.toByte() -> { - return (readValue(buffer) as Long?)?.let { - CameraPerspectiveDto.ofRaw(it.toInt()) - } + return (readValue(buffer) as Long?)?.let { CameraPerspectiveDto.ofRaw(it.toInt()) } } 135.toByte() -> { - return (readValue(buffer) as Long?)?.let { - RegisteredImageTypeDto.ofRaw(it.toInt()) - } + return (readValue(buffer) as Long?)?.let { RegisteredImageTypeDto.ofRaw(it.toInt()) } } 136.toByte() -> { - return (readValue(buffer) as Long?)?.let { - MarkerEventTypeDto.ofRaw(it.toInt()) - } + return (readValue(buffer) as Long?)?.let { MarkerEventTypeDto.ofRaw(it.toInt()) } } 137.toByte() -> { - return (readValue(buffer) as Long?)?.let { - MarkerDragEventTypeDto.ofRaw(it.toInt()) - } + return (readValue(buffer) as Long?)?.let { MarkerDragEventTypeDto.ofRaw(it.toInt()) } } 138.toByte() -> { - return (readValue(buffer) as Long?)?.let { - StrokeJointTypeDto.ofRaw(it.toInt()) - } + return (readValue(buffer) as Long?)?.let { StrokeJointTypeDto.ofRaw(it.toInt()) } } 139.toByte() -> { - return (readValue(buffer) as Long?)?.let { - PatternTypeDto.ofRaw(it.toInt()) - } + return (readValue(buffer) as Long?)?.let { PatternTypeDto.ofRaw(it.toInt()) } } 140.toByte() -> { - return (readValue(buffer) as Long?)?.let { - CameraEventTypeDto.ofRaw(it.toInt()) - } + return (readValue(buffer) as Long?)?.let { CameraEventTypeDto.ofRaw(it.toInt()) } } 141.toByte() -> { - return (readValue(buffer) as Long?)?.let { - AlternateRoutesStrategyDto.ofRaw(it.toInt()) - } + return (readValue(buffer) as Long?)?.let { AlternateRoutesStrategyDto.ofRaw(it.toInt()) } } 142.toByte() -> { - return (readValue(buffer) as Long?)?.let { - RoutingStrategyDto.ofRaw(it.toInt()) - } + return (readValue(buffer) as Long?)?.let { RoutingStrategyDto.ofRaw(it.toInt()) } } 143.toByte() -> { - return (readValue(buffer) as Long?)?.let { - TravelModeDto.ofRaw(it.toInt()) - } + return (readValue(buffer) as Long?)?.let { TravelModeDto.ofRaw(it.toInt()) } } 144.toByte() -> { - return (readValue(buffer) as Long?)?.let { - RouteStatusDto.ofRaw(it.toInt()) - } + return (readValue(buffer) as Long?)?.let { RouteStatusDto.ofRaw(it.toInt()) } } 145.toByte() -> { - return (readValue(buffer) as Long?)?.let { - TrafficDelaySeverityDto.ofRaw(it.toInt()) - } + return (readValue(buffer) as Long?)?.let { TrafficDelaySeverityDto.ofRaw(it.toInt()) } } 146.toByte() -> { - return (readValue(buffer) as Long?)?.let { - AudioGuidanceTypeDto.ofRaw(it.toInt()) - } + return (readValue(buffer) as Long?)?.let { AudioGuidanceTypeDto.ofRaw(it.toInt()) } } 147.toByte() -> { - return (readValue(buffer) as Long?)?.let { - SpeedAlertSeverityDto.ofRaw(it.toInt()) - } + return (readValue(buffer) as Long?)?.let { SpeedAlertSeverityDto.ofRaw(it.toInt()) } } 148.toByte() -> { return (readValue(buffer) as Long?)?.let { @@ -2722,149 +2749,91 @@ private open class messagesPigeonCodec : StandardMessageCodec() { } } 150.toByte() -> { - return (readValue(buffer) as Long?)?.let { - ManeuverDto.ofRaw(it.toInt()) - } + return (readValue(buffer) as Long?)?.let { ManeuverDto.ofRaw(it.toInt()) } } 151.toByte() -> { - return (readValue(buffer) as Long?)?.let { - DrivingSideDto.ofRaw(it.toInt()) - } + return (readValue(buffer) as Long?)?.let { DrivingSideDto.ofRaw(it.toInt()) } } 152.toByte() -> { - return (readValue(buffer) as Long?)?.let { - NavStateDto.ofRaw(it.toInt()) - } + return (readValue(buffer) as Long?)?.let { NavStateDto.ofRaw(it.toInt()) } } 153.toByte() -> { - return (readValue(buffer) as Long?)?.let { - LaneShapeDto.ofRaw(it.toInt()) - } + return (readValue(buffer) as Long?)?.let { LaneShapeDto.ofRaw(it.toInt()) } } 154.toByte() -> { - return (readValue(buffer) as Long?)?.let { - TaskRemovedBehaviorDto.ofRaw(it.toInt()) - } + return (readValue(buffer) as Long?)?.let { TaskRemovedBehaviorDto.ofRaw(it.toInt()) } } 155.toByte() -> { - return (readValue(buffer) as? List)?.let { - AutoMapOptionsDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { AutoMapOptionsDto.fromList(it) } } 156.toByte() -> { - return (readValue(buffer) as? List)?.let { - MapOptionsDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { MapOptionsDto.fromList(it) } } 157.toByte() -> { - return (readValue(buffer) as? List)?.let { - NavigationViewOptionsDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { NavigationViewOptionsDto.fromList(it) } } 158.toByte() -> { - return (readValue(buffer) as? List)?.let { - ViewCreationOptionsDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { ViewCreationOptionsDto.fromList(it) } } 159.toByte() -> { - return (readValue(buffer) as? List)?.let { - CameraPositionDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { CameraPositionDto.fromList(it) } } 160.toByte() -> { - return (readValue(buffer) as? List)?.let { - MarkerDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { MarkerDto.fromList(it) } } 161.toByte() -> { - return (readValue(buffer) as? List)?.let { - MarkerOptionsDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { MarkerOptionsDto.fromList(it) } } 162.toByte() -> { - return (readValue(buffer) as? List)?.let { - ImageDescriptorDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { ImageDescriptorDto.fromList(it) } } 163.toByte() -> { - return (readValue(buffer) as? List)?.let { - InfoWindowDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { InfoWindowDto.fromList(it) } } 164.toByte() -> { - return (readValue(buffer) as? List)?.let { - MarkerAnchorDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { MarkerAnchorDto.fromList(it) } } 165.toByte() -> { - return (readValue(buffer) as? List)?.let { - PointOfInterestDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { PointOfInterestDto.fromList(it) } } 166.toByte() -> { - return (readValue(buffer) as? List)?.let { - IndoorLevelDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { IndoorLevelDto.fromList(it) } } 167.toByte() -> { - return (readValue(buffer) as? List)?.let { - IndoorBuildingDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { IndoorBuildingDto.fromList(it) } } 168.toByte() -> { - return (readValue(buffer) as? List)?.let { - PolygonDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { PolygonDto.fromList(it) } } 169.toByte() -> { - return (readValue(buffer) as? List)?.let { - PolygonOptionsDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { PolygonOptionsDto.fromList(it) } } 170.toByte() -> { - return (readValue(buffer) as? List)?.let { - PolygonHoleDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { PolygonHoleDto.fromList(it) } } 171.toByte() -> { - return (readValue(buffer) as? List)?.let { - StyleSpanStrokeStyleDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { StyleSpanStrokeStyleDto.fromList(it) } } 172.toByte() -> { - return (readValue(buffer) as? List)?.let { - StyleSpanDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { StyleSpanDto.fromList(it) } } 173.toByte() -> { - return (readValue(buffer) as? List)?.let { - PolylineDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { PolylineDto.fromList(it) } } 174.toByte() -> { - return (readValue(buffer) as? List)?.let { - PatternItemDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { PatternItemDto.fromList(it) } } 175.toByte() -> { - return (readValue(buffer) as? List)?.let { - PolylineOptionsDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { PolylineOptionsDto.fromList(it) } } 176.toByte() -> { - return (readValue(buffer) as? List)?.let { - CircleDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { CircleDto.fromList(it) } } 177.toByte() -> { - return (readValue(buffer) as? List)?.let { - CircleOptionsDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { CircleOptionsDto.fromList(it) } } 178.toByte() -> { - return (readValue(buffer) as? List)?.let { - MapPaddingDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { MapPaddingDto.fromList(it) } } 179.toByte() -> { return (readValue(buffer) as? List)?.let { @@ -2872,29 +2841,19 @@ private open class messagesPigeonCodec : StandardMessageCodec() { } } 180.toByte() -> { - return (readValue(buffer) as? List)?.let { - RouteTokenOptionsDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { RouteTokenOptionsDto.fromList(it) } } 181.toByte() -> { - return (readValue(buffer) as? List)?.let { - DestinationsDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { DestinationsDto.fromList(it) } } 182.toByte() -> { - return (readValue(buffer) as? List)?.let { - RoutingOptionsDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { RoutingOptionsDto.fromList(it) } } 183.toByte() -> { - return (readValue(buffer) as? List)?.let { - NavigationDisplayOptionsDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { NavigationDisplayOptionsDto.fromList(it) } } 184.toByte() -> { - return (readValue(buffer) as? List)?.let { - NavigationWaypointDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { NavigationWaypointDto.fromList(it) } } 185.toByte() -> { return (readValue(buffer) as? List)?.let { @@ -2902,9 +2861,7 @@ private open class messagesPigeonCodec : StandardMessageCodec() { } } 186.toByte() -> { - return (readValue(buffer) as? List)?.let { - NavigationTimeAndDistanceDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { NavigationTimeAndDistanceDto.fromList(it) } } 187.toByte() -> { return (readValue(buffer) as? List)?.let { @@ -2912,24 +2869,16 @@ private open class messagesPigeonCodec : StandardMessageCodec() { } } 188.toByte() -> { - return (readValue(buffer) as? List)?.let { - SimulationOptionsDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { SimulationOptionsDto.fromList(it) } } 189.toByte() -> { - return (readValue(buffer) as? List)?.let { - LatLngDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { LatLngDto.fromList(it) } } 190.toByte() -> { - return (readValue(buffer) as? List)?.let { - LatLngBoundsDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { LatLngBoundsDto.fromList(it) } } 191.toByte() -> { - return (readValue(buffer) as? List)?.let { - SpeedingUpdatedEventDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { SpeedingUpdatedEventDto.fromList(it) } } 192.toByte() -> { return (readValue(buffer) as? List)?.let { @@ -2942,9 +2891,7 @@ private open class messagesPigeonCodec : StandardMessageCodec() { } } 194.toByte() -> { - return (readValue(buffer) as? List)?.let { - SpeedAlertOptionsDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { SpeedAlertOptionsDto.fromList(it) } } 195.toByte() -> { return (readValue(buffer) as? List)?.let { @@ -2952,34 +2899,22 @@ private open class messagesPigeonCodec : StandardMessageCodec() { } } 196.toByte() -> { - return (readValue(buffer) as? List)?.let { - RouteSegmentTrafficDataDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { RouteSegmentTrafficDataDto.fromList(it) } } 197.toByte() -> { - return (readValue(buffer) as? List)?.let { - RouteSegmentDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { RouteSegmentDto.fromList(it) } } 198.toByte() -> { - return (readValue(buffer) as? List)?.let { - LaneDirectionDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { LaneDirectionDto.fromList(it) } } 199.toByte() -> { - return (readValue(buffer) as? List)?.let { - LaneDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { LaneDto.fromList(it) } } 200.toByte() -> { - return (readValue(buffer) as? List)?.let { - StepInfoDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { StepInfoDto.fromList(it) } } 201.toByte() -> { - return (readValue(buffer) as? List)?.let { - NavInfoDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { NavInfoDto.fromList(it) } } 202.toByte() -> { return (readValue(buffer) as? List)?.let { @@ -2994,7 +2929,8 @@ private open class messagesPigeonCodec : StandardMessageCodec() { else -> super.readValueOfType(type, buffer) } } - override fun writeValue(stream: ByteArrayOutputStream, value: Any?) { + + override fun writeValue(stream: ByteArrayOutputStream, value: Any?) { when (value) { is MapViewTypeDto -> { stream.write(129) @@ -3301,12 +3237,10 @@ private open class messagesPigeonCodec : StandardMessageCodec() { } } - /** - * Dummy interface to force generation of the platform view creation params. - * Pigeon only generates messages if the messages are used in API. - * [ViewCreationOptionsDto] is encoded and decoded directly to generate a - * PlatformView creation message. + * Dummy interface to force generation of the platform view creation params. Pigeon only generates + * messages if the messages are used in API. [ViewCreationOptionsDto] is encoded and decoded + * directly to generate a PlatformView creation message. * * This API should never be used directly. * @@ -3317,25 +3251,37 @@ interface ViewCreationApi { companion object { /** The codec used by ViewCreationApi. */ - val codec: MessageCodec by lazy { - messagesPigeonCodec() - } - /** Sets up an instance of `ViewCreationApi` to handle messages through the `binaryMessenger`. */ + val codec: MessageCodec by lazy { messagesPigeonCodec() } + + /** + * Sets up an instance of `ViewCreationApi` to handle messages through the `binaryMessenger`. + */ @JvmOverloads - fun setUp(binaryMessenger: BinaryMessenger, api: ViewCreationApi?, messageChannelSuffix: String = "") { - val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + fun setUp( + binaryMessenger: BinaryMessenger, + api: ViewCreationApi?, + messageChannelSuffix: String = "", + ) { + val separatedMessageChannelSuffix = + if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.ViewCreationApi.create$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.ViewCreationApi.create$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val msgArg = args[0] as ViewCreationOptionsDto - val wrapped: List = try { - api.create(msgArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.create(msgArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -3345,137 +3291,300 @@ interface ViewCreationApi { } } } + /** Generated interface from Pigeon that represents a handler of messages from Flutter. */ interface MapViewApi { fun awaitMapReady(viewId: Long, callback: (Result) -> Unit) + fun isMyLocationEnabled(viewId: Long): Boolean + fun setMyLocationEnabled(viewId: Long, enabled: Boolean) + fun getMyLocation(viewId: Long): LatLngDto? + fun getMapType(viewId: Long): MapTypeDto + fun setMapType(viewId: Long, mapType: MapTypeDto) + fun setMapStyle(viewId: Long, styleJson: String) + fun isNavigationTripProgressBarEnabled(viewId: Long): Boolean + fun setNavigationTripProgressBarEnabled(viewId: Long, enabled: Boolean) + fun isNavigationHeaderEnabled(viewId: Long): Boolean + fun setNavigationHeaderEnabled(viewId: Long, enabled: Boolean) + fun getNavigationHeaderStylingOptions(viewId: Long): NavigationHeaderStylingOptionsDto - fun setNavigationHeaderStylingOptions(viewId: Long, stylingOptions: NavigationHeaderStylingOptionsDto) + + fun setNavigationHeaderStylingOptions( + viewId: Long, + stylingOptions: NavigationHeaderStylingOptionsDto, + ) + fun isNavigationFooterEnabled(viewId: Long): Boolean + fun setNavigationFooterEnabled(viewId: Long, enabled: Boolean) + fun isRecenterButtonEnabled(viewId: Long): Boolean + fun setRecenterButtonEnabled(viewId: Long, enabled: Boolean) + fun isSpeedLimitIconEnabled(viewId: Long): Boolean + fun setSpeedLimitIconEnabled(viewId: Long, enabled: Boolean) + fun isSpeedometerEnabled(viewId: Long): Boolean + fun setSpeedometerEnabled(viewId: Long, enabled: Boolean) + fun isNavigationUIEnabled(viewId: Long): Boolean + fun setNavigationUIEnabled(viewId: Long, enabled: Boolean) + fun isMyLocationButtonEnabled(viewId: Long): Boolean + fun setMyLocationButtonEnabled(viewId: Long, enabled: Boolean) + fun isConsumeMyLocationButtonClickEventsEnabled(viewId: Long): Boolean + fun setConsumeMyLocationButtonClickEventsEnabled(viewId: Long, enabled: Boolean) + fun isZoomGesturesEnabled(viewId: Long): Boolean + fun setZoomGesturesEnabled(viewId: Long, enabled: Boolean) + fun isZoomControlsEnabled(viewId: Long): Boolean + fun setZoomControlsEnabled(viewId: Long, enabled: Boolean) + fun isCompassEnabled(viewId: Long): Boolean + fun setCompassEnabled(viewId: Long, enabled: Boolean) + fun isRotateGesturesEnabled(viewId: Long): Boolean + fun setRotateGesturesEnabled(viewId: Long, enabled: Boolean) + fun isScrollGesturesEnabled(viewId: Long): Boolean + fun setScrollGesturesEnabled(viewId: Long, enabled: Boolean) + fun isScrollGesturesEnabledDuringRotateOrZoom(viewId: Long): Boolean + fun setScrollGesturesDuringRotateOrZoomEnabled(viewId: Long, enabled: Boolean) + fun isTiltGesturesEnabled(viewId: Long): Boolean + fun setTiltGesturesEnabled(viewId: Long, enabled: Boolean) + fun isMapToolbarEnabled(viewId: Long): Boolean + fun setMapToolbarEnabled(viewId: Long, enabled: Boolean) + fun isTrafficEnabled(viewId: Long): Boolean + fun setTrafficEnabled(viewId: Long, enabled: Boolean) + fun isTrafficIncidentCardsEnabled(viewId: Long): Boolean + fun setTrafficIncidentCardsEnabled(viewId: Long, enabled: Boolean) + fun isTrafficPromptsEnabled(viewId: Long): Boolean + fun setTrafficPromptsEnabled(viewId: Long, enabled: Boolean) + fun isReportIncidentButtonEnabled(viewId: Long): Boolean + fun setReportIncidentButtonEnabled(viewId: Long, enabled: Boolean) + fun isIncidentReportingAvailable(viewId: Long): Boolean + fun showReportIncidentsPanel(viewId: Long) + fun isBuildingsEnabled(viewId: Long): Boolean + fun setBuildingsEnabled(viewId: Long, enabled: Boolean) + fun isIndoorEnabled(viewId: Long): Boolean + fun setIndoorEnabled(viewId: Long, enabled: Boolean) + fun isIndoorLevelPickerEnabled(viewId: Long): Boolean + fun setIndoorLevelPickerEnabled(viewId: Long, enabled: Boolean) + fun getFocusedIndoorBuilding(viewId: Long): IndoorBuildingDto? + /** - * Activates the indoor level at [levelIndex] within the currently focused - * indoor building. Throws if no building is focused or the index is out of - * range. + * Activates the indoor level at [levelIndex] within the currently focused indoor building. Throws + * if no building is focused or the index is out of range. */ fun activateIndoorLevel(viewId: Long, levelIndex: Long) + fun getCameraPosition(viewId: Long): CameraPositionDto + fun getVisibleRegion(viewId: Long): LatLngBoundsDto + fun followMyLocation(viewId: Long, perspective: CameraPerspectiveDto, zoomLevel: Double?) - fun animateCameraToCameraPosition(viewId: Long, cameraPosition: CameraPositionDto, duration: Long?, callback: (Result) -> Unit) - fun animateCameraToLatLng(viewId: Long, point: LatLngDto, duration: Long?, callback: (Result) -> Unit) - fun animateCameraToLatLngBounds(viewId: Long, bounds: LatLngBoundsDto, padding: Double, duration: Long?, callback: (Result) -> Unit) - fun animateCameraToLatLngZoom(viewId: Long, point: LatLngDto, zoom: Double, duration: Long?, callback: (Result) -> Unit) - fun animateCameraByScroll(viewId: Long, scrollByDx: Double, scrollByDy: Double, duration: Long?, callback: (Result) -> Unit) - fun animateCameraByZoom(viewId: Long, zoomBy: Double, focusDx: Double?, focusDy: Double?, duration: Long?, callback: (Result) -> Unit) - fun animateCameraToZoom(viewId: Long, zoom: Double, duration: Long?, callback: (Result) -> Unit) + + fun animateCameraToCameraPosition( + viewId: Long, + cameraPosition: CameraPositionDto, + duration: Long?, + callback: (Result) -> Unit, + ) + + fun animateCameraToLatLng( + viewId: Long, + point: LatLngDto, + duration: Long?, + callback: (Result) -> Unit, + ) + + fun animateCameraToLatLngBounds( + viewId: Long, + bounds: LatLngBoundsDto, + padding: Double, + duration: Long?, + callback: (Result) -> Unit, + ) + + fun animateCameraToLatLngZoom( + viewId: Long, + point: LatLngDto, + zoom: Double, + duration: Long?, + callback: (Result) -> Unit, + ) + + fun animateCameraByScroll( + viewId: Long, + scrollByDx: Double, + scrollByDy: Double, + duration: Long?, + callback: (Result) -> Unit, + ) + + fun animateCameraByZoom( + viewId: Long, + zoomBy: Double, + focusDx: Double?, + focusDy: Double?, + duration: Long?, + callback: (Result) -> Unit, + ) + + fun animateCameraToZoom( + viewId: Long, + zoom: Double, + duration: Long?, + callback: (Result) -> Unit, + ) + fun moveCameraToCameraPosition(viewId: Long, cameraPosition: CameraPositionDto) + fun moveCameraToLatLng(viewId: Long, point: LatLngDto) + fun moveCameraToLatLngBounds(viewId: Long, bounds: LatLngBoundsDto, padding: Double) + fun moveCameraToLatLngZoom(viewId: Long, point: LatLngDto, zoom: Double) + fun moveCameraByScroll(viewId: Long, scrollByDx: Double, scrollByDy: Double) + fun moveCameraByZoom(viewId: Long, zoomBy: Double, focusDx: Double?, focusDy: Double?) + fun moveCameraToZoom(viewId: Long, zoom: Double) + fun showRouteOverview(viewId: Long) + fun getMinZoomPreference(viewId: Long): Double + fun getMaxZoomPreference(viewId: Long): Double + fun resetMinMaxZoomPreference(viewId: Long) + fun setMinZoomPreference(viewId: Long, minZoomPreference: Double) + fun setMaxZoomPreference(viewId: Long, maxZoomPreference: Double) + fun getMarkers(viewId: Long): List + fun addMarkers(viewId: Long, markers: List): List + fun updateMarkers(viewId: Long, markers: List): List + fun removeMarkers(viewId: Long, markers: List) + fun clearMarkers(viewId: Long) + fun clear(viewId: Long) + fun getPolygons(viewId: Long): List + fun addPolygons(viewId: Long, polygons: List): List + fun updatePolygons(viewId: Long, polygons: List): List + fun removePolygons(viewId: Long, polygons: List) + fun clearPolygons(viewId: Long) + fun getPolylines(viewId: Long): List + fun addPolylines(viewId: Long, polylines: List): List + fun updatePolylines(viewId: Long, polylines: List): List + fun removePolylines(viewId: Long, polylines: List) + fun clearPolylines(viewId: Long) + fun getCircles(viewId: Long): List + fun addCircles(viewId: Long, circles: List): List + fun updateCircles(viewId: Long, circles: List): List + fun removeCircles(viewId: Long, circles: List) + fun clearCircles(viewId: Long) + fun enableOnCameraChangedEvents(viewId: Long) + fun setPadding(viewId: Long, padding: MapPaddingDto) + fun getPadding(viewId: Long): MapPaddingDto + fun getMapColorScheme(viewId: Long): MapColorSchemeDto + fun setMapColorScheme(viewId: Long, mapColorScheme: MapColorSchemeDto) + fun getForceNightMode(viewId: Long): NavigationForceNightModeDto + fun setForceNightMode(viewId: Long, forceNightMode: NavigationForceNightModeDto) companion object { /** The codec used by MapViewApi. */ - val codec: MessageCodec by lazy { - messagesPigeonCodec() - } + val codec: MessageCodec by lazy { messagesPigeonCodec() } + /** Sets up an instance of `MapViewApi` to handle messages through the `binaryMessenger`. */ @JvmOverloads - fun setUp(binaryMessenger: BinaryMessenger, api: MapViewApi?, messageChannelSuffix: String = "") { - val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + fun setUp( + binaryMessenger: BinaryMessenger, + api: MapViewApi?, + messageChannelSuffix: String = "", + ) { + val separatedMessageChannelSuffix = + if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.awaitMapReady$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.awaitMapReady$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -3494,16 +3603,22 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMyLocationEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMyLocationEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = try { - listOf(api.isMyLocationEnabled(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.isMyLocationEnabled(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -3511,18 +3626,24 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMyLocationEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMyLocationEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val enabledArg = args[1] as Boolean - val wrapped: List = try { - api.setMyLocationEnabled(viewIdArg, enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.setMyLocationEnabled(viewIdArg, enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -3530,16 +3651,22 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMyLocation$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMyLocation$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = try { - listOf(api.getMyLocation(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.getMyLocation(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -3547,16 +3674,22 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMapType$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMapType$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = try { - listOf(api.getMapType(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.getMapType(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -3564,18 +3697,24 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapType$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapType$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val mapTypeArg = args[1] as MapTypeDto - val wrapped: List = try { - api.setMapType(viewIdArg, mapTypeArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.setMapType(viewIdArg, mapTypeArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -3583,18 +3722,24 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapStyle$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapStyle$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val styleJsonArg = args[1] as String - val wrapped: List = try { - api.setMapStyle(viewIdArg, styleJsonArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.setMapStyle(viewIdArg, styleJsonArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -3602,16 +3747,22 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationTripProgressBarEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationTripProgressBarEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = try { - listOf(api.isNavigationTripProgressBarEnabled(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.isNavigationTripProgressBarEnabled(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -3619,18 +3770,24 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationTripProgressBarEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationTripProgressBarEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val enabledArg = args[1] as Boolean - val wrapped: List = try { - api.setNavigationTripProgressBarEnabled(viewIdArg, enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.setNavigationTripProgressBarEnabled(viewIdArg, enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -3638,16 +3795,22 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationHeaderEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationHeaderEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = try { - listOf(api.isNavigationHeaderEnabled(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.isNavigationHeaderEnabled(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -3655,18 +3818,24 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationHeaderEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationHeaderEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val enabledArg = args[1] as Boolean - val wrapped: List = try { - api.setNavigationHeaderEnabled(viewIdArg, enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.setNavigationHeaderEnabled(viewIdArg, enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -3674,16 +3843,22 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getNavigationHeaderStylingOptions$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getNavigationHeaderStylingOptions$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = try { - listOf(api.getNavigationHeaderStylingOptions(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.getNavigationHeaderStylingOptions(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -3691,18 +3866,24 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationHeaderStylingOptions$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationHeaderStylingOptions$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val stylingOptionsArg = args[1] as NavigationHeaderStylingOptionsDto - val wrapped: List = try { - api.setNavigationHeaderStylingOptions(viewIdArg, stylingOptionsArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.setNavigationHeaderStylingOptions(viewIdArg, stylingOptionsArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -3710,16 +3891,22 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationFooterEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationFooterEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = try { - listOf(api.isNavigationFooterEnabled(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.isNavigationFooterEnabled(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -3727,18 +3914,24 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationFooterEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationFooterEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val enabledArg = args[1] as Boolean - val wrapped: List = try { - api.setNavigationFooterEnabled(viewIdArg, enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.setNavigationFooterEnabled(viewIdArg, enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -3746,16 +3939,22 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isRecenterButtonEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isRecenterButtonEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = try { - listOf(api.isRecenterButtonEnabled(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.isRecenterButtonEnabled(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -3763,18 +3962,24 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setRecenterButtonEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setRecenterButtonEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val enabledArg = args[1] as Boolean - val wrapped: List = try { - api.setRecenterButtonEnabled(viewIdArg, enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.setRecenterButtonEnabled(viewIdArg, enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -3782,16 +3987,22 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isSpeedLimitIconEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isSpeedLimitIconEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = try { - listOf(api.isSpeedLimitIconEnabled(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.isSpeedLimitIconEnabled(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -3799,18 +4010,24 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setSpeedLimitIconEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setSpeedLimitIconEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val enabledArg = args[1] as Boolean - val wrapped: List = try { - api.setSpeedLimitIconEnabled(viewIdArg, enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.setSpeedLimitIconEnabled(viewIdArg, enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -3818,16 +4035,22 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isSpeedometerEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isSpeedometerEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = try { - listOf(api.isSpeedometerEnabled(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.isSpeedometerEnabled(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -3835,18 +4058,24 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setSpeedometerEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setSpeedometerEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val enabledArg = args[1] as Boolean - val wrapped: List = try { - api.setSpeedometerEnabled(viewIdArg, enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.setSpeedometerEnabled(viewIdArg, enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -3854,16 +4083,22 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationUIEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationUIEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = try { - listOf(api.isNavigationUIEnabled(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.isNavigationUIEnabled(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -3871,18 +4106,24 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationUIEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationUIEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val enabledArg = args[1] as Boolean - val wrapped: List = try { - api.setNavigationUIEnabled(viewIdArg, enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.setNavigationUIEnabled(viewIdArg, enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -3890,16 +4131,22 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMyLocationButtonEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMyLocationButtonEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = try { - listOf(api.isMyLocationButtonEnabled(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.isMyLocationButtonEnabled(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -3907,18 +4154,24 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMyLocationButtonEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMyLocationButtonEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val enabledArg = args[1] as Boolean - val wrapped: List = try { - api.setMyLocationButtonEnabled(viewIdArg, enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.setMyLocationButtonEnabled(viewIdArg, enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -3926,16 +4179,22 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isConsumeMyLocationButtonClickEventsEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isConsumeMyLocationButtonClickEventsEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = try { - listOf(api.isConsumeMyLocationButtonClickEventsEnabled(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.isConsumeMyLocationButtonClickEventsEnabled(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -3943,18 +4202,24 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setConsumeMyLocationButtonClickEventsEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setConsumeMyLocationButtonClickEventsEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val enabledArg = args[1] as Boolean - val wrapped: List = try { - api.setConsumeMyLocationButtonClickEventsEnabled(viewIdArg, enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.setConsumeMyLocationButtonClickEventsEnabled(viewIdArg, enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -3962,16 +4227,22 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isZoomGesturesEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isZoomGesturesEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = try { - listOf(api.isZoomGesturesEnabled(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.isZoomGesturesEnabled(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -3979,18 +4250,24 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setZoomGesturesEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setZoomGesturesEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val enabledArg = args[1] as Boolean - val wrapped: List = try { - api.setZoomGesturesEnabled(viewIdArg, enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.setZoomGesturesEnabled(viewIdArg, enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -3998,16 +4275,22 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isZoomControlsEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isZoomControlsEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = try { - listOf(api.isZoomControlsEnabled(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.isZoomControlsEnabled(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4015,18 +4298,24 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setZoomControlsEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setZoomControlsEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val enabledArg = args[1] as Boolean - val wrapped: List = try { - api.setZoomControlsEnabled(viewIdArg, enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.setZoomControlsEnabled(viewIdArg, enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4034,16 +4323,22 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isCompassEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isCompassEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = try { - listOf(api.isCompassEnabled(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.isCompassEnabled(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4051,18 +4346,24 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setCompassEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setCompassEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val enabledArg = args[1] as Boolean - val wrapped: List = try { - api.setCompassEnabled(viewIdArg, enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.setCompassEnabled(viewIdArg, enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4070,16 +4371,22 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isRotateGesturesEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isRotateGesturesEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = try { - listOf(api.isRotateGesturesEnabled(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.isRotateGesturesEnabled(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4087,18 +4394,24 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setRotateGesturesEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setRotateGesturesEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val enabledArg = args[1] as Boolean - val wrapped: List = try { - api.setRotateGesturesEnabled(viewIdArg, enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.setRotateGesturesEnabled(viewIdArg, enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4106,16 +4419,22 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isScrollGesturesEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isScrollGesturesEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = try { - listOf(api.isScrollGesturesEnabled(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.isScrollGesturesEnabled(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4123,18 +4442,24 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setScrollGesturesEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setScrollGesturesEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val enabledArg = args[1] as Boolean - val wrapped: List = try { - api.setScrollGesturesEnabled(viewIdArg, enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.setScrollGesturesEnabled(viewIdArg, enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4142,16 +4467,22 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isScrollGesturesEnabledDuringRotateOrZoom$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isScrollGesturesEnabledDuringRotateOrZoom$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = try { - listOf(api.isScrollGesturesEnabledDuringRotateOrZoom(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.isScrollGesturesEnabledDuringRotateOrZoom(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4159,18 +4490,24 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setScrollGesturesDuringRotateOrZoomEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setScrollGesturesDuringRotateOrZoomEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val enabledArg = args[1] as Boolean - val wrapped: List = try { - api.setScrollGesturesDuringRotateOrZoomEnabled(viewIdArg, enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.setScrollGesturesDuringRotateOrZoomEnabled(viewIdArg, enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4178,16 +4515,22 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTiltGesturesEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTiltGesturesEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = try { - listOf(api.isTiltGesturesEnabled(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.isTiltGesturesEnabled(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4195,18 +4538,24 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTiltGesturesEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTiltGesturesEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val enabledArg = args[1] as Boolean - val wrapped: List = try { - api.setTiltGesturesEnabled(viewIdArg, enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.setTiltGesturesEnabled(viewIdArg, enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4214,16 +4563,22 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMapToolbarEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMapToolbarEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = try { - listOf(api.isMapToolbarEnabled(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.isMapToolbarEnabled(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4231,18 +4586,24 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapToolbarEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapToolbarEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val enabledArg = args[1] as Boolean - val wrapped: List = try { - api.setMapToolbarEnabled(viewIdArg, enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.setMapToolbarEnabled(viewIdArg, enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4250,16 +4611,22 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = try { - listOf(api.isTrafficEnabled(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.isTrafficEnabled(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4267,18 +4634,24 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val enabledArg = args[1] as Boolean - val wrapped: List = try { - api.setTrafficEnabled(viewIdArg, enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.setTrafficEnabled(viewIdArg, enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4286,16 +4659,22 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficIncidentCardsEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficIncidentCardsEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = try { - listOf(api.isTrafficIncidentCardsEnabled(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.isTrafficIncidentCardsEnabled(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4303,18 +4682,24 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficIncidentCardsEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficIncidentCardsEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val enabledArg = args[1] as Boolean - val wrapped: List = try { - api.setTrafficIncidentCardsEnabled(viewIdArg, enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.setTrafficIncidentCardsEnabled(viewIdArg, enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4322,16 +4707,22 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficPromptsEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficPromptsEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = try { - listOf(api.isTrafficPromptsEnabled(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.isTrafficPromptsEnabled(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4339,18 +4730,24 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficPromptsEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficPromptsEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val enabledArg = args[1] as Boolean - val wrapped: List = try { - api.setTrafficPromptsEnabled(viewIdArg, enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.setTrafficPromptsEnabled(viewIdArg, enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4358,16 +4755,22 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isReportIncidentButtonEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isReportIncidentButtonEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = try { - listOf(api.isReportIncidentButtonEnabled(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.isReportIncidentButtonEnabled(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4375,18 +4778,24 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setReportIncidentButtonEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setReportIncidentButtonEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val enabledArg = args[1] as Boolean - val wrapped: List = try { - api.setReportIncidentButtonEnabled(viewIdArg, enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.setReportIncidentButtonEnabled(viewIdArg, enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4394,16 +4803,22 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isIncidentReportingAvailable$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isIncidentReportingAvailable$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = try { - listOf(api.isIncidentReportingAvailable(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.isIncidentReportingAvailable(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4411,17 +4826,23 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.showReportIncidentsPanel$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.showReportIncidentsPanel$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = try { - api.showReportIncidentsPanel(viewIdArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.showReportIncidentsPanel(viewIdArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4429,16 +4850,22 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isBuildingsEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isBuildingsEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = try { - listOf(api.isBuildingsEnabled(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.isBuildingsEnabled(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4446,18 +4873,24 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setBuildingsEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setBuildingsEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val enabledArg = args[1] as Boolean - val wrapped: List = try { - api.setBuildingsEnabled(viewIdArg, enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.setBuildingsEnabled(viewIdArg, enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4465,16 +4898,22 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isIndoorEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isIndoorEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = try { - listOf(api.isIndoorEnabled(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.isIndoorEnabled(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4482,18 +4921,24 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setIndoorEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setIndoorEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val enabledArg = args[1] as Boolean - val wrapped: List = try { - api.setIndoorEnabled(viewIdArg, enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.setIndoorEnabled(viewIdArg, enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4501,16 +4946,22 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isIndoorLevelPickerEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isIndoorLevelPickerEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = try { - listOf(api.isIndoorLevelPickerEnabled(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.isIndoorLevelPickerEnabled(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4518,18 +4969,24 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setIndoorLevelPickerEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setIndoorLevelPickerEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val enabledArg = args[1] as Boolean - val wrapped: List = try { - api.setIndoorLevelPickerEnabled(viewIdArg, enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.setIndoorLevelPickerEnabled(viewIdArg, enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4537,16 +4994,22 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getFocusedIndoorBuilding$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getFocusedIndoorBuilding$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = try { - listOf(api.getFocusedIndoorBuilding(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.getFocusedIndoorBuilding(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4554,18 +5017,24 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.activateIndoorLevel$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.activateIndoorLevel$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val levelIndexArg = args[1] as Long - val wrapped: List = try { - api.activateIndoorLevel(viewIdArg, levelIndexArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.activateIndoorLevel(viewIdArg, levelIndexArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4573,16 +5042,22 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getCameraPosition$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getCameraPosition$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = try { - listOf(api.getCameraPosition(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.getCameraPosition(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4590,16 +5065,22 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getVisibleRegion$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getVisibleRegion$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = try { - listOf(api.getVisibleRegion(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.getVisibleRegion(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4607,19 +5088,25 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.followMyLocation$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.followMyLocation$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val perspectiveArg = args[1] as CameraPerspectiveDto val zoomLevelArg = args[2] as Double? - val wrapped: List = try { - api.followMyLocation(viewIdArg, perspectiveArg, zoomLevelArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.followMyLocation(viewIdArg, perspectiveArg, zoomLevelArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4627,14 +5114,20 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToCameraPosition$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToCameraPosition$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val cameraPositionArg = args[1] as CameraPositionDto val durationArg = args[2] as Long? - api.animateCameraToCameraPosition(viewIdArg, cameraPositionArg, durationArg) { result: Result -> + api.animateCameraToCameraPosition(viewIdArg, cameraPositionArg, durationArg) { + result: Result -> val error = result.exceptionOrNull() if (error != null) { reply.reply(MessagesPigeonUtils.wrapError(error)) @@ -4649,7 +5142,12 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLng$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLng$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -4671,7 +5169,12 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLngBounds$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLngBounds$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -4679,7 +5182,8 @@ interface MapViewApi { val boundsArg = args[1] as LatLngBoundsDto val paddingArg = args[2] as Double val durationArg = args[3] as Long? - api.animateCameraToLatLngBounds(viewIdArg, boundsArg, paddingArg, durationArg) { result: Result -> + api.animateCameraToLatLngBounds(viewIdArg, boundsArg, paddingArg, durationArg) { + result: Result -> val error = result.exceptionOrNull() if (error != null) { reply.reply(MessagesPigeonUtils.wrapError(error)) @@ -4694,7 +5198,12 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLngZoom$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLngZoom$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -4702,7 +5211,8 @@ interface MapViewApi { val pointArg = args[1] as LatLngDto val zoomArg = args[2] as Double val durationArg = args[3] as Long? - api.animateCameraToLatLngZoom(viewIdArg, pointArg, zoomArg, durationArg) { result: Result -> + api.animateCameraToLatLngZoom(viewIdArg, pointArg, zoomArg, durationArg) { + result: Result -> val error = result.exceptionOrNull() if (error != null) { reply.reply(MessagesPigeonUtils.wrapError(error)) @@ -4717,7 +5227,12 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraByScroll$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraByScroll$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -4725,7 +5240,8 @@ interface MapViewApi { val scrollByDxArg = args[1] as Double val scrollByDyArg = args[2] as Double val durationArg = args[3] as Long? - api.animateCameraByScroll(viewIdArg, scrollByDxArg, scrollByDyArg, durationArg) { result: Result -> + api.animateCameraByScroll(viewIdArg, scrollByDxArg, scrollByDyArg, durationArg) { + result: Result -> val error = result.exceptionOrNull() if (error != null) { reply.reply(MessagesPigeonUtils.wrapError(error)) @@ -4740,7 +5256,12 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraByZoom$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraByZoom$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -4749,7 +5270,8 @@ interface MapViewApi { val focusDxArg = args[2] as Double? val focusDyArg = args[3] as Double? val durationArg = args[4] as Long? - api.animateCameraByZoom(viewIdArg, zoomByArg, focusDxArg, focusDyArg, durationArg) { result: Result -> + api.animateCameraByZoom(viewIdArg, zoomByArg, focusDxArg, focusDyArg, durationArg) { + result: Result -> val error = result.exceptionOrNull() if (error != null) { reply.reply(MessagesPigeonUtils.wrapError(error)) @@ -4764,7 +5286,12 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToZoom$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToZoom$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -4786,18 +5313,24 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToCameraPosition$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToCameraPosition$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val cameraPositionArg = args[1] as CameraPositionDto - val wrapped: List = try { - api.moveCameraToCameraPosition(viewIdArg, cameraPositionArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.moveCameraToCameraPosition(viewIdArg, cameraPositionArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4805,18 +5338,24 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLng$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLng$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val pointArg = args[1] as LatLngDto - val wrapped: List = try { - api.moveCameraToLatLng(viewIdArg, pointArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.moveCameraToLatLng(viewIdArg, pointArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4824,19 +5363,25 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLngBounds$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLngBounds$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val boundsArg = args[1] as LatLngBoundsDto val paddingArg = args[2] as Double - val wrapped: List = try { - api.moveCameraToLatLngBounds(viewIdArg, boundsArg, paddingArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.moveCameraToLatLngBounds(viewIdArg, boundsArg, paddingArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4844,19 +5389,25 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLngZoom$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLngZoom$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val pointArg = args[1] as LatLngDto val zoomArg = args[2] as Double - val wrapped: List = try { - api.moveCameraToLatLngZoom(viewIdArg, pointArg, zoomArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.moveCameraToLatLngZoom(viewIdArg, pointArg, zoomArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4864,19 +5415,25 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraByScroll$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraByScroll$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val scrollByDxArg = args[1] as Double val scrollByDyArg = args[2] as Double - val wrapped: List = try { - api.moveCameraByScroll(viewIdArg, scrollByDxArg, scrollByDyArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.moveCameraByScroll(viewIdArg, scrollByDxArg, scrollByDyArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4884,7 +5441,12 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraByZoom$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraByZoom$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -4892,12 +5454,13 @@ interface MapViewApi { val zoomByArg = args[1] as Double val focusDxArg = args[2] as Double? val focusDyArg = args[3] as Double? - val wrapped: List = try { - api.moveCameraByZoom(viewIdArg, zoomByArg, focusDxArg, focusDyArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.moveCameraByZoom(viewIdArg, zoomByArg, focusDxArg, focusDyArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4905,18 +5468,24 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToZoom$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToZoom$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val zoomArg = args[1] as Double - val wrapped: List = try { - api.moveCameraToZoom(viewIdArg, zoomArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.moveCameraToZoom(viewIdArg, zoomArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4924,17 +5493,23 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.showRouteOverview$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.showRouteOverview$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = try { - api.showRouteOverview(viewIdArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.showRouteOverview(viewIdArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4942,16 +5517,22 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMinZoomPreference$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMinZoomPreference$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = try { - listOf(api.getMinZoomPreference(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.getMinZoomPreference(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4959,16 +5540,22 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMaxZoomPreference$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMaxZoomPreference$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = try { - listOf(api.getMaxZoomPreference(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.getMaxZoomPreference(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4976,17 +5563,23 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.resetMinMaxZoomPreference$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.resetMinMaxZoomPreference$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = try { - api.resetMinMaxZoomPreference(viewIdArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.resetMinMaxZoomPreference(viewIdArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4994,18 +5587,24 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMinZoomPreference$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMinZoomPreference$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val minZoomPreferenceArg = args[1] as Double - val wrapped: List = try { - api.setMinZoomPreference(viewIdArg, minZoomPreferenceArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.setMinZoomPreference(viewIdArg, minZoomPreferenceArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5013,18 +5612,24 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMaxZoomPreference$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMaxZoomPreference$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val maxZoomPreferenceArg = args[1] as Double - val wrapped: List = try { - api.setMaxZoomPreference(viewIdArg, maxZoomPreferenceArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.setMaxZoomPreference(viewIdArg, maxZoomPreferenceArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5032,16 +5637,22 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMarkers$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMarkers$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = try { - listOf(api.getMarkers(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.getMarkers(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5049,17 +5660,23 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addMarkers$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addMarkers$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val markersArg = args[1] as List - val wrapped: List = try { - listOf(api.addMarkers(viewIdArg, markersArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.addMarkers(viewIdArg, markersArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5067,17 +5684,23 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updateMarkers$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updateMarkers$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val markersArg = args[1] as List - val wrapped: List = try { - listOf(api.updateMarkers(viewIdArg, markersArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.updateMarkers(viewIdArg, markersArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5085,18 +5708,24 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removeMarkers$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removeMarkers$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val markersArg = args[1] as List - val wrapped: List = try { - api.removeMarkers(viewIdArg, markersArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.removeMarkers(viewIdArg, markersArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5104,17 +5733,23 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearMarkers$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearMarkers$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = try { - api.clearMarkers(viewIdArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.clearMarkers(viewIdArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5122,17 +5757,23 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clear$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clear$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = try { - api.clear(viewIdArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.clear(viewIdArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5140,16 +5781,22 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPolygons$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPolygons$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = try { - listOf(api.getPolygons(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.getPolygons(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5157,17 +5804,23 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addPolygons$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addPolygons$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val polygonsArg = args[1] as List - val wrapped: List = try { - listOf(api.addPolygons(viewIdArg, polygonsArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.addPolygons(viewIdArg, polygonsArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5175,17 +5828,23 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updatePolygons$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updatePolygons$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val polygonsArg = args[1] as List - val wrapped: List = try { - listOf(api.updatePolygons(viewIdArg, polygonsArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.updatePolygons(viewIdArg, polygonsArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5193,18 +5852,24 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removePolygons$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removePolygons$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val polygonsArg = args[1] as List - val wrapped: List = try { - api.removePolygons(viewIdArg, polygonsArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.removePolygons(viewIdArg, polygonsArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5212,17 +5877,23 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearPolygons$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearPolygons$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = try { - api.clearPolygons(viewIdArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.clearPolygons(viewIdArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5230,16 +5901,22 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPolylines$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPolylines$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = try { - listOf(api.getPolylines(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.getPolylines(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5247,17 +5924,23 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addPolylines$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addPolylines$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val polylinesArg = args[1] as List - val wrapped: List = try { - listOf(api.addPolylines(viewIdArg, polylinesArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.addPolylines(viewIdArg, polylinesArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5265,17 +5948,23 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updatePolylines$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updatePolylines$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val polylinesArg = args[1] as List - val wrapped: List = try { - listOf(api.updatePolylines(viewIdArg, polylinesArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.updatePolylines(viewIdArg, polylinesArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5283,18 +5972,24 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removePolylines$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removePolylines$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val polylinesArg = args[1] as List - val wrapped: List = try { - api.removePolylines(viewIdArg, polylinesArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.removePolylines(viewIdArg, polylinesArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5302,17 +5997,23 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearPolylines$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearPolylines$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = try { - api.clearPolylines(viewIdArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.clearPolylines(viewIdArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5320,16 +6021,22 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getCircles$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getCircles$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = try { - listOf(api.getCircles(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.getCircles(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5337,17 +6044,23 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addCircles$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addCircles$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val circlesArg = args[1] as List - val wrapped: List = try { - listOf(api.addCircles(viewIdArg, circlesArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.addCircles(viewIdArg, circlesArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5355,17 +6068,23 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updateCircles$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updateCircles$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val circlesArg = args[1] as List - val wrapped: List = try { - listOf(api.updateCircles(viewIdArg, circlesArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.updateCircles(viewIdArg, circlesArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5373,18 +6092,24 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removeCircles$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removeCircles$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val circlesArg = args[1] as List - val wrapped: List = try { - api.removeCircles(viewIdArg, circlesArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.removeCircles(viewIdArg, circlesArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5392,17 +6117,23 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearCircles$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearCircles$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = try { - api.clearCircles(viewIdArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.clearCircles(viewIdArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5410,17 +6141,23 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.enableOnCameraChangedEvents$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.enableOnCameraChangedEvents$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = try { - api.enableOnCameraChangedEvents(viewIdArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.enableOnCameraChangedEvents(viewIdArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5428,18 +6165,24 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setPadding$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setPadding$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val paddingArg = args[1] as MapPaddingDto - val wrapped: List = try { - api.setPadding(viewIdArg, paddingArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.setPadding(viewIdArg, paddingArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5447,16 +6190,22 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPadding$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPadding$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = try { - listOf(api.getPadding(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.getPadding(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5464,16 +6213,22 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMapColorScheme$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMapColorScheme$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = try { - listOf(api.getMapColorScheme(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.getMapColorScheme(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5481,18 +6236,24 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapColorScheme$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapColorScheme$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val mapColorSchemeArg = args[1] as MapColorSchemeDto - val wrapped: List = try { - api.setMapColorScheme(viewIdArg, mapColorSchemeArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.setMapColorScheme(viewIdArg, mapColorSchemeArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5500,16 +6261,22 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getForceNightMode$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getForceNightMode$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = try { - listOf(api.getForceNightMode(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.getForceNightMode(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5517,18 +6284,24 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setForceNightMode$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setForceNightMode$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val forceNightModeArg = args[1] as NavigationForceNightModeDto - val wrapped: List = try { - api.setForceNightMode(viewIdArg, forceNightModeArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.setForceNightMode(viewIdArg, forceNightModeArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5538,25 +6311,47 @@ interface MapViewApi { } } } + /** Generated interface from Pigeon that represents a handler of messages from Flutter. */ interface ImageRegistryApi { - fun registerBitmapImage(imageId: String, bytes: ByteArray, imagePixelRatio: Double, width: Double?, height: Double?): ImageDescriptorDto + fun registerBitmapImage( + imageId: String, + bytes: ByteArray, + imagePixelRatio: Double, + width: Double?, + height: Double?, + ): ImageDescriptorDto + fun unregisterImage(imageDescriptor: ImageDescriptorDto) + fun getRegisteredImages(): List + fun clearRegisteredImages(filter: RegisteredImageTypeDto?) + fun getRegisteredImageData(imageDescriptor: ImageDescriptorDto): ByteArray? companion object { /** The codec used by ImageRegistryApi. */ - val codec: MessageCodec by lazy { - messagesPigeonCodec() - } - /** Sets up an instance of `ImageRegistryApi` to handle messages through the `binaryMessenger`. */ + val codec: MessageCodec by lazy { messagesPigeonCodec() } + + /** + * Sets up an instance of `ImageRegistryApi` to handle messages through the `binaryMessenger`. + */ @JvmOverloads - fun setUp(binaryMessenger: BinaryMessenger, api: ImageRegistryApi?, messageChannelSuffix: String = "") { - val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + fun setUp( + binaryMessenger: BinaryMessenger, + api: ImageRegistryApi?, + messageChannelSuffix: String = "", + ) { + val separatedMessageChannelSuffix = + if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.registerBitmapImage$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.registerBitmapImage$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -5565,11 +6360,20 @@ interface ImageRegistryApi { val imagePixelRatioArg = args[2] as Double val widthArg = args[3] as Double? val heightArg = args[4] as Double? - val wrapped: List = try { - listOf(api.registerBitmapImage(imageIdArg, bytesArg, imagePixelRatioArg, widthArg, heightArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf( + api.registerBitmapImage( + imageIdArg, + bytesArg, + imagePixelRatioArg, + widthArg, + heightArg, + ) + ) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5577,17 +6381,23 @@ interface ImageRegistryApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.unregisterImage$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.unregisterImage$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val imageDescriptorArg = args[0] as ImageDescriptorDto - val wrapped: List = try { - api.unregisterImage(imageDescriptorArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.unregisterImage(imageDescriptorArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5595,14 +6405,20 @@ interface ImageRegistryApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.getRegisteredImages$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.getRegisteredImages$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - listOf(api.getRegisteredImages()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.getRegisteredImages()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5610,17 +6426,23 @@ interface ImageRegistryApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.clearRegisteredImages$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.clearRegisteredImages$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val filterArg = args[0] as RegisteredImageTypeDto? - val wrapped: List = try { - api.clearRegisteredImages(filterArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.clearRegisteredImages(filterArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5628,16 +6450,22 @@ interface ImageRegistryApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.getRegisteredImageData$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.getRegisteredImageData$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val imageDescriptorArg = args[0] as ImageDescriptorDto - val wrapped: List = try { - listOf(api.getRegisteredImageData(imageDescriptorArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.getRegisteredImageData(imageDescriptorArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5647,18 +6475,22 @@ interface ImageRegistryApi { } } } + /** Generated class from Pigeon that represents Flutter messages that can be called from Kotlin. */ -class ViewEventApi(private val binaryMessenger: BinaryMessenger, private val messageChannelSuffix: String = "") { +class ViewEventApi( + private val binaryMessenger: BinaryMessenger, + private val messageChannelSuffix: String = "", +) { companion object { /** The codec used by ViewEventApi. */ - val codec: MessageCodec by lazy { - messagesPigeonCodec() - } + val codec: MessageCodec by lazy { messagesPigeonCodec() } } - fun onMapClickEvent(viewIdArg: Long, latLngArg: LatLngDto, callback: (Result) -> Unit) -{ - val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMapClickEvent$separatedMessageChannelSuffix" + + fun onMapClickEvent(viewIdArg: Long, latLngArg: LatLngDto, callback: (Result) -> Unit) { + val separatedMessageChannelSuffix = + if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = + "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMapClickEvent$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(viewIdArg, latLngArg)) { if (it is List<*>) { @@ -5669,13 +6501,15 @@ class ViewEventApi(private val binaryMessenger: BinaryMessenger, private val mes } } else { callback(Result.failure(MessagesPigeonUtils.createConnectionError(channelName))) - } + } } } - fun onMapLongClickEvent(viewIdArg: Long, latLngArg: LatLngDto, callback: (Result) -> Unit) -{ - val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMapLongClickEvent$separatedMessageChannelSuffix" + + fun onMapLongClickEvent(viewIdArg: Long, latLngArg: LatLngDto, callback: (Result) -> Unit) { + val separatedMessageChannelSuffix = + if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = + "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMapLongClickEvent$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(viewIdArg, latLngArg)) { if (it is List<*>) { @@ -5686,13 +6520,15 @@ class ViewEventApi(private val binaryMessenger: BinaryMessenger, private val mes } } else { callback(Result.failure(MessagesPigeonUtils.createConnectionError(channelName))) - } + } } } - fun onRecenterButtonClicked(viewIdArg: Long, callback: (Result) -> Unit) -{ - val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onRecenterButtonClicked$separatedMessageChannelSuffix" + + fun onRecenterButtonClicked(viewIdArg: Long, callback: (Result) -> Unit) { + val separatedMessageChannelSuffix = + if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = + "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onRecenterButtonClicked$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(viewIdArg)) { if (it is List<*>) { @@ -5703,13 +6539,20 @@ class ViewEventApi(private val binaryMessenger: BinaryMessenger, private val mes } } else { callback(Result.failure(MessagesPigeonUtils.createConnectionError(channelName))) - } + } } } - fun onMarkerEvent(viewIdArg: Long, markerIdArg: String, eventTypeArg: MarkerEventTypeDto, callback: (Result) -> Unit) -{ - val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMarkerEvent$separatedMessageChannelSuffix" + + fun onMarkerEvent( + viewIdArg: Long, + markerIdArg: String, + eventTypeArg: MarkerEventTypeDto, + callback: (Result) -> Unit, + ) { + val separatedMessageChannelSuffix = + if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = + "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMarkerEvent$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(viewIdArg, markerIdArg, eventTypeArg)) { if (it is List<*>) { @@ -5720,13 +6563,21 @@ class ViewEventApi(private val binaryMessenger: BinaryMessenger, private val mes } } else { callback(Result.failure(MessagesPigeonUtils.createConnectionError(channelName))) - } + } } } - fun onMarkerDragEvent(viewIdArg: Long, markerIdArg: String, eventTypeArg: MarkerDragEventTypeDto, positionArg: LatLngDto, callback: (Result) -> Unit) -{ - val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMarkerDragEvent$separatedMessageChannelSuffix" + + fun onMarkerDragEvent( + viewIdArg: Long, + markerIdArg: String, + eventTypeArg: MarkerDragEventTypeDto, + positionArg: LatLngDto, + callback: (Result) -> Unit, + ) { + val separatedMessageChannelSuffix = + if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = + "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMarkerDragEvent$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(viewIdArg, markerIdArg, eventTypeArg, positionArg)) { if (it is List<*>) { @@ -5737,13 +6588,15 @@ class ViewEventApi(private val binaryMessenger: BinaryMessenger, private val mes } } else { callback(Result.failure(MessagesPigeonUtils.createConnectionError(channelName))) - } + } } } - fun onPolygonClicked(viewIdArg: Long, polygonIdArg: String, callback: (Result) -> Unit) -{ - val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPolygonClicked$separatedMessageChannelSuffix" + + fun onPolygonClicked(viewIdArg: Long, polygonIdArg: String, callback: (Result) -> Unit) { + val separatedMessageChannelSuffix = + if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = + "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPolygonClicked$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(viewIdArg, polygonIdArg)) { if (it is List<*>) { @@ -5754,13 +6607,15 @@ class ViewEventApi(private val binaryMessenger: BinaryMessenger, private val mes } } else { callback(Result.failure(MessagesPigeonUtils.createConnectionError(channelName))) - } + } } } - fun onPolylineClicked(viewIdArg: Long, polylineIdArg: String, callback: (Result) -> Unit) -{ - val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPolylineClicked$separatedMessageChannelSuffix" + + fun onPolylineClicked(viewIdArg: Long, polylineIdArg: String, callback: (Result) -> Unit) { + val separatedMessageChannelSuffix = + if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = + "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPolylineClicked$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(viewIdArg, polylineIdArg)) { if (it is List<*>) { @@ -5771,13 +6626,15 @@ class ViewEventApi(private val binaryMessenger: BinaryMessenger, private val mes } } else { callback(Result.failure(MessagesPigeonUtils.createConnectionError(channelName))) - } + } } } - fun onCircleClicked(viewIdArg: Long, circleIdArg: String, callback: (Result) -> Unit) -{ - val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onCircleClicked$separatedMessageChannelSuffix" + + fun onCircleClicked(viewIdArg: Long, circleIdArg: String, callback: (Result) -> Unit) { + val separatedMessageChannelSuffix = + if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = + "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onCircleClicked$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(viewIdArg, circleIdArg)) { if (it is List<*>) { @@ -5788,13 +6645,19 @@ class ViewEventApi(private val binaryMessenger: BinaryMessenger, private val mes } } else { callback(Result.failure(MessagesPigeonUtils.createConnectionError(channelName))) - } + } } } - fun onPoiClick(viewIdArg: Long, pointOfInterestArg: PointOfInterestDto, callback: (Result) -> Unit) -{ - val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPoiClick$separatedMessageChannelSuffix" + + fun onPoiClick( + viewIdArg: Long, + pointOfInterestArg: PointOfInterestDto, + callback: (Result) -> Unit, + ) { + val separatedMessageChannelSuffix = + if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = + "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPoiClick$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(viewIdArg, pointOfInterestArg)) { if (it is List<*>) { @@ -5805,13 +6668,19 @@ class ViewEventApi(private val binaryMessenger: BinaryMessenger, private val mes } } else { callback(Result.failure(MessagesPigeonUtils.createConnectionError(channelName))) - } + } } } - fun onNavigationUIEnabledChanged(viewIdArg: Long, navigationUIEnabledArg: Boolean, callback: (Result) -> Unit) -{ - val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onNavigationUIEnabledChanged$separatedMessageChannelSuffix" + + fun onNavigationUIEnabledChanged( + viewIdArg: Long, + navigationUIEnabledArg: Boolean, + callback: (Result) -> Unit, + ) { + val separatedMessageChannelSuffix = + if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = + "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onNavigationUIEnabledChanged$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(viewIdArg, navigationUIEnabledArg)) { if (it is List<*>) { @@ -5822,13 +6691,19 @@ class ViewEventApi(private val binaryMessenger: BinaryMessenger, private val mes } } else { callback(Result.failure(MessagesPigeonUtils.createConnectionError(channelName))) - } + } } } - fun onPromptVisibilityChanged(viewIdArg: Long, promptVisibleArg: Boolean, callback: (Result) -> Unit) -{ - val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPromptVisibilityChanged$separatedMessageChannelSuffix" + + fun onPromptVisibilityChanged( + viewIdArg: Long, + promptVisibleArg: Boolean, + callback: (Result) -> Unit, + ) { + val separatedMessageChannelSuffix = + if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = + "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPromptVisibilityChanged$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(viewIdArg, promptVisibleArg)) { if (it is List<*>) { @@ -5839,13 +6714,15 @@ class ViewEventApi(private val binaryMessenger: BinaryMessenger, private val mes } } else { callback(Result.failure(MessagesPigeonUtils.createConnectionError(channelName))) - } + } } } - fun onMyLocationClicked(viewIdArg: Long, callback: (Result) -> Unit) -{ - val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMyLocationClicked$separatedMessageChannelSuffix" + + fun onMyLocationClicked(viewIdArg: Long, callback: (Result) -> Unit) { + val separatedMessageChannelSuffix = + if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = + "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMyLocationClicked$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(viewIdArg)) { if (it is List<*>) { @@ -5856,13 +6733,15 @@ class ViewEventApi(private val binaryMessenger: BinaryMessenger, private val mes } } else { callback(Result.failure(MessagesPigeonUtils.createConnectionError(channelName))) - } + } } } - fun onMyLocationButtonClicked(viewIdArg: Long, callback: (Result) -> Unit) -{ - val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMyLocationButtonClicked$separatedMessageChannelSuffix" + + fun onMyLocationButtonClicked(viewIdArg: Long, callback: (Result) -> Unit) { + val separatedMessageChannelSuffix = + if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = + "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMyLocationButtonClicked$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(viewIdArg)) { if (it is List<*>) { @@ -5873,13 +6752,19 @@ class ViewEventApi(private val binaryMessenger: BinaryMessenger, private val mes } } else { callback(Result.failure(MessagesPigeonUtils.createConnectionError(channelName))) - } + } } } - fun onIndoorFocusedBuildingChanged(viewIdArg: Long, buildingArg: IndoorBuildingDto?, callback: (Result) -> Unit) -{ - val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onIndoorFocusedBuildingChanged$separatedMessageChannelSuffix" + + fun onIndoorFocusedBuildingChanged( + viewIdArg: Long, + buildingArg: IndoorBuildingDto?, + callback: (Result) -> Unit, + ) { + val separatedMessageChannelSuffix = + if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = + "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onIndoorFocusedBuildingChanged$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(viewIdArg, buildingArg)) { if (it is List<*>) { @@ -5890,13 +6775,19 @@ class ViewEventApi(private val binaryMessenger: BinaryMessenger, private val mes } } else { callback(Result.failure(MessagesPigeonUtils.createConnectionError(channelName))) - } + } } } - fun onIndoorActiveLevelChanged(viewIdArg: Long, buildingArg: IndoorBuildingDto?, callback: (Result) -> Unit) -{ - val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onIndoorActiveLevelChanged$separatedMessageChannelSuffix" + + fun onIndoorActiveLevelChanged( + viewIdArg: Long, + buildingArg: IndoorBuildingDto?, + callback: (Result) -> Unit, + ) { + val separatedMessageChannelSuffix = + if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = + "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onIndoorActiveLevelChanged$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(viewIdArg, buildingArg)) { if (it is List<*>) { @@ -5907,13 +6798,20 @@ class ViewEventApi(private val binaryMessenger: BinaryMessenger, private val mes } } else { callback(Result.failure(MessagesPigeonUtils.createConnectionError(channelName))) - } + } } } - fun onCameraChanged(viewIdArg: Long, eventTypeArg: CameraEventTypeDto, positionArg: CameraPositionDto, callback: (Result) -> Unit) -{ - val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onCameraChanged$separatedMessageChannelSuffix" + + fun onCameraChanged( + viewIdArg: Long, + eventTypeArg: CameraEventTypeDto, + positionArg: CameraPositionDto, + callback: (Result) -> Unit, + ) { + val separatedMessageChannelSuffix = + if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = + "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onCameraChanged$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(viewIdArg, eventTypeArg, positionArg)) { if (it is List<*>) { @@ -5924,65 +6822,140 @@ class ViewEventApi(private val binaryMessenger: BinaryMessenger, private val mes } } else { callback(Result.failure(MessagesPigeonUtils.createConnectionError(channelName))) - } + } } } } + /** Generated interface from Pigeon that represents a handler of messages from Flutter. */ interface NavigationSessionApi { - fun createNavigationSession(abnormalTerminationReportingEnabled: Boolean, behavior: TaskRemovedBehaviorDto, callback: (Result) -> Unit) + fun createNavigationSession( + abnormalTerminationReportingEnabled: Boolean, + behavior: TaskRemovedBehaviorDto, + callback: (Result) -> Unit, + ) + fun isInitialized(): Boolean + fun cleanup(resetSession: Boolean) - fun showTermsAndConditionsDialog(title: String, companyName: String, shouldOnlyShowDriverAwarenessDisclaimer: Boolean, uiParams: TermsAndConditionsUIParamsDto?, callback: (Result) -> Unit) + + fun showTermsAndConditionsDialog( + title: String, + companyName: String, + shouldOnlyShowDriverAwarenessDisclaimer: Boolean, + uiParams: TermsAndConditionsUIParamsDto?, + callback: (Result) -> Unit, + ) + fun areTermsAccepted(): Boolean + fun resetTermsAccepted() + fun getNavSDKVersion(): String + fun isGuidanceRunning(): Boolean + fun startGuidance() + fun stopGuidance() + fun setDestinations(destinations: DestinationsDto, callback: (Result) -> Unit) + fun clearDestinations() + fun continueToNextDestination(callback: (Result) -> Unit) + fun getCurrentTimeAndDistance(): NavigationTimeAndDistanceDto + fun setAudioGuidance(settings: NavigationAudioGuidanceSettingsDto) + fun setSpeedAlertOptions(options: SpeedAlertOptionsDto) + fun getRouteSegments(): List + fun getTraveledRoute(): List + fun getCurrentRouteSegment(): RouteSegmentDto? + fun setUserLocation(location: LatLngDto) + fun removeUserLocation() + fun simulateLocationsAlongExistingRoute() + fun simulateLocationsAlongExistingRouteWithOptions(options: SimulationOptionsDto) - fun simulateLocationsAlongNewRoute(waypoints: List, callback: (Result) -> Unit) - fun simulateLocationsAlongNewRouteWithRoutingOptions(waypoints: List, routingOptions: RoutingOptionsDto, callback: (Result) -> Unit) - fun simulateLocationsAlongNewRouteWithRoutingAndSimulationOptions(waypoints: List, routingOptions: RoutingOptionsDto, simulationOptions: SimulationOptionsDto, callback: (Result) -> Unit) + + fun simulateLocationsAlongNewRoute( + waypoints: List, + callback: (Result) -> Unit, + ) + + fun simulateLocationsAlongNewRouteWithRoutingOptions( + waypoints: List, + routingOptions: RoutingOptionsDto, + callback: (Result) -> Unit, + ) + + fun simulateLocationsAlongNewRouteWithRoutingAndSimulationOptions( + waypoints: List, + routingOptions: RoutingOptionsDto, + simulationOptions: SimulationOptionsDto, + callback: (Result) -> Unit, + ) + fun pauseSimulation() + fun resumeSimulation() + /** iOS-only method. */ fun allowBackgroundLocationUpdates(allow: Boolean) + fun enableRoadSnappedLocationUpdates() + fun disableRoadSnappedLocationUpdates() - fun enableTurnByTurnNavigationEvents(numNextStepsToPreview: Long?, options: StepImageGenerationOptionsDto?) + + fun enableTurnByTurnNavigationEvents( + numNextStepsToPreview: Long?, + options: StepImageGenerationOptionsDto?, + ) + fun disableTurnByTurnNavigationEvents() - fun registerRemainingTimeOrDistanceChangedListener(remainingTimeThresholdSeconds: Long, remainingDistanceThresholdMeters: Long) + + fun registerRemainingTimeOrDistanceChangedListener( + remainingTimeThresholdSeconds: Long, + remainingDistanceThresholdMeters: Long, + ) companion object { /** The codec used by NavigationSessionApi. */ - val codec: MessageCodec by lazy { - messagesPigeonCodec() - } - /** Sets up an instance of `NavigationSessionApi` to handle messages through the `binaryMessenger`. */ + val codec: MessageCodec by lazy { messagesPigeonCodec() } + + /** + * Sets up an instance of `NavigationSessionApi` to handle messages through the + * `binaryMessenger`. + */ @JvmOverloads - fun setUp(binaryMessenger: BinaryMessenger, api: NavigationSessionApi?, messageChannelSuffix: String = "") { - val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + fun setUp( + binaryMessenger: BinaryMessenger, + api: NavigationSessionApi?, + messageChannelSuffix: String = "", + ) { + val separatedMessageChannelSuffix = + if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.createNavigationSession$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.createNavigationSession$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val abnormalTerminationReportingEnabledArg = args[0] as Boolean val behaviorArg = args[1] as TaskRemovedBehaviorDto - api.createNavigationSession(abnormalTerminationReportingEnabledArg, behaviorArg) { result: Result -> + api.createNavigationSession(abnormalTerminationReportingEnabledArg, behaviorArg) { + result: Result -> val error = result.exceptionOrNull() if (error != null) { reply.reply(MessagesPigeonUtils.wrapError(error)) @@ -5996,14 +6969,20 @@ interface NavigationSessionApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.isInitialized$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.isInitialized$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - listOf(api.isInitialized()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.isInitialized()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -6011,17 +6990,23 @@ interface NavigationSessionApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.cleanup$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.cleanup$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val resetSessionArg = args[0] as Boolean - val wrapped: List = try { - api.cleanup(resetSessionArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.cleanup(resetSessionArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -6029,7 +7014,12 @@ interface NavigationSessionApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.showTermsAndConditionsDialog$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.showTermsAndConditionsDialog$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -6037,7 +7027,12 @@ interface NavigationSessionApi { val companyNameArg = args[1] as String val shouldOnlyShowDriverAwarenessDisclaimerArg = args[2] as Boolean val uiParamsArg = args[3] as TermsAndConditionsUIParamsDto? - api.showTermsAndConditionsDialog(titleArg, companyNameArg, shouldOnlyShowDriverAwarenessDisclaimerArg, uiParamsArg) { result: Result -> + api.showTermsAndConditionsDialog( + titleArg, + companyNameArg, + shouldOnlyShowDriverAwarenessDisclaimerArg, + uiParamsArg, + ) { result: Result -> val error = result.exceptionOrNull() if (error != null) { reply.reply(MessagesPigeonUtils.wrapError(error)) @@ -6052,14 +7047,20 @@ interface NavigationSessionApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.areTermsAccepted$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.areTermsAccepted$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - listOf(api.areTermsAccepted()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.areTermsAccepted()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -6067,15 +7068,21 @@ interface NavigationSessionApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.resetTermsAccepted$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.resetTermsAccepted$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - api.resetTermsAccepted() - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.resetTermsAccepted() + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -6083,14 +7090,20 @@ interface NavigationSessionApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getNavSDKVersion$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getNavSDKVersion$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - listOf(api.getNavSDKVersion()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.getNavSDKVersion()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -6098,14 +7111,20 @@ interface NavigationSessionApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.isGuidanceRunning$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.isGuidanceRunning$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - listOf(api.isGuidanceRunning()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.isGuidanceRunning()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -6113,15 +7132,21 @@ interface NavigationSessionApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.startGuidance$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.startGuidance$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - api.startGuidance() - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.startGuidance() + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -6129,15 +7154,21 @@ interface NavigationSessionApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.stopGuidance$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.stopGuidance$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - api.stopGuidance() - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.stopGuidance() + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -6145,7 +7176,12 @@ interface NavigationSessionApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setDestinations$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setDestinations$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -6165,15 +7201,21 @@ interface NavigationSessionApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.clearDestinations$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.clearDestinations$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - api.clearDestinations() - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.clearDestinations() + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -6181,10 +7223,15 @@ interface NavigationSessionApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.continueToNextDestination$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.continueToNextDestination$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> - api.continueToNextDestination{ result: Result -> + api.continueToNextDestination { result: Result -> val error = result.exceptionOrNull() if (error != null) { reply.reply(MessagesPigeonUtils.wrapError(error)) @@ -6199,14 +7246,20 @@ interface NavigationSessionApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getCurrentTimeAndDistance$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getCurrentTimeAndDistance$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - listOf(api.getCurrentTimeAndDistance()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.getCurrentTimeAndDistance()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -6214,17 +7267,23 @@ interface NavigationSessionApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setAudioGuidance$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setAudioGuidance$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val settingsArg = args[0] as NavigationAudioGuidanceSettingsDto - val wrapped: List = try { - api.setAudioGuidance(settingsArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.setAudioGuidance(settingsArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -6232,17 +7291,23 @@ interface NavigationSessionApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setSpeedAlertOptions$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setSpeedAlertOptions$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val optionsArg = args[0] as SpeedAlertOptionsDto - val wrapped: List = try { - api.setSpeedAlertOptions(optionsArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.setSpeedAlertOptions(optionsArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -6250,14 +7315,20 @@ interface NavigationSessionApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getRouteSegments$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getRouteSegments$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - listOf(api.getRouteSegments()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.getRouteSegments()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -6265,14 +7336,20 @@ interface NavigationSessionApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getTraveledRoute$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getTraveledRoute$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - listOf(api.getTraveledRoute()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.getTraveledRoute()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -6280,14 +7357,20 @@ interface NavigationSessionApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getCurrentRouteSegment$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getCurrentRouteSegment$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - listOf(api.getCurrentRouteSegment()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.getCurrentRouteSegment()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -6295,17 +7378,23 @@ interface NavigationSessionApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setUserLocation$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setUserLocation$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val locationArg = args[0] as LatLngDto - val wrapped: List = try { - api.setUserLocation(locationArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.setUserLocation(locationArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -6313,15 +7402,21 @@ interface NavigationSessionApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.removeUserLocation$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.removeUserLocation$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - api.removeUserLocation() - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.removeUserLocation() + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -6329,15 +7424,21 @@ interface NavigationSessionApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongExistingRoute$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongExistingRoute$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - api.simulateLocationsAlongExistingRoute() - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.simulateLocationsAlongExistingRoute() + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -6345,17 +7446,23 @@ interface NavigationSessionApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongExistingRouteWithOptions$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongExistingRouteWithOptions$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val optionsArg = args[0] as SimulationOptionsDto - val wrapped: List = try { - api.simulateLocationsAlongExistingRouteWithOptions(optionsArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.simulateLocationsAlongExistingRouteWithOptions(optionsArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -6363,7 +7470,12 @@ interface NavigationSessionApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRoute$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRoute$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -6383,13 +7495,19 @@ interface NavigationSessionApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRouteWithRoutingOptions$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRouteWithRoutingOptions$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val waypointsArg = args[0] as List val routingOptionsArg = args[1] as RoutingOptionsDto - api.simulateLocationsAlongNewRouteWithRoutingOptions(waypointsArg, routingOptionsArg) { result: Result -> + api.simulateLocationsAlongNewRouteWithRoutingOptions(waypointsArg, routingOptionsArg) { + result: Result -> val error = result.exceptionOrNull() if (error != null) { reply.reply(MessagesPigeonUtils.wrapError(error)) @@ -6404,14 +7522,23 @@ interface NavigationSessionApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRouteWithRoutingAndSimulationOptions$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRouteWithRoutingAndSimulationOptions$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val waypointsArg = args[0] as List val routingOptionsArg = args[1] as RoutingOptionsDto val simulationOptionsArg = args[2] as SimulationOptionsDto - api.simulateLocationsAlongNewRouteWithRoutingAndSimulationOptions(waypointsArg, routingOptionsArg, simulationOptionsArg) { result: Result -> + api.simulateLocationsAlongNewRouteWithRoutingAndSimulationOptions( + waypointsArg, + routingOptionsArg, + simulationOptionsArg, + ) { result: Result -> val error = result.exceptionOrNull() if (error != null) { reply.reply(MessagesPigeonUtils.wrapError(error)) @@ -6426,15 +7553,21 @@ interface NavigationSessionApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.pauseSimulation$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.pauseSimulation$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - api.pauseSimulation() - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.pauseSimulation() + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -6442,15 +7575,21 @@ interface NavigationSessionApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.resumeSimulation$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.resumeSimulation$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - api.resumeSimulation() - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.resumeSimulation() + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -6458,17 +7597,23 @@ interface NavigationSessionApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.allowBackgroundLocationUpdates$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.allowBackgroundLocationUpdates$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val allowArg = args[0] as Boolean - val wrapped: List = try { - api.allowBackgroundLocationUpdates(allowArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.allowBackgroundLocationUpdates(allowArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -6476,15 +7621,21 @@ interface NavigationSessionApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.enableRoadSnappedLocationUpdates$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.enableRoadSnappedLocationUpdates$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - api.enableRoadSnappedLocationUpdates() - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.enableRoadSnappedLocationUpdates() + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -6492,15 +7643,21 @@ interface NavigationSessionApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.disableRoadSnappedLocationUpdates$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.disableRoadSnappedLocationUpdates$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - api.disableRoadSnappedLocationUpdates() - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.disableRoadSnappedLocationUpdates() + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -6508,18 +7665,24 @@ interface NavigationSessionApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.enableTurnByTurnNavigationEvents$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.enableTurnByTurnNavigationEvents$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val numNextStepsToPreviewArg = args[0] as Long? val optionsArg = args[1] as StepImageGenerationOptionsDto? - val wrapped: List = try { - api.enableTurnByTurnNavigationEvents(numNextStepsToPreviewArg, optionsArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.enableTurnByTurnNavigationEvents(numNextStepsToPreviewArg, optionsArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -6527,15 +7690,21 @@ interface NavigationSessionApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.disableTurnByTurnNavigationEvents$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.disableTurnByTurnNavigationEvents$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - api.disableTurnByTurnNavigationEvents() - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.disableTurnByTurnNavigationEvents() + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -6543,18 +7712,27 @@ interface NavigationSessionApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.registerRemainingTimeOrDistanceChangedListener$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.registerRemainingTimeOrDistanceChangedListener$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val remainingTimeThresholdSecondsArg = args[0] as Long val remainingDistanceThresholdMetersArg = args[1] as Long - val wrapped: List = try { - api.registerRemainingTimeOrDistanceChangedListener(remainingTimeThresholdSecondsArg, remainingDistanceThresholdMetersArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.registerRemainingTimeOrDistanceChangedListener( + remainingTimeThresholdSecondsArg, + remainingDistanceThresholdMetersArg, + ) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -6564,18 +7742,22 @@ interface NavigationSessionApi { } } } + /** Generated class from Pigeon that represents Flutter messages that can be called from Kotlin. */ -class NavigationSessionEventApi(private val binaryMessenger: BinaryMessenger, private val messageChannelSuffix: String = "") { +class NavigationSessionEventApi( + private val binaryMessenger: BinaryMessenger, + private val messageChannelSuffix: String = "", +) { companion object { /** The codec used by NavigationSessionEventApi. */ - val codec: MessageCodec by lazy { - messagesPigeonCodec() - } + val codec: MessageCodec by lazy { messagesPigeonCodec() } } - fun onSpeedingUpdated(msgArg: SpeedingUpdatedEventDto, callback: (Result) -> Unit) -{ - val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onSpeedingUpdated$separatedMessageChannelSuffix" + + fun onSpeedingUpdated(msgArg: SpeedingUpdatedEventDto, callback: (Result) -> Unit) { + val separatedMessageChannelSuffix = + if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onSpeedingUpdated$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(msgArg)) { if (it is List<*>) { @@ -6586,13 +7768,15 @@ class NavigationSessionEventApi(private val binaryMessenger: BinaryMessenger, pr } } else { callback(Result.failure(MessagesPigeonUtils.createConnectionError(channelName))) - } + } } } - fun onRoadSnappedLocationUpdated(locationArg: LatLngDto, callback: (Result) -> Unit) -{ - val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRoadSnappedLocationUpdated$separatedMessageChannelSuffix" + + fun onRoadSnappedLocationUpdated(locationArg: LatLngDto, callback: (Result) -> Unit) { + val separatedMessageChannelSuffix = + if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRoadSnappedLocationUpdated$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(locationArg)) { if (it is List<*>) { @@ -6603,13 +7787,15 @@ class NavigationSessionEventApi(private val binaryMessenger: BinaryMessenger, pr } } else { callback(Result.failure(MessagesPigeonUtils.createConnectionError(channelName))) - } + } } } - fun onRoadSnappedRawLocationUpdated(locationArg: LatLngDto, callback: (Result) -> Unit) -{ - val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRoadSnappedRawLocationUpdated$separatedMessageChannelSuffix" + + fun onRoadSnappedRawLocationUpdated(locationArg: LatLngDto, callback: (Result) -> Unit) { + val separatedMessageChannelSuffix = + if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRoadSnappedRawLocationUpdated$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(locationArg)) { if (it is List<*>) { @@ -6620,13 +7806,15 @@ class NavigationSessionEventApi(private val binaryMessenger: BinaryMessenger, pr } } else { callback(Result.failure(MessagesPigeonUtils.createConnectionError(channelName))) - } + } } } - fun onArrival(waypointArg: NavigationWaypointDto, callback: (Result) -> Unit) -{ - val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onArrival$separatedMessageChannelSuffix" + + fun onArrival(waypointArg: NavigationWaypointDto, callback: (Result) -> Unit) { + val separatedMessageChannelSuffix = + if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onArrival$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(waypointArg)) { if (it is List<*>) { @@ -6637,13 +7825,15 @@ class NavigationSessionEventApi(private val binaryMessenger: BinaryMessenger, pr } } else { callback(Result.failure(MessagesPigeonUtils.createConnectionError(channelName))) - } + } } } - fun onRouteChanged(callback: (Result) -> Unit) -{ - val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRouteChanged$separatedMessageChannelSuffix" + + fun onRouteChanged(callback: (Result) -> Unit) { + val separatedMessageChannelSuffix = + if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRouteChanged$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(null) { if (it is List<*>) { @@ -6654,13 +7844,20 @@ class NavigationSessionEventApi(private val binaryMessenger: BinaryMessenger, pr } } else { callback(Result.failure(MessagesPigeonUtils.createConnectionError(channelName))) - } + } } } - fun onRemainingTimeOrDistanceChanged(remainingTimeArg: Double, remainingDistanceArg: Double, delaySeverityArg: TrafficDelaySeverityDto, callback: (Result) -> Unit) -{ - val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRemainingTimeOrDistanceChanged$separatedMessageChannelSuffix" + + fun onRemainingTimeOrDistanceChanged( + remainingTimeArg: Double, + remainingDistanceArg: Double, + delaySeverityArg: TrafficDelaySeverityDto, + callback: (Result) -> Unit, + ) { + val separatedMessageChannelSuffix = + if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRemainingTimeOrDistanceChanged$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(remainingTimeArg, remainingDistanceArg, delaySeverityArg)) { if (it is List<*>) { @@ -6671,14 +7868,16 @@ class NavigationSessionEventApi(private val binaryMessenger: BinaryMessenger, pr } } else { callback(Result.failure(MessagesPigeonUtils.createConnectionError(channelName))) - } + } } } + /** Android-only event. */ - fun onTrafficUpdated(callback: (Result) -> Unit) -{ - val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onTrafficUpdated$separatedMessageChannelSuffix" + fun onTrafficUpdated(callback: (Result) -> Unit) { + val separatedMessageChannelSuffix = + if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onTrafficUpdated$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(null) { if (it is List<*>) { @@ -6689,14 +7888,16 @@ class NavigationSessionEventApi(private val binaryMessenger: BinaryMessenger, pr } } else { callback(Result.failure(MessagesPigeonUtils.createConnectionError(channelName))) - } + } } } + /** Android-only event. */ - fun onRerouting(callback: (Result) -> Unit) -{ - val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRerouting$separatedMessageChannelSuffix" + fun onRerouting(callback: (Result) -> Unit) { + val separatedMessageChannelSuffix = + if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRerouting$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(null) { if (it is List<*>) { @@ -6707,14 +7908,16 @@ class NavigationSessionEventApi(private val binaryMessenger: BinaryMessenger, pr } } else { callback(Result.failure(MessagesPigeonUtils.createConnectionError(channelName))) - } + } } } + /** Android-only event. */ - fun onGpsAvailabilityUpdate(availableArg: Boolean, callback: (Result) -> Unit) -{ - val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onGpsAvailabilityUpdate$separatedMessageChannelSuffix" + fun onGpsAvailabilityUpdate(availableArg: Boolean, callback: (Result) -> Unit) { + val separatedMessageChannelSuffix = + if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onGpsAvailabilityUpdate$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(availableArg)) { if (it is List<*>) { @@ -6725,14 +7928,19 @@ class NavigationSessionEventApi(private val binaryMessenger: BinaryMessenger, pr } } else { callback(Result.failure(MessagesPigeonUtils.createConnectionError(channelName))) - } + } } } + /** Android-only event. */ - fun onGpsAvailabilityChange(eventArg: GpsAvailabilityChangeEventDto, callback: (Result) -> Unit) -{ - val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onGpsAvailabilityChange$separatedMessageChannelSuffix" + fun onGpsAvailabilityChange( + eventArg: GpsAvailabilityChangeEventDto, + callback: (Result) -> Unit, + ) { + val separatedMessageChannelSuffix = + if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onGpsAvailabilityChange$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(eventArg)) { if (it is List<*>) { @@ -6743,14 +7951,16 @@ class NavigationSessionEventApi(private val binaryMessenger: BinaryMessenger, pr } } else { callback(Result.failure(MessagesPigeonUtils.createConnectionError(channelName))) - } + } } } + /** Turn-by-Turn navigation events. */ - fun onNavInfo(navInfoArg: NavInfoDto, callback: (Result) -> Unit) -{ - val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onNavInfo$separatedMessageChannelSuffix" + fun onNavInfo(navInfoArg: NavInfoDto, callback: (Result) -> Unit) { + val separatedMessageChannelSuffix = + if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onNavInfo$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(navInfoArg)) { if (it is List<*>) { @@ -6761,17 +7971,16 @@ class NavigationSessionEventApi(private val binaryMessenger: BinaryMessenger, pr } } else { callback(Result.failure(MessagesPigeonUtils.createConnectionError(channelName))) - } + } } } - /** - * Navigation session event. Called when a new navigation - * session starts with active guidance. - */ - fun onNewNavigationSession(callback: (Result) -> Unit) -{ - val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onNewNavigationSession$separatedMessageChannelSuffix" + + /** Navigation session event. Called when a new navigation session starts with active guidance. */ + fun onNewNavigationSession(callback: (Result) -> Unit) { + val separatedMessageChannelSuffix = + if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onNewNavigationSession$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(null) { if (it is List<*>) { @@ -6782,137 +7991,269 @@ class NavigationSessionEventApi(private val binaryMessenger: BinaryMessenger, pr } } else { callback(Result.failure(MessagesPigeonUtils.createConnectionError(channelName))) - } + } } } } + /** Generated interface from Pigeon that represents a handler of messages from Flutter. */ interface AutoMapViewApi { /** - * Sets the map options to be used for Android Auto and CarPlay views. - * Should be called before the Auto/CarPlay screen is created. - * This allows customization of mapId and basic map settings. + * Sets the map options to be used for Android Auto and CarPlay views. Should be called before the + * Auto/CarPlay screen is created. This allows customization of mapId and basic map settings. */ fun setAutoMapOptions(mapOptions: AutoMapOptionsDto) + fun isMyLocationEnabled(): Boolean + fun setMyLocationEnabled(enabled: Boolean) + fun getMyLocation(): LatLngDto? + fun getMapType(): MapTypeDto + fun setMapType(mapType: MapTypeDto) + fun setMapStyle(styleJson: String) + fun getCameraPosition(): CameraPositionDto + fun getVisibleRegion(): LatLngBoundsDto + fun followMyLocation(perspective: CameraPerspectiveDto, zoomLevel: Double?) - fun animateCameraToCameraPosition(cameraPosition: CameraPositionDto, duration: Long?, callback: (Result) -> Unit) + + fun animateCameraToCameraPosition( + cameraPosition: CameraPositionDto, + duration: Long?, + callback: (Result) -> Unit, + ) + fun animateCameraToLatLng(point: LatLngDto, duration: Long?, callback: (Result) -> Unit) - fun animateCameraToLatLngBounds(bounds: LatLngBoundsDto, padding: Double, duration: Long?, callback: (Result) -> Unit) - fun animateCameraToLatLngZoom(point: LatLngDto, zoom: Double, duration: Long?, callback: (Result) -> Unit) - fun animateCameraByScroll(scrollByDx: Double, scrollByDy: Double, duration: Long?, callback: (Result) -> Unit) - fun animateCameraByZoom(zoomBy: Double, focusDx: Double?, focusDy: Double?, duration: Long?, callback: (Result) -> Unit) + + fun animateCameraToLatLngBounds( + bounds: LatLngBoundsDto, + padding: Double, + duration: Long?, + callback: (Result) -> Unit, + ) + + fun animateCameraToLatLngZoom( + point: LatLngDto, + zoom: Double, + duration: Long?, + callback: (Result) -> Unit, + ) + + fun animateCameraByScroll( + scrollByDx: Double, + scrollByDy: Double, + duration: Long?, + callback: (Result) -> Unit, + ) + + fun animateCameraByZoom( + zoomBy: Double, + focusDx: Double?, + focusDy: Double?, + duration: Long?, + callback: (Result) -> Unit, + ) + fun animateCameraToZoom(zoom: Double, duration: Long?, callback: (Result) -> Unit) + fun moveCameraToCameraPosition(cameraPosition: CameraPositionDto) + fun moveCameraToLatLng(point: LatLngDto) + fun moveCameraToLatLngBounds(bounds: LatLngBoundsDto, padding: Double) + fun moveCameraToLatLngZoom(point: LatLngDto, zoom: Double) + fun moveCameraByScroll(scrollByDx: Double, scrollByDy: Double) + fun moveCameraByZoom(zoomBy: Double, focusDx: Double?, focusDy: Double?) + fun moveCameraToZoom(zoom: Double) + fun getMinZoomPreference(): Double + fun getMaxZoomPreference(): Double + fun resetMinMaxZoomPreference() + fun setMinZoomPreference(minZoomPreference: Double) + fun setMaxZoomPreference(maxZoomPreference: Double) + fun setMyLocationButtonEnabled(enabled: Boolean) + fun setConsumeMyLocationButtonClickEventsEnabled(enabled: Boolean) + fun setZoomGesturesEnabled(enabled: Boolean) + fun setZoomControlsEnabled(enabled: Boolean) + fun setCompassEnabled(enabled: Boolean) + fun setRotateGesturesEnabled(enabled: Boolean) + fun setScrollGesturesEnabled(enabled: Boolean) + fun setScrollGesturesDuringRotateOrZoomEnabled(enabled: Boolean) + fun setTiltGesturesEnabled(enabled: Boolean) + fun setMapToolbarEnabled(enabled: Boolean) + fun setTrafficEnabled(enabled: Boolean) + fun setTrafficPromptsEnabled(enabled: Boolean) + fun setTrafficIncidentCardsEnabled(enabled: Boolean) + fun setNavigationTripProgressBarEnabled(enabled: Boolean) + fun setSpeedLimitIconEnabled(enabled: Boolean) + fun setSpeedometerEnabled(enabled: Boolean) + fun setNavigationUIEnabled(enabled: Boolean) + fun isMyLocationButtonEnabled(): Boolean + fun isConsumeMyLocationButtonClickEventsEnabled(): Boolean + fun isZoomGesturesEnabled(): Boolean + fun isZoomControlsEnabled(): Boolean + fun isCompassEnabled(): Boolean + fun isRotateGesturesEnabled(): Boolean + fun isScrollGesturesEnabled(): Boolean + fun isScrollGesturesEnabledDuringRotateOrZoom(): Boolean + fun isTiltGesturesEnabled(): Boolean + fun isMapToolbarEnabled(): Boolean + fun isTrafficEnabled(): Boolean + fun isTrafficPromptsEnabled(): Boolean + fun isTrafficIncidentCardsEnabled(): Boolean + fun isNavigationTripProgressBarEnabled(): Boolean + fun isSpeedLimitIconEnabled(): Boolean + fun isSpeedometerEnabled(): Boolean + fun isNavigationUIEnabled(): Boolean + fun isIndoorEnabled(): Boolean + fun setIndoorEnabled(enabled: Boolean) + fun getFocusedIndoorBuilding(): IndoorBuildingDto? + fun activateIndoorLevel(levelIndex: Long) + fun showRouteOverview() + fun getMarkers(): List + fun addMarkers(markers: List): List + fun updateMarkers(markers: List): List + fun removeMarkers(markers: List) + fun clearMarkers() + fun clear() + fun getPolygons(): List + fun addPolygons(polygons: List): List + fun updatePolygons(polygons: List): List + fun removePolygons(polygons: List) + fun clearPolygons() + fun getPolylines(): List + fun addPolylines(polylines: List): List + fun updatePolylines(polylines: List): List + fun removePolylines(polylines: List) + fun clearPolylines() + fun getCircles(): List + fun addCircles(circles: List): List + fun updateCircles(circles: List): List + fun removeCircles(circles: List) + fun clearCircles() + fun enableOnCameraChangedEvents() + fun isAutoScreenAvailable(): Boolean + fun setPadding(padding: MapPaddingDto) + fun getPadding(): MapPaddingDto + fun getMapColorScheme(): MapColorSchemeDto + fun setMapColorScheme(mapColorScheme: MapColorSchemeDto) + fun getForceNightMode(): NavigationForceNightModeDto + fun setForceNightMode(forceNightMode: NavigationForceNightModeDto) + fun sendCustomNavigationAutoEvent(event: String, data: Any) companion object { /** The codec used by AutoMapViewApi. */ - val codec: MessageCodec by lazy { - messagesPigeonCodec() - } + val codec: MessageCodec by lazy { messagesPigeonCodec() } + /** Sets up an instance of `AutoMapViewApi` to handle messages through the `binaryMessenger`. */ @JvmOverloads - fun setUp(binaryMessenger: BinaryMessenger, api: AutoMapViewApi?, messageChannelSuffix: String = "") { - val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + fun setUp( + binaryMessenger: BinaryMessenger, + api: AutoMapViewApi?, + messageChannelSuffix: String = "", + ) { + val separatedMessageChannelSuffix = + if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setAutoMapOptions$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setAutoMapOptions$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val mapOptionsArg = args[0] as AutoMapOptionsDto - val wrapped: List = try { - api.setAutoMapOptions(mapOptionsArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.setAutoMapOptions(mapOptionsArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -6920,14 +8261,20 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isMyLocationEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isMyLocationEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - listOf(api.isMyLocationEnabled()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.isMyLocationEnabled()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -6935,17 +8282,23 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMyLocationEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMyLocationEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val enabledArg = args[0] as Boolean - val wrapped: List = try { - api.setMyLocationEnabled(enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.setMyLocationEnabled(enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -6953,14 +8306,20 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMyLocation$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMyLocation$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - listOf(api.getMyLocation()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.getMyLocation()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -6968,14 +8327,20 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMapType$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMapType$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - listOf(api.getMapType()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.getMapType()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -6983,17 +8348,23 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapType$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapType$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val mapTypeArg = args[0] as MapTypeDto - val wrapped: List = try { - api.setMapType(mapTypeArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.setMapType(mapTypeArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7001,17 +8372,23 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapStyle$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapStyle$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val styleJsonArg = args[0] as String - val wrapped: List = try { - api.setMapStyle(styleJsonArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.setMapStyle(styleJsonArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7019,14 +8396,20 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getCameraPosition$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getCameraPosition$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - listOf(api.getCameraPosition()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.getCameraPosition()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7034,14 +8417,20 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getVisibleRegion$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getVisibleRegion$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - listOf(api.getVisibleRegion()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.getVisibleRegion()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7049,18 +8438,24 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.followMyLocation$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.followMyLocation$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val perspectiveArg = args[0] as CameraPerspectiveDto val zoomLevelArg = args[1] as Double? - val wrapped: List = try { - api.followMyLocation(perspectiveArg, zoomLevelArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.followMyLocation(perspectiveArg, zoomLevelArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7068,13 +8463,19 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToCameraPosition$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToCameraPosition$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val cameraPositionArg = args[0] as CameraPositionDto val durationArg = args[1] as Long? - api.animateCameraToCameraPosition(cameraPositionArg, durationArg) { result: Result -> + api.animateCameraToCameraPosition(cameraPositionArg, durationArg) { + result: Result -> val error = result.exceptionOrNull() if (error != null) { reply.reply(MessagesPigeonUtils.wrapError(error)) @@ -7089,7 +8490,12 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLng$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLng$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -7110,14 +8516,20 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLngBounds$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLngBounds$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val boundsArg = args[0] as LatLngBoundsDto val paddingArg = args[1] as Double val durationArg = args[2] as Long? - api.animateCameraToLatLngBounds(boundsArg, paddingArg, durationArg) { result: Result -> + api.animateCameraToLatLngBounds(boundsArg, paddingArg, durationArg) { + result: Result -> val error = result.exceptionOrNull() if (error != null) { reply.reply(MessagesPigeonUtils.wrapError(error)) @@ -7132,14 +8544,20 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLngZoom$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLngZoom$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val pointArg = args[0] as LatLngDto val zoomArg = args[1] as Double val durationArg = args[2] as Long? - api.animateCameraToLatLngZoom(pointArg, zoomArg, durationArg) { result: Result -> + api.animateCameraToLatLngZoom(pointArg, zoomArg, durationArg) { result: Result + -> val error = result.exceptionOrNull() if (error != null) { reply.reply(MessagesPigeonUtils.wrapError(error)) @@ -7154,14 +8572,20 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraByScroll$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraByScroll$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val scrollByDxArg = args[0] as Double val scrollByDyArg = args[1] as Double val durationArg = args[2] as Long? - api.animateCameraByScroll(scrollByDxArg, scrollByDyArg, durationArg) { result: Result -> + api.animateCameraByScroll(scrollByDxArg, scrollByDyArg, durationArg) { + result: Result -> val error = result.exceptionOrNull() if (error != null) { reply.reply(MessagesPigeonUtils.wrapError(error)) @@ -7176,7 +8600,12 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraByZoom$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraByZoom$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -7184,7 +8613,8 @@ interface AutoMapViewApi { val focusDxArg = args[1] as Double? val focusDyArg = args[2] as Double? val durationArg = args[3] as Long? - api.animateCameraByZoom(zoomByArg, focusDxArg, focusDyArg, durationArg) { result: Result -> + api.animateCameraByZoom(zoomByArg, focusDxArg, focusDyArg, durationArg) { + result: Result -> val error = result.exceptionOrNull() if (error != null) { reply.reply(MessagesPigeonUtils.wrapError(error)) @@ -7199,7 +8629,12 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToZoom$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToZoom$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -7220,17 +8655,23 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToCameraPosition$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToCameraPosition$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val cameraPositionArg = args[0] as CameraPositionDto - val wrapped: List = try { - api.moveCameraToCameraPosition(cameraPositionArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.moveCameraToCameraPosition(cameraPositionArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7238,17 +8679,23 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLng$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLng$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val pointArg = args[0] as LatLngDto - val wrapped: List = try { - api.moveCameraToLatLng(pointArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.moveCameraToLatLng(pointArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7256,18 +8703,24 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLngBounds$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLngBounds$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val boundsArg = args[0] as LatLngBoundsDto val paddingArg = args[1] as Double - val wrapped: List = try { - api.moveCameraToLatLngBounds(boundsArg, paddingArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.moveCameraToLatLngBounds(boundsArg, paddingArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7275,18 +8728,24 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLngZoom$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLngZoom$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val pointArg = args[0] as LatLngDto val zoomArg = args[1] as Double - val wrapped: List = try { - api.moveCameraToLatLngZoom(pointArg, zoomArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.moveCameraToLatLngZoom(pointArg, zoomArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7294,18 +8753,24 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraByScroll$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraByScroll$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val scrollByDxArg = args[0] as Double val scrollByDyArg = args[1] as Double - val wrapped: List = try { - api.moveCameraByScroll(scrollByDxArg, scrollByDyArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.moveCameraByScroll(scrollByDxArg, scrollByDyArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7313,19 +8778,25 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraByZoom$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraByZoom$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val zoomByArg = args[0] as Double val focusDxArg = args[1] as Double? val focusDyArg = args[2] as Double? - val wrapped: List = try { - api.moveCameraByZoom(zoomByArg, focusDxArg, focusDyArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.moveCameraByZoom(zoomByArg, focusDxArg, focusDyArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7333,17 +8804,23 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToZoom$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToZoom$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val zoomArg = args[0] as Double - val wrapped: List = try { - api.moveCameraToZoom(zoomArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.moveCameraToZoom(zoomArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7351,14 +8828,20 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMinZoomPreference$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMinZoomPreference$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - listOf(api.getMinZoomPreference()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.getMinZoomPreference()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7366,14 +8849,20 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMaxZoomPreference$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMaxZoomPreference$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - listOf(api.getMaxZoomPreference()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.getMaxZoomPreference()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7381,15 +8870,21 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.resetMinMaxZoomPreference$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.resetMinMaxZoomPreference$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - api.resetMinMaxZoomPreference() - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.resetMinMaxZoomPreference() + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7397,17 +8892,23 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMinZoomPreference$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMinZoomPreference$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val minZoomPreferenceArg = args[0] as Double - val wrapped: List = try { - api.setMinZoomPreference(minZoomPreferenceArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.setMinZoomPreference(minZoomPreferenceArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7415,17 +8916,23 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMaxZoomPreference$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMaxZoomPreference$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val maxZoomPreferenceArg = args[0] as Double - val wrapped: List = try { - api.setMaxZoomPreference(maxZoomPreferenceArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.setMaxZoomPreference(maxZoomPreferenceArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7433,17 +8940,23 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMyLocationButtonEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMyLocationButtonEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val enabledArg = args[0] as Boolean - val wrapped: List = try { - api.setMyLocationButtonEnabled(enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.setMyLocationButtonEnabled(enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7451,17 +8964,23 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setConsumeMyLocationButtonClickEventsEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setConsumeMyLocationButtonClickEventsEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val enabledArg = args[0] as Boolean - val wrapped: List = try { - api.setConsumeMyLocationButtonClickEventsEnabled(enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.setConsumeMyLocationButtonClickEventsEnabled(enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7469,17 +8988,23 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setZoomGesturesEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setZoomGesturesEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val enabledArg = args[0] as Boolean - val wrapped: List = try { - api.setZoomGesturesEnabled(enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.setZoomGesturesEnabled(enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7487,17 +9012,23 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setZoomControlsEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setZoomControlsEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val enabledArg = args[0] as Boolean - val wrapped: List = try { - api.setZoomControlsEnabled(enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.setZoomControlsEnabled(enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7505,17 +9036,23 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setCompassEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setCompassEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val enabledArg = args[0] as Boolean - val wrapped: List = try { - api.setCompassEnabled(enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.setCompassEnabled(enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7523,17 +9060,23 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setRotateGesturesEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setRotateGesturesEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val enabledArg = args[0] as Boolean - val wrapped: List = try { - api.setRotateGesturesEnabled(enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.setRotateGesturesEnabled(enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7541,17 +9084,23 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setScrollGesturesEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setScrollGesturesEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val enabledArg = args[0] as Boolean - val wrapped: List = try { - api.setScrollGesturesEnabled(enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.setScrollGesturesEnabled(enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7559,17 +9108,23 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setScrollGesturesDuringRotateOrZoomEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setScrollGesturesDuringRotateOrZoomEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val enabledArg = args[0] as Boolean - val wrapped: List = try { - api.setScrollGesturesDuringRotateOrZoomEnabled(enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.setScrollGesturesDuringRotateOrZoomEnabled(enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7577,17 +9132,23 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTiltGesturesEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTiltGesturesEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val enabledArg = args[0] as Boolean - val wrapped: List = try { - api.setTiltGesturesEnabled(enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.setTiltGesturesEnabled(enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7595,17 +9156,23 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapToolbarEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapToolbarEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val enabledArg = args[0] as Boolean - val wrapped: List = try { - api.setMapToolbarEnabled(enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.setMapToolbarEnabled(enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7613,17 +9180,23 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val enabledArg = args[0] as Boolean - val wrapped: List = try { - api.setTrafficEnabled(enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.setTrafficEnabled(enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7631,17 +9204,23 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficPromptsEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficPromptsEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val enabledArg = args[0] as Boolean - val wrapped: List = try { - api.setTrafficPromptsEnabled(enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.setTrafficPromptsEnabled(enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7649,17 +9228,23 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficIncidentCardsEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficIncidentCardsEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val enabledArg = args[0] as Boolean - val wrapped: List = try { - api.setTrafficIncidentCardsEnabled(enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.setTrafficIncidentCardsEnabled(enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7667,17 +9252,23 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setNavigationTripProgressBarEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setNavigationTripProgressBarEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val enabledArg = args[0] as Boolean - val wrapped: List = try { - api.setNavigationTripProgressBarEnabled(enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.setNavigationTripProgressBarEnabled(enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7685,17 +9276,23 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setSpeedLimitIconEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setSpeedLimitIconEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val enabledArg = args[0] as Boolean - val wrapped: List = try { - api.setSpeedLimitIconEnabled(enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.setSpeedLimitIconEnabled(enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7703,17 +9300,23 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setSpeedometerEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setSpeedometerEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val enabledArg = args[0] as Boolean - val wrapped: List = try { - api.setSpeedometerEnabled(enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.setSpeedometerEnabled(enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7721,17 +9324,23 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setNavigationUIEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setNavigationUIEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val enabledArg = args[0] as Boolean - val wrapped: List = try { - api.setNavigationUIEnabled(enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.setNavigationUIEnabled(enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7739,14 +9348,20 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isMyLocationButtonEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isMyLocationButtonEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - listOf(api.isMyLocationButtonEnabled()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.isMyLocationButtonEnabled()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7754,14 +9369,20 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isConsumeMyLocationButtonClickEventsEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isConsumeMyLocationButtonClickEventsEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - listOf(api.isConsumeMyLocationButtonClickEventsEnabled()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.isConsumeMyLocationButtonClickEventsEnabled()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7769,14 +9390,20 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isZoomGesturesEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isZoomGesturesEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - listOf(api.isZoomGesturesEnabled()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.isZoomGesturesEnabled()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7784,14 +9411,20 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isZoomControlsEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isZoomControlsEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - listOf(api.isZoomControlsEnabled()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.isZoomControlsEnabled()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7799,14 +9432,20 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isCompassEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isCompassEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - listOf(api.isCompassEnabled()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.isCompassEnabled()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7814,14 +9453,20 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isRotateGesturesEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isRotateGesturesEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - listOf(api.isRotateGesturesEnabled()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.isRotateGesturesEnabled()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7829,14 +9474,20 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isScrollGesturesEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isScrollGesturesEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - listOf(api.isScrollGesturesEnabled()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.isScrollGesturesEnabled()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7844,14 +9495,20 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isScrollGesturesEnabledDuringRotateOrZoom$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isScrollGesturesEnabledDuringRotateOrZoom$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - listOf(api.isScrollGesturesEnabledDuringRotateOrZoom()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.isScrollGesturesEnabledDuringRotateOrZoom()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7859,14 +9516,20 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTiltGesturesEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTiltGesturesEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - listOf(api.isTiltGesturesEnabled()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.isTiltGesturesEnabled()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7874,14 +9537,20 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isMapToolbarEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isMapToolbarEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - listOf(api.isMapToolbarEnabled()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.isMapToolbarEnabled()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7889,14 +9558,20 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTrafficEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTrafficEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - listOf(api.isTrafficEnabled()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.isTrafficEnabled()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7904,14 +9579,20 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTrafficPromptsEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTrafficPromptsEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - listOf(api.isTrafficPromptsEnabled()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.isTrafficPromptsEnabled()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7919,14 +9600,20 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTrafficIncidentCardsEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTrafficIncidentCardsEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - listOf(api.isTrafficIncidentCardsEnabled()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.isTrafficIncidentCardsEnabled()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7934,14 +9621,20 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isNavigationTripProgressBarEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isNavigationTripProgressBarEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - listOf(api.isNavigationTripProgressBarEnabled()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.isNavigationTripProgressBarEnabled()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7949,14 +9642,20 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isSpeedLimitIconEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isSpeedLimitIconEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - listOf(api.isSpeedLimitIconEnabled()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.isSpeedLimitIconEnabled()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7964,14 +9663,20 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isSpeedometerEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isSpeedometerEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - listOf(api.isSpeedometerEnabled()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.isSpeedometerEnabled()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7979,14 +9684,20 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isNavigationUIEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isNavigationUIEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - listOf(api.isNavigationUIEnabled()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.isNavigationUIEnabled()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7994,14 +9705,20 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isIndoorEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isIndoorEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - listOf(api.isIndoorEnabled()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.isIndoorEnabled()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8009,17 +9726,23 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setIndoorEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setIndoorEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val enabledArg = args[0] as Boolean - val wrapped: List = try { - api.setIndoorEnabled(enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.setIndoorEnabled(enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8027,14 +9750,20 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getFocusedIndoorBuilding$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getFocusedIndoorBuilding$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - listOf(api.getFocusedIndoorBuilding()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.getFocusedIndoorBuilding()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8042,17 +9771,23 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.activateIndoorLevel$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.activateIndoorLevel$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val levelIndexArg = args[0] as Long - val wrapped: List = try { - api.activateIndoorLevel(levelIndexArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.activateIndoorLevel(levelIndexArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8060,15 +9795,21 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.showRouteOverview$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.showRouteOverview$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - api.showRouteOverview() - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.showRouteOverview() + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8076,14 +9817,20 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMarkers$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMarkers$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - listOf(api.getMarkers()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.getMarkers()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8091,16 +9838,22 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addMarkers$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addMarkers$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val markersArg = args[0] as List - val wrapped: List = try { - listOf(api.addMarkers(markersArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.addMarkers(markersArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8108,16 +9861,22 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updateMarkers$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updateMarkers$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val markersArg = args[0] as List - val wrapped: List = try { - listOf(api.updateMarkers(markersArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.updateMarkers(markersArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8125,17 +9884,23 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removeMarkers$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removeMarkers$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val markersArg = args[0] as List - val wrapped: List = try { - api.removeMarkers(markersArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.removeMarkers(markersArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8143,15 +9908,21 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearMarkers$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearMarkers$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - api.clearMarkers() - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.clearMarkers() + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8159,15 +9930,21 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clear$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clear$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - api.clear() - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.clear() + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8175,14 +9952,20 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getPolygons$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getPolygons$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - listOf(api.getPolygons()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.getPolygons()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8190,16 +9973,22 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addPolygons$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addPolygons$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val polygonsArg = args[0] as List - val wrapped: List = try { - listOf(api.addPolygons(polygonsArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.addPolygons(polygonsArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8207,16 +9996,22 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updatePolygons$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updatePolygons$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val polygonsArg = args[0] as List - val wrapped: List = try { - listOf(api.updatePolygons(polygonsArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.updatePolygons(polygonsArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8224,17 +10019,23 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removePolygons$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removePolygons$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val polygonsArg = args[0] as List - val wrapped: List = try { - api.removePolygons(polygonsArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.removePolygons(polygonsArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8242,15 +10043,21 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearPolygons$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearPolygons$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - api.clearPolygons() - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.clearPolygons() + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8258,14 +10065,20 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getPolylines$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getPolylines$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - listOf(api.getPolylines()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.getPolylines()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8273,16 +10086,22 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addPolylines$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addPolylines$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val polylinesArg = args[0] as List - val wrapped: List = try { - listOf(api.addPolylines(polylinesArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.addPolylines(polylinesArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8290,16 +10109,22 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updatePolylines$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updatePolylines$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val polylinesArg = args[0] as List - val wrapped: List = try { - listOf(api.updatePolylines(polylinesArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.updatePolylines(polylinesArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8307,17 +10132,23 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removePolylines$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removePolylines$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val polylinesArg = args[0] as List - val wrapped: List = try { - api.removePolylines(polylinesArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.removePolylines(polylinesArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8325,15 +10156,21 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearPolylines$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearPolylines$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - api.clearPolylines() - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.clearPolylines() + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8341,14 +10178,20 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getCircles$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getCircles$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - listOf(api.getCircles()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.getCircles()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8356,16 +10199,22 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addCircles$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addCircles$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val circlesArg = args[0] as List - val wrapped: List = try { - listOf(api.addCircles(circlesArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.addCircles(circlesArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8373,16 +10222,22 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updateCircles$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updateCircles$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val circlesArg = args[0] as List - val wrapped: List = try { - listOf(api.updateCircles(circlesArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.updateCircles(circlesArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8390,17 +10245,23 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removeCircles$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removeCircles$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val circlesArg = args[0] as List - val wrapped: List = try { - api.removeCircles(circlesArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.removeCircles(circlesArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8408,15 +10269,21 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearCircles$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearCircles$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - api.clearCircles() - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.clearCircles() + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8424,15 +10291,21 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.enableOnCameraChangedEvents$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.enableOnCameraChangedEvents$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - api.enableOnCameraChangedEvents() - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.enableOnCameraChangedEvents() + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8440,14 +10313,20 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isAutoScreenAvailable$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isAutoScreenAvailable$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - listOf(api.isAutoScreenAvailable()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.isAutoScreenAvailable()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8455,17 +10334,23 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setPadding$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setPadding$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val paddingArg = args[0] as MapPaddingDto - val wrapped: List = try { - api.setPadding(paddingArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.setPadding(paddingArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8473,14 +10358,20 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getPadding$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getPadding$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - listOf(api.getPadding()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.getPadding()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8488,14 +10379,20 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMapColorScheme$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMapColorScheme$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - listOf(api.getMapColorScheme()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.getMapColorScheme()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8503,17 +10400,23 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapColorScheme$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapColorScheme$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val mapColorSchemeArg = args[0] as MapColorSchemeDto - val wrapped: List = try { - api.setMapColorScheme(mapColorSchemeArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.setMapColorScheme(mapColorSchemeArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8521,14 +10424,20 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getForceNightMode$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getForceNightMode$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - listOf(api.getForceNightMode()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.getForceNightMode()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8536,17 +10445,23 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setForceNightMode$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setForceNightMode$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val forceNightModeArg = args[0] as NavigationForceNightModeDto - val wrapped: List = try { - api.setForceNightMode(forceNightModeArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.setForceNightMode(forceNightModeArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8554,18 +10469,24 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.sendCustomNavigationAutoEvent$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.sendCustomNavigationAutoEvent$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val eventArg = args[0] as String val dataArg = args[1] as Any - val wrapped: List = try { - api.sendCustomNavigationAutoEvent(eventArg, dataArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.sendCustomNavigationAutoEvent(eventArg, dataArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8575,18 +10496,26 @@ interface AutoMapViewApi { } } } + /** Generated class from Pigeon that represents Flutter messages that can be called from Kotlin. */ -class AutoViewEventApi(private val binaryMessenger: BinaryMessenger, private val messageChannelSuffix: String = "") { +class AutoViewEventApi( + private val binaryMessenger: BinaryMessenger, + private val messageChannelSuffix: String = "", +) { companion object { /** The codec used by AutoViewEventApi. */ - val codec: MessageCodec by lazy { - messagesPigeonCodec() - } - } - fun onCustomNavigationAutoEvent(eventArg: String, dataArg: Any, callback: (Result) -> Unit) -{ - val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = "dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onCustomNavigationAutoEvent$separatedMessageChannelSuffix" + val codec: MessageCodec by lazy { messagesPigeonCodec() } + } + + fun onCustomNavigationAutoEvent( + eventArg: String, + dataArg: Any, + callback: (Result) -> Unit, + ) { + val separatedMessageChannelSuffix = + if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = + "dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onCustomNavigationAutoEvent$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(eventArg, dataArg)) { if (it is List<*>) { @@ -8597,13 +10526,15 @@ class AutoViewEventApi(private val binaryMessenger: BinaryMessenger, private val } } else { callback(Result.failure(MessagesPigeonUtils.createConnectionError(channelName))) - } + } } } - fun onAutoScreenAvailabilityChanged(isAvailableArg: Boolean, callback: (Result) -> Unit) -{ - val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = "dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onAutoScreenAvailabilityChanged$separatedMessageChannelSuffix" + + fun onAutoScreenAvailabilityChanged(isAvailableArg: Boolean, callback: (Result) -> Unit) { + val separatedMessageChannelSuffix = + if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = + "dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onAutoScreenAvailabilityChanged$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(isAvailableArg)) { if (it is List<*>) { @@ -8614,13 +10545,15 @@ class AutoViewEventApi(private val binaryMessenger: BinaryMessenger, private val } } else { callback(Result.failure(MessagesPigeonUtils.createConnectionError(channelName))) - } + } } } - fun onPromptVisibilityChanged(promptVisibleArg: Boolean, callback: (Result) -> Unit) -{ - val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = "dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onPromptVisibilityChanged$separatedMessageChannelSuffix" + + fun onPromptVisibilityChanged(promptVisibleArg: Boolean, callback: (Result) -> Unit) { + val separatedMessageChannelSuffix = + if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = + "dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onPromptVisibilityChanged$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(promptVisibleArg)) { if (it is List<*>) { @@ -8631,13 +10564,18 @@ class AutoViewEventApi(private val binaryMessenger: BinaryMessenger, private val } } else { callback(Result.failure(MessagesPigeonUtils.createConnectionError(channelName))) - } + } } } - fun onNavigationUIEnabledChanged(navigationUIEnabledArg: Boolean, callback: (Result) -> Unit) -{ - val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = "dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onNavigationUIEnabledChanged$separatedMessageChannelSuffix" + + fun onNavigationUIEnabledChanged( + navigationUIEnabledArg: Boolean, + callback: (Result) -> Unit, + ) { + val separatedMessageChannelSuffix = + if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = + "dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onNavigationUIEnabledChanged$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(navigationUIEnabledArg)) { if (it is List<*>) { @@ -8648,13 +10586,18 @@ class AutoViewEventApi(private val binaryMessenger: BinaryMessenger, private val } } else { callback(Result.failure(MessagesPigeonUtils.createConnectionError(channelName))) - } + } } } - fun onIndoorFocusedBuildingChanged(buildingArg: IndoorBuildingDto?, callback: (Result) -> Unit) -{ - val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = "dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onIndoorFocusedBuildingChanged$separatedMessageChannelSuffix" + + fun onIndoorFocusedBuildingChanged( + buildingArg: IndoorBuildingDto?, + callback: (Result) -> Unit, + ) { + val separatedMessageChannelSuffix = + if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = + "dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onIndoorFocusedBuildingChanged$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(buildingArg)) { if (it is List<*>) { @@ -8665,13 +10608,18 @@ class AutoViewEventApi(private val binaryMessenger: BinaryMessenger, private val } } else { callback(Result.failure(MessagesPigeonUtils.createConnectionError(channelName))) - } + } } } - fun onIndoorActiveLevelChanged(buildingArg: IndoorBuildingDto?, callback: (Result) -> Unit) -{ - val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = "dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onIndoorActiveLevelChanged$separatedMessageChannelSuffix" + + fun onIndoorActiveLevelChanged( + buildingArg: IndoorBuildingDto?, + callback: (Result) -> Unit, + ) { + val separatedMessageChannelSuffix = + if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = + "dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onIndoorActiveLevelChanged$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(buildingArg)) { if (it is List<*>) { @@ -8682,34 +10630,48 @@ class AutoViewEventApi(private val binaryMessenger: BinaryMessenger, private val } } else { callback(Result.failure(MessagesPigeonUtils.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 { - messagesPigeonCodec() - } - /** Sets up an instance of `NavigationInspector` to handle messages through the `binaryMessenger`. */ + val codec: MessageCodec by lazy { messagesPigeonCodec() } + + /** + * Sets up an instance of `NavigationInspector` to handle messages through the + * `binaryMessenger`. + */ @JvmOverloads - fun setUp(binaryMessenger: BinaryMessenger, api: NavigationInspector?, messageChannelSuffix: String = "") { - val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + fun setUp( + binaryMessenger: BinaryMessenger, + api: NavigationInspector?, + messageChannelSuffix: String = "", + ) { + val separatedMessageChannelSuffix = + if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationInspector.isViewAttachedToSession$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.NavigationInspector.isViewAttachedToSession$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = try { - listOf(api.isViewAttachedToSession(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.isViewAttachedToSession(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { diff --git a/ios/google_navigation_flutter/Sources/google_navigation_flutter/GoogleMapsNavigationView.swift b/ios/google_navigation_flutter/Sources/google_navigation_flutter/GoogleMapsNavigationView.swift index 26049995..9e784664 100644 --- a/ios/google_navigation_flutter/Sources/google_navigation_flutter/GoogleMapsNavigationView.swift +++ b/ios/google_navigation_flutter/Sources/google_navigation_flutter/GoogleMapsNavigationView.swift @@ -621,10 +621,14 @@ public class GoogleMapsNavigationView: NSObject, FlutterPlatformView, ViewSettle func getNavigationHeaderStylingOptions() -> NavigationHeaderStylingOptionsDto { NavigationHeaderStylingOptionsDto( - primaryDayModeBackgroundColor: _mapView.settings.navigationHeaderPrimaryBackgroundColor?.toRgb(), - secondaryDayModeBackgroundColor: _mapView.settings.navigationHeaderSecondaryBackgroundColor?.toRgb(), - primaryNightModeBackgroundColor: _mapView.settings.navigationHeaderPrimaryBackgroundColorNightMode?.toRgb(), - secondaryNightModeBackgroundColor: _mapView.settings.navigationHeaderSecondaryBackgroundColorNightMode?.toRgb() + primaryDayModeBackgroundColor: _mapView.settings.navigationHeaderPrimaryBackgroundColor? + .toRgb(), + secondaryDayModeBackgroundColor: _mapView.settings.navigationHeaderSecondaryBackgroundColor? + .toRgb(), + primaryNightModeBackgroundColor: _mapView.settings + .navigationHeaderPrimaryBackgroundColorNightMode?.toRgb(), + secondaryNightModeBackgroundColor: _mapView.settings + .navigationHeaderSecondaryBackgroundColorNightMode?.toRgb() ) } diff --git a/ios/google_navigation_flutter/Sources/google_navigation_flutter/GoogleMapsNavigationViewMessageHandler.swift b/ios/google_navigation_flutter/Sources/google_navigation_flutter/GoogleMapsNavigationViewMessageHandler.swift index 40b0e053..028f5725 100644 --- a/ios/google_navigation_flutter/Sources/google_navigation_flutter/GoogleMapsNavigationViewMessageHandler.swift +++ b/ios/google_navigation_flutter/Sources/google_navigation_flutter/GoogleMapsNavigationViewMessageHandler.swift @@ -358,7 +358,8 @@ class GoogleMapsNavigationViewMessageHandler: MapViewApi { try getView(viewId).setNavigationHeaderEnabled(enabled) } - func getNavigationHeaderStylingOptions(viewId: Int64) throws -> NavigationHeaderStylingOptionsDto { + func getNavigationHeaderStylingOptions(viewId: Int64) throws -> NavigationHeaderStylingOptionsDto + { try getView(viewId).getNavigationHeaderStylingOptions() } 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 f0592ee6..f1fc2f95 100644 --- a/ios/google_navigation_flutter/Sources/google_navigation_flutter/messages.g.swift +++ b/ios/google_navigation_flutter/Sources/google_navigation_flutter/messages.g.swift @@ -70,7 +70,9 @@ private func wrapError(_ error: Any) -> [Any?] { } private func createConnectionError(withChannelName channelName: String) -> PigeonError { - return PigeonError(code: "channel-error", message: "Unable to establish connection on channel: '\(channelName)'.", details: "") + return PigeonError( + code: "channel-error", message: "Unable to establish connection on channel: '\(channelName)'.", + details: "") } private func isNullish(_ value: Any?) -> Bool { @@ -125,12 +127,12 @@ func deepEqualsmessages(_ lhs: Any?, _ rhs: Any?) -> Bool { func deepHashmessages(value: Any?, hasher: inout Hasher) { if let valueList = value as? [AnyHashable] { - for item in valueList { deepHashmessages(value: item, hasher: &hasher) } - return + for item in valueList { deepHashmessages(value: item, hasher: &hasher) } + return } if let valueDict = value as? [AnyHashable: AnyHashable] { - for key in valueDict.keys { + for key in valueDict.keys { hasher.combine(key) deepHashmessages(value: valueDict[key]!, hasher: &hasher) } @@ -144,8 +146,6 @@ func deepHashmessages(value: Any?, hasher: inout Hasher) { return hasher.combine(String(describing: value)) } - - /// Describes the type of map to construct. enum MapViewTypeDto: Int { /// Navigation view supports navigation overlay, and current navigation session is displayed on the map. @@ -517,7 +517,6 @@ struct AutoMapOptionsDto: Hashable { /// Determines the initial visibility of the navigation UI on map initialization. var navigationUIEnabledPreference: NavigationUIEnabledPreferenceDto? = nil - // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> AutoMapOptionsDto? { let cameraPosition: CameraPositionDto? = nilOrValue(pigeonVar_list[0]) @@ -525,7 +524,8 @@ struct AutoMapOptionsDto: Hashable { let mapType: MapTypeDto? = nilOrValue(pigeonVar_list[2]) let mapColorScheme: MapColorSchemeDto? = nilOrValue(pigeonVar_list[3]) let forceNightMode: NavigationForceNightModeDto? = nilOrValue(pigeonVar_list[4]) - let navigationUIEnabledPreference: NavigationUIEnabledPreferenceDto? = nilOrValue(pigeonVar_list[5]) + let navigationUIEnabledPreference: NavigationUIEnabledPreferenceDto? = nilOrValue( + pigeonVar_list[5]) return AutoMapOptionsDto( cameraPosition: cameraPosition, @@ -547,7 +547,8 @@ struct AutoMapOptionsDto: Hashable { ] } static func == (lhs: AutoMapOptionsDto, rhs: AutoMapOptionsDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) } + return deepEqualsmessages(lhs.toList(), rhs.toList()) + } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -592,7 +593,6 @@ struct MapOptionsDto: Hashable { /// The map color scheme mode for the map view. var mapColorScheme: MapColorSchemeDto - // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> MapOptionsDto? { let cameraPosition = pigeonVar_list[0] as! CameraPositionDto @@ -652,7 +652,8 @@ struct MapOptionsDto: Hashable { ] } static func == (lhs: MapOptionsDto, rhs: MapOptionsDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) } + return deepEqualsmessages(lhs.toList(), rhs.toList()) + } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -667,7 +668,6 @@ struct NavigationViewOptionsDto: Hashable { /// Controls the navigation night mode for Navigation UI. var forceNightMode: NavigationForceNightModeDto - // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> NavigationViewOptionsDto? { let navigationUIEnabledPreference = pigeonVar_list[0] as! NavigationUIEnabledPreferenceDto @@ -685,7 +685,8 @@ struct NavigationViewOptionsDto: Hashable { ] } static func == (lhs: NavigationViewOptionsDto, rhs: NavigationViewOptionsDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) } + return deepEqualsmessages(lhs.toList(), rhs.toList()) + } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -702,7 +703,6 @@ struct ViewCreationOptionsDto: Hashable { var mapOptions: MapOptionsDto var navigationViewOptions: NavigationViewOptionsDto? = nil - // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> ViewCreationOptionsDto? { let mapViewType = pigeonVar_list[0] as! MapViewTypeDto @@ -723,7 +723,8 @@ struct ViewCreationOptionsDto: Hashable { ] } static func == (lhs: ViewCreationOptionsDto, rhs: ViewCreationOptionsDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) } + return deepEqualsmessages(lhs.toList(), rhs.toList()) + } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -736,7 +737,6 @@ struct CameraPositionDto: Hashable { var tilt: Double var zoom: Double - // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> CameraPositionDto? { let bearing = pigeonVar_list[0] as! Double @@ -760,7 +760,8 @@ struct CameraPositionDto: Hashable { ] } static func == (lhs: CameraPositionDto, rhs: CameraPositionDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) } + return deepEqualsmessages(lhs.toList(), rhs.toList()) + } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -773,7 +774,6 @@ struct MarkerDto: Hashable { /// Options for marker var options: MarkerOptionsDto - // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> MarkerDto? { let markerId = pigeonVar_list[0] as! String @@ -791,7 +791,8 @@ struct MarkerDto: Hashable { ] } static func == (lhs: MarkerDto, rhs: MarkerDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) } + return deepEqualsmessages(lhs.toList(), rhs.toList()) + } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -811,7 +812,6 @@ struct MarkerOptionsDto: Hashable { var zIndex: Double var icon: ImageDescriptorDto - // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> MarkerOptionsDto? { let alpha = pigeonVar_list[0] as! Double @@ -856,7 +856,8 @@ struct MarkerOptionsDto: Hashable { ] } static func == (lhs: MarkerOptionsDto, rhs: MarkerOptionsDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) } + return deepEqualsmessages(lhs.toList(), rhs.toList()) + } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -870,7 +871,6 @@ struct ImageDescriptorDto: Hashable { var height: Double? = nil var type: RegisteredImageTypeDto - // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> ImageDescriptorDto? { let registeredImageId: String? = nilOrValue(pigeonVar_list[0]) @@ -897,7 +897,8 @@ struct ImageDescriptorDto: Hashable { ] } static func == (lhs: ImageDescriptorDto, rhs: ImageDescriptorDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) } + return deepEqualsmessages(lhs.toList(), rhs.toList()) + } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -909,7 +910,6 @@ struct InfoWindowDto: Hashable { var snippet: String? = nil var anchor: MarkerAnchorDto - // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> InfoWindowDto? { let title: String? = nilOrValue(pigeonVar_list[0]) @@ -930,7 +930,8 @@ struct InfoWindowDto: Hashable { ] } static func == (lhs: InfoWindowDto, rhs: InfoWindowDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) } + return deepEqualsmessages(lhs.toList(), rhs.toList()) + } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -941,7 +942,6 @@ struct MarkerAnchorDto: Hashable { var u: Double var v: Double - // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> MarkerAnchorDto? { let u = pigeonVar_list[0] as! Double @@ -959,7 +959,8 @@ struct MarkerAnchorDto: Hashable { ] } static func == (lhs: MarkerAnchorDto, rhs: MarkerAnchorDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) } + return deepEqualsmessages(lhs.toList(), rhs.toList()) + } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -978,7 +979,6 @@ struct PointOfInterestDto: Hashable { /// The geographical coordinates of the POI. var latLng: LatLngDto - // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> PointOfInterestDto? { let placeID = pigeonVar_list[0] as! String @@ -999,7 +999,8 @@ struct PointOfInterestDto: Hashable { ] } static func == (lhs: PointOfInterestDto, rhs: PointOfInterestDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) } + return deepEqualsmessages(lhs.toList(), rhs.toList()) + } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -1014,7 +1015,6 @@ struct IndoorLevelDto: Hashable { /// Short display name of the level. var shortName: String? = nil - // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> IndoorLevelDto? { let name: String? = nilOrValue(pigeonVar_list[0]) @@ -1032,7 +1032,8 @@ struct IndoorLevelDto: Hashable { ] } static func == (lhs: IndoorLevelDto, rhs: IndoorLevelDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) } + return deepEqualsmessages(lhs.toList(), rhs.toList()) + } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -1051,7 +1052,6 @@ struct IndoorBuildingDto: Hashable { /// Whether building is mostly underground, if known. var isUnderground: Bool? = nil - // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> IndoorBuildingDto? { let levels = pigeonVar_list[0] as! [IndoorLevelDto?] @@ -1075,7 +1075,8 @@ struct IndoorBuildingDto: Hashable { ] } static func == (lhs: IndoorBuildingDto, rhs: IndoorBuildingDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) } + return deepEqualsmessages(lhs.toList(), rhs.toList()) + } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -1086,7 +1087,6 @@ struct PolygonDto: Hashable { var polygonId: String var options: PolygonOptionsDto - // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> PolygonDto? { let polygonId = pigeonVar_list[0] as! String @@ -1104,7 +1104,8 @@ struct PolygonDto: Hashable { ] } static func == (lhs: PolygonDto, rhs: PolygonDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) } + return deepEqualsmessages(lhs.toList(), rhs.toList()) + } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -1122,7 +1123,6 @@ struct PolygonOptionsDto: Hashable { var visible: Bool var zIndex: Double - // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> PolygonOptionsDto? { let points = pigeonVar_list[0] as! [LatLngDto?] @@ -1161,7 +1161,8 @@ struct PolygonOptionsDto: Hashable { ] } static func == (lhs: PolygonOptionsDto, rhs: PolygonOptionsDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) } + return deepEqualsmessages(lhs.toList(), rhs.toList()) + } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -1171,7 +1172,6 @@ struct PolygonOptionsDto: Hashable { struct PolygonHoleDto: Hashable { var points: [LatLngDto?] - // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> PolygonHoleDto? { let points = pigeonVar_list[0] as! [LatLngDto?] @@ -1186,7 +1186,8 @@ struct PolygonHoleDto: Hashable { ] } static func == (lhs: PolygonHoleDto, rhs: PolygonHoleDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) } + return deepEqualsmessages(lhs.toList(), rhs.toList()) + } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -1198,7 +1199,6 @@ struct StyleSpanStrokeStyleDto: Hashable { var fromColor: Int64? = nil var toColor: Int64? = nil - // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> StyleSpanStrokeStyleDto? { let solidColor: Int64? = nilOrValue(pigeonVar_list[0]) @@ -1219,7 +1219,8 @@ struct StyleSpanStrokeStyleDto: Hashable { ] } static func == (lhs: StyleSpanStrokeStyleDto, rhs: StyleSpanStrokeStyleDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) } + return deepEqualsmessages(lhs.toList(), rhs.toList()) + } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -1230,7 +1231,6 @@ struct StyleSpanDto: Hashable { var length: Double var style: StyleSpanStrokeStyleDto - // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> StyleSpanDto? { let length = pigeonVar_list[0] as! Double @@ -1248,7 +1248,8 @@ struct StyleSpanDto: Hashable { ] } static func == (lhs: StyleSpanDto, rhs: StyleSpanDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) } + return deepEqualsmessages(lhs.toList(), rhs.toList()) + } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -1259,7 +1260,6 @@ struct PolylineDto: Hashable { var polylineId: String var options: PolylineOptionsDto - // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> PolylineDto? { let polylineId = pigeonVar_list[0] as! String @@ -1277,7 +1277,8 @@ struct PolylineDto: Hashable { ] } static func == (lhs: PolylineDto, rhs: PolylineDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) } + return deepEqualsmessages(lhs.toList(), rhs.toList()) + } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -1288,7 +1289,6 @@ struct PatternItemDto: Hashable { var type: PatternTypeDto var length: Double? = nil - // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> PatternItemDto? { let type = pigeonVar_list[0] as! PatternTypeDto @@ -1306,7 +1306,8 @@ struct PatternItemDto: Hashable { ] } static func == (lhs: PatternItemDto, rhs: PatternItemDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) } + return deepEqualsmessages(lhs.toList(), rhs.toList()) + } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -1325,7 +1326,6 @@ struct PolylineOptionsDto: Hashable { var zIndex: Double? = nil var spans: [StyleSpanDto?] - // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> PolylineOptionsDto? { let points: [LatLngDto?]? = nilOrValue(pigeonVar_list[0]) @@ -1367,7 +1367,8 @@ struct PolylineOptionsDto: Hashable { ] } static func == (lhs: PolylineOptionsDto, rhs: PolylineOptionsDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) } + return deepEqualsmessages(lhs.toList(), rhs.toList()) + } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -1380,7 +1381,6 @@ struct CircleDto: Hashable { /// Options for circle. var options: CircleOptionsDto - // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> CircleDto? { let circleId = pigeonVar_list[0] as! String @@ -1398,7 +1398,8 @@ struct CircleDto: Hashable { ] } static func == (lhs: CircleDto, rhs: CircleDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) } + return deepEqualsmessages(lhs.toList(), rhs.toList()) + } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -1416,7 +1417,6 @@ struct CircleOptionsDto: Hashable { var visible: Bool var clickable: Bool - // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> CircleOptionsDto? { let position = pigeonVar_list[0] as! LatLngDto @@ -1455,7 +1455,8 @@ struct CircleOptionsDto: Hashable { ] } static func == (lhs: CircleOptionsDto, rhs: CircleOptionsDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) } + return deepEqualsmessages(lhs.toList(), rhs.toList()) + } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -1468,7 +1469,6 @@ struct MapPaddingDto: Hashable { var bottom: Int64 var right: Int64 - // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> MapPaddingDto? { let top = pigeonVar_list[0] as! Int64 @@ -1492,7 +1492,8 @@ struct MapPaddingDto: Hashable { ] } static func == (lhs: MapPaddingDto, rhs: MapPaddingDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) } + return deepEqualsmessages(lhs.toList(), rhs.toList()) + } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -1510,7 +1511,6 @@ struct NavigationHeaderStylingOptionsDto: Hashable { var primaryNightModeBackgroundColor: Int64? = nil var secondaryNightModeBackgroundColor: Int64? = nil - // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> NavigationHeaderStylingOptionsDto? { let primaryDayModeBackgroundColor: Int64? = nilOrValue(pigeonVar_list[0]) @@ -1533,8 +1533,11 @@ struct NavigationHeaderStylingOptionsDto: Hashable { secondaryNightModeBackgroundColor, ] } - static func == (lhs: NavigationHeaderStylingOptionsDto, rhs: NavigationHeaderStylingOptionsDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) } + static func == (lhs: NavigationHeaderStylingOptionsDto, rhs: NavigationHeaderStylingOptionsDto) + -> Bool + { + return deepEqualsmessages(lhs.toList(), rhs.toList()) + } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -1545,7 +1548,6 @@ struct RouteTokenOptionsDto: Hashable { var routeToken: String var travelMode: TravelModeDto? = nil - // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> RouteTokenOptionsDto? { let routeToken = pigeonVar_list[0] as! String @@ -1563,7 +1565,8 @@ struct RouteTokenOptionsDto: Hashable { ] } static func == (lhs: RouteTokenOptionsDto, rhs: RouteTokenOptionsDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) } + return deepEqualsmessages(lhs.toList(), rhs.toList()) + } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -1576,7 +1579,6 @@ struct DestinationsDto: Hashable { var routingOptions: RoutingOptionsDto? = nil var routeTokenOptions: RouteTokenOptionsDto? = nil - // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> DestinationsDto? { let waypoints = pigeonVar_list[0] as! [NavigationWaypointDto?] @@ -1600,7 +1602,8 @@ struct DestinationsDto: Hashable { ] } static func == (lhs: DestinationsDto, rhs: DestinationsDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) } + return deepEqualsmessages(lhs.toList(), rhs.toList()) + } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -1617,7 +1620,6 @@ struct RoutingOptionsDto: Hashable { var avoidHighways: Bool? = nil var locationTimeoutMs: Int64? = nil - // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> RoutingOptionsDto? { let alternateRoutesStrategy: AlternateRoutesStrategyDto? = nilOrValue(pigeonVar_list[0]) @@ -1653,7 +1655,8 @@ struct RoutingOptionsDto: Hashable { ] } static func == (lhs: RoutingOptionsDto, rhs: RoutingOptionsDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) } + return deepEqualsmessages(lhs.toList(), rhs.toList()) + } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -1667,7 +1670,6 @@ struct NavigationDisplayOptionsDto: Hashable { /// Deprecated: This option now defaults to true. var showTrafficLights: Bool? = nil - // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> NavigationDisplayOptionsDto? { let showDestinationMarkers: Bool? = nilOrValue(pigeonVar_list[0]) @@ -1688,7 +1690,8 @@ struct NavigationDisplayOptionsDto: Hashable { ] } static func == (lhs: NavigationDisplayOptionsDto, rhs: NavigationDisplayOptionsDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) } + return deepEqualsmessages(lhs.toList(), rhs.toList()) + } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -1702,7 +1705,6 @@ struct NavigationWaypointDto: Hashable { var preferSameSideOfRoad: Bool? = nil var preferredSegmentHeading: Int64? = nil - // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> NavigationWaypointDto? { let title = pigeonVar_list[0] as! String @@ -1729,7 +1731,8 @@ struct NavigationWaypointDto: Hashable { ] } static func == (lhs: NavigationWaypointDto, rhs: NavigationWaypointDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) } + return deepEqualsmessages(lhs.toList(), rhs.toList()) + } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -1740,7 +1743,6 @@ struct ContinueToNextDestinationResponseDto: Hashable { var waypoint: NavigationWaypointDto? = nil var routeStatus: RouteStatusDto? = nil - // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> ContinueToNextDestinationResponseDto? { let waypoint: NavigationWaypointDto? = nilOrValue(pigeonVar_list[0]) @@ -1757,8 +1759,11 @@ struct ContinueToNextDestinationResponseDto: Hashable { routeStatus, ] } - static func == (lhs: ContinueToNextDestinationResponseDto, rhs: ContinueToNextDestinationResponseDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) } + static func == ( + lhs: ContinueToNextDestinationResponseDto, rhs: ContinueToNextDestinationResponseDto + ) -> Bool { + return deepEqualsmessages(lhs.toList(), rhs.toList()) + } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -1770,7 +1775,6 @@ struct NavigationTimeAndDistanceDto: Hashable { var distance: Double var delaySeverity: TrafficDelaySeverityDto - // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> NavigationTimeAndDistanceDto? { let time = pigeonVar_list[0] as! Double @@ -1791,7 +1795,8 @@ struct NavigationTimeAndDistanceDto: Hashable { ] } static func == (lhs: NavigationTimeAndDistanceDto, rhs: NavigationTimeAndDistanceDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) } + return deepEqualsmessages(lhs.toList(), rhs.toList()) + } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -1803,7 +1808,6 @@ struct NavigationAudioGuidanceSettingsDto: Hashable { var isVibrationEnabled: Bool? = nil var guidanceType: AudioGuidanceTypeDto? = nil - // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> NavigationAudioGuidanceSettingsDto? { let isBluetoothAudioEnabled: Bool? = nilOrValue(pigeonVar_list[0]) @@ -1823,8 +1827,11 @@ struct NavigationAudioGuidanceSettingsDto: Hashable { guidanceType, ] } - static func == (lhs: NavigationAudioGuidanceSettingsDto, rhs: NavigationAudioGuidanceSettingsDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) } + static func == (lhs: NavigationAudioGuidanceSettingsDto, rhs: NavigationAudioGuidanceSettingsDto) + -> Bool + { + return deepEqualsmessages(lhs.toList(), rhs.toList()) + } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -1834,7 +1841,6 @@ struct NavigationAudioGuidanceSettingsDto: Hashable { struct SimulationOptionsDto: Hashable { var speedMultiplier: Double - // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> SimulationOptionsDto? { let speedMultiplier = pigeonVar_list[0] as! Double @@ -1849,7 +1855,8 @@ struct SimulationOptionsDto: Hashable { ] } static func == (lhs: SimulationOptionsDto, rhs: SimulationOptionsDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) } + return deepEqualsmessages(lhs.toList(), rhs.toList()) + } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -1860,7 +1867,6 @@ struct LatLngDto: Hashable { var latitude: Double var longitude: Double - // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> LatLngDto? { let latitude = pigeonVar_list[0] as! Double @@ -1878,7 +1884,8 @@ struct LatLngDto: Hashable { ] } static func == (lhs: LatLngDto, rhs: LatLngDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) } + return deepEqualsmessages(lhs.toList(), rhs.toList()) + } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -1889,7 +1896,6 @@ struct LatLngBoundsDto: Hashable { var southwest: LatLngDto var northeast: LatLngDto - // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> LatLngBoundsDto? { let southwest = pigeonVar_list[0] as! LatLngDto @@ -1907,7 +1913,8 @@ struct LatLngBoundsDto: Hashable { ] } static func == (lhs: LatLngBoundsDto, rhs: LatLngBoundsDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) } + return deepEqualsmessages(lhs.toList(), rhs.toList()) + } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -1918,7 +1925,6 @@ struct SpeedingUpdatedEventDto: Hashable { var percentageAboveLimit: Double var severity: SpeedAlertSeverityDto - // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> SpeedingUpdatedEventDto? { let percentageAboveLimit = pigeonVar_list[0] as! Double @@ -1936,7 +1942,8 @@ struct SpeedingUpdatedEventDto: Hashable { ] } static func == (lhs: SpeedingUpdatedEventDto, rhs: SpeedingUpdatedEventDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) } + return deepEqualsmessages(lhs.toList(), rhs.toList()) + } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -1947,7 +1954,6 @@ struct GpsAvailabilityChangeEventDto: Hashable { var isGpsLost: Bool var isGpsValidForNavigation: Bool - // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> GpsAvailabilityChangeEventDto? { let isGpsLost = pigeonVar_list[0] as! Bool @@ -1965,7 +1971,8 @@ struct GpsAvailabilityChangeEventDto: Hashable { ] } static func == (lhs: GpsAvailabilityChangeEventDto, rhs: GpsAvailabilityChangeEventDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) } + return deepEqualsmessages(lhs.toList(), rhs.toList()) + } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -1976,7 +1983,6 @@ struct SpeedAlertOptionsThresholdPercentageDto: Hashable { var percentage: Double var severity: SpeedAlertSeverityDto - // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> SpeedAlertOptionsThresholdPercentageDto? { let percentage = pigeonVar_list[0] as! Double @@ -1993,8 +1999,11 @@ struct SpeedAlertOptionsThresholdPercentageDto: Hashable { severity, ] } - static func == (lhs: SpeedAlertOptionsThresholdPercentageDto, rhs: SpeedAlertOptionsThresholdPercentageDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) } + static func == ( + lhs: SpeedAlertOptionsThresholdPercentageDto, rhs: SpeedAlertOptionsThresholdPercentageDto + ) -> Bool { + return deepEqualsmessages(lhs.toList(), rhs.toList()) + } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -2006,7 +2015,6 @@ struct SpeedAlertOptionsDto: Hashable { var minorSpeedAlertThresholdPercentage: Double var majorSpeedAlertThresholdPercentage: Double - // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> SpeedAlertOptionsDto? { let severityUpgradeDurationSeconds = pigeonVar_list[0] as! Double @@ -2027,7 +2035,8 @@ struct SpeedAlertOptionsDto: Hashable { ] } static func == (lhs: SpeedAlertOptionsDto, rhs: SpeedAlertOptionsDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) } + return deepEqualsmessages(lhs.toList(), rhs.toList()) + } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -2039,9 +2048,10 @@ struct RouteSegmentTrafficDataRoadStretchRenderingDataDto: Hashable { var lengthMeters: Int64 var offsetMeters: Int64 - // swift-format-ignore: AlwaysUseLowerCamelCase - static func fromList(_ pigeonVar_list: [Any?]) -> RouteSegmentTrafficDataRoadStretchRenderingDataDto? { + static func fromList(_ pigeonVar_list: [Any?]) + -> RouteSegmentTrafficDataRoadStretchRenderingDataDto? + { let style = pigeonVar_list[0] as! RouteSegmentTrafficDataRoadStretchRenderingDataStyleDto let lengthMeters = pigeonVar_list[1] as! Int64 let offsetMeters = pigeonVar_list[2] as! Int64 @@ -2059,8 +2069,12 @@ struct RouteSegmentTrafficDataRoadStretchRenderingDataDto: Hashable { offsetMeters, ] } - static func == (lhs: RouteSegmentTrafficDataRoadStretchRenderingDataDto, rhs: RouteSegmentTrafficDataRoadStretchRenderingDataDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) } + static func == ( + lhs: RouteSegmentTrafficDataRoadStretchRenderingDataDto, + rhs: RouteSegmentTrafficDataRoadStretchRenderingDataDto + ) -> Bool { + return deepEqualsmessages(lhs.toList(), rhs.toList()) + } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -2071,11 +2085,11 @@ struct RouteSegmentTrafficDataDto: Hashable { var status: RouteSegmentTrafficDataStatusDto var roadStretchRenderingDataList: [RouteSegmentTrafficDataRoadStretchRenderingDataDto?] - // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> RouteSegmentTrafficDataDto? { let status = pigeonVar_list[0] as! RouteSegmentTrafficDataStatusDto - let roadStretchRenderingDataList = pigeonVar_list[1] as! [RouteSegmentTrafficDataRoadStretchRenderingDataDto?] + let roadStretchRenderingDataList = + pigeonVar_list[1] as! [RouteSegmentTrafficDataRoadStretchRenderingDataDto?] return RouteSegmentTrafficDataDto( status: status, @@ -2089,7 +2103,8 @@ struct RouteSegmentTrafficDataDto: Hashable { ] } static func == (lhs: RouteSegmentTrafficDataDto, rhs: RouteSegmentTrafficDataDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) } + return deepEqualsmessages(lhs.toList(), rhs.toList()) + } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -2102,7 +2117,6 @@ struct RouteSegmentDto: Hashable { var latLngs: [LatLngDto?]? = nil var destinationWaypoint: NavigationWaypointDto? = nil - // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> RouteSegmentDto? { let trafficData: RouteSegmentTrafficDataDto? = nilOrValue(pigeonVar_list[0]) @@ -2126,7 +2140,8 @@ struct RouteSegmentDto: Hashable { ] } static func == (lhs: RouteSegmentDto, rhs: RouteSegmentDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) } + return deepEqualsmessages(lhs.toList(), rhs.toList()) + } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -2141,7 +2156,6 @@ struct LaneDirectionDto: Hashable { /// Whether this lane is recommended. var isRecommended: Bool - // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> LaneDirectionDto? { let laneShape = pigeonVar_list[0] as! LaneShapeDto @@ -2159,7 +2173,8 @@ struct LaneDirectionDto: Hashable { ] } static func == (lhs: LaneDirectionDto, rhs: LaneDirectionDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) } + return deepEqualsmessages(lhs.toList(), rhs.toList()) + } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -2172,7 +2187,6 @@ struct LaneDto: Hashable { /// List of possible directions a driver can follow when using this lane at the end of the respective route step var laneDirections: [LaneDirectionDto?] - // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> LaneDto? { let laneDirections = pigeonVar_list[0] as! [LaneDirectionDto?] @@ -2187,7 +2201,8 @@ struct LaneDto: Hashable { ] } static func == (lhs: LaneDto, rhs: LaneDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) } + return deepEqualsmessages(lhs.toList(), rhs.toList()) + } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -2227,7 +2242,6 @@ struct StepInfoDto: Hashable { /// This image is generated only if step image generation option includes lane images. var lanesImage: ImageDescriptorDto? = nil - // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> StepInfoDto? { let distanceFromPrevStepMeters: Int64? = nilOrValue(pigeonVar_list[0]) @@ -2278,7 +2292,8 @@ struct StepInfoDto: Hashable { ] } static func == (lhs: StepInfoDto, rhs: StepInfoDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) } + return deepEqualsmessages(lhs.toList(), rhs.toList()) + } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -2318,7 +2333,6 @@ struct NavInfoDto: Hashable { /// Android only. var timeToNextDestinationSeconds: Int64? = nil - // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> NavInfoDto? { let navState = pigeonVar_list[0] as! NavStateDto @@ -2360,7 +2374,8 @@ struct NavInfoDto: Hashable { ] } static func == (lhs: NavInfoDto, rhs: NavInfoDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) } + return deepEqualsmessages(lhs.toList(), rhs.toList()) + } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -2384,7 +2399,6 @@ struct TermsAndConditionsUIParamsDto: Hashable { /// Text color for the cancel button. var cancelButtonTextColor: Int64? = nil - // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> TermsAndConditionsUIParamsDto? { let backgroundColor: Int64? = nilOrValue(pigeonVar_list[0]) @@ -2411,7 +2425,8 @@ struct TermsAndConditionsUIParamsDto: Hashable { ] } static func == (lhs: TermsAndConditionsUIParamsDto, rhs: TermsAndConditionsUIParamsDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) } + return deepEqualsmessages(lhs.toList(), rhs.toList()) + } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -2428,7 +2443,6 @@ struct StepImageGenerationOptionsDto: Hashable { /// Defaults to false if not specified. var generateLaneImages: Bool? = nil - // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> StepImageGenerationOptionsDto? { let generateManeuverImages: Bool? = nilOrValue(pigeonVar_list[0]) @@ -2446,7 +2460,8 @@ struct StepImageGenerationOptionsDto: Hashable { ] } static func == (lhs: StepImageGenerationOptionsDto, rhs: StepImageGenerationOptionsDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) } + return deepEqualsmessages(lhs.toList(), rhs.toList()) + } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -2692,7 +2707,8 @@ private class MessagesPigeonCodecReader: FlutterStandardReader { case 194: return SpeedAlertOptionsDto.fromList(self.readValue() as! [Any?]) case 195: - return RouteSegmentTrafficDataRoadStretchRenderingDataDto.fromList(self.readValue() as! [Any?]) + return RouteSegmentTrafficDataRoadStretchRenderingDataDto.fromList( + self.readValue() as! [Any?]) case 196: return RouteSegmentTrafficDataDto.fromList(self.readValue() as! [Any?]) case 197: @@ -2962,7 +2978,6 @@ class MessagesPigeonCodec: FlutterStandardMessageCodec, @unchecked Sendable { static let shared = MessagesPigeonCodec(readerWriter: MessagesPigeonCodecReaderWriter()) } - /// Dummy interface to force generation of the platform view creation params. /// Pigeon only generates messages if the messages are used in API. /// [ViewCreationOptionsDto] is encoded and decoded directly to generate a @@ -2979,9 +2994,14 @@ protocol ViewCreationApi { class ViewCreationApiSetup { static var codec: FlutterStandardMessageCodec { MessagesPigeonCodec.shared } /// Sets up an instance of `ViewCreationApi` to handle messages through the `binaryMessenger`. - static func setUp(binaryMessenger: FlutterBinaryMessenger, api: ViewCreationApi?, messageChannelSuffix: String = "") { + static func setUp( + binaryMessenger: FlutterBinaryMessenger, api: ViewCreationApi?, + messageChannelSuffix: String = "" + ) { let channelSuffix = messageChannelSuffix.count > 0 ? ".\(messageChannelSuffix)" : "" - let createChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.ViewCreationApi.create\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let createChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.ViewCreationApi.create\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { createChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3012,7 +3032,8 @@ protocol MapViewApi { func isNavigationHeaderEnabled(viewId: Int64) throws -> Bool func setNavigationHeaderEnabled(viewId: Int64, enabled: Bool) throws func getNavigationHeaderStylingOptions(viewId: Int64) throws -> NavigationHeaderStylingOptionsDto - func setNavigationHeaderStylingOptions(viewId: Int64, stylingOptions: NavigationHeaderStylingOptionsDto) throws + func setNavigationHeaderStylingOptions( + viewId: Int64, stylingOptions: NavigationHeaderStylingOptionsDto) throws func isNavigationFooterEnabled(viewId: Int64) throws -> Bool func setNavigationFooterEnabled(viewId: Int64, enabled: Bool) throws func isRecenterButtonEnabled(viewId: Int64) throws -> Bool @@ -3067,13 +3088,27 @@ protocol MapViewApi { func getCameraPosition(viewId: Int64) throws -> CameraPositionDto func getVisibleRegion(viewId: Int64) throws -> LatLngBoundsDto func followMyLocation(viewId: Int64, perspective: CameraPerspectiveDto, zoomLevel: Double?) throws - func animateCameraToCameraPosition(viewId: Int64, cameraPosition: CameraPositionDto, duration: Int64?, completion: @escaping (Result) -> Void) - func animateCameraToLatLng(viewId: Int64, point: LatLngDto, duration: Int64?, completion: @escaping (Result) -> Void) - func animateCameraToLatLngBounds(viewId: Int64, bounds: LatLngBoundsDto, padding: Double, duration: Int64?, completion: @escaping (Result) -> Void) - func animateCameraToLatLngZoom(viewId: Int64, point: LatLngDto, zoom: Double, duration: Int64?, completion: @escaping (Result) -> Void) - func animateCameraByScroll(viewId: Int64, scrollByDx: Double, scrollByDy: Double, duration: Int64?, completion: @escaping (Result) -> Void) - func animateCameraByZoom(viewId: Int64, zoomBy: Double, focusDx: Double?, focusDy: Double?, duration: Int64?, completion: @escaping (Result) -> Void) - func animateCameraToZoom(viewId: Int64, zoom: Double, duration: Int64?, completion: @escaping (Result) -> Void) + func animateCameraToCameraPosition( + viewId: Int64, cameraPosition: CameraPositionDto, duration: Int64?, + completion: @escaping (Result) -> Void) + func animateCameraToLatLng( + viewId: Int64, point: LatLngDto, duration: Int64?, + completion: @escaping (Result) -> Void) + func animateCameraToLatLngBounds( + viewId: Int64, bounds: LatLngBoundsDto, padding: Double, duration: Int64?, + completion: @escaping (Result) -> Void) + func animateCameraToLatLngZoom( + viewId: Int64, point: LatLngDto, zoom: Double, duration: Int64?, + completion: @escaping (Result) -> Void) + func animateCameraByScroll( + viewId: Int64, scrollByDx: Double, scrollByDy: Double, duration: Int64?, + completion: @escaping (Result) -> Void) + func animateCameraByZoom( + viewId: Int64, zoomBy: Double, focusDx: Double?, focusDy: Double?, duration: Int64?, + completion: @escaping (Result) -> Void) + func animateCameraToZoom( + viewId: Int64, zoom: Double, duration: Int64?, + completion: @escaping (Result) -> Void) func moveCameraToCameraPosition(viewId: Int64, cameraPosition: CameraPositionDto) throws func moveCameraToLatLng(viewId: Int64, point: LatLngDto) throws func moveCameraToLatLngBounds(viewId: Int64, bounds: LatLngBoundsDto, padding: Double) throws @@ -3121,9 +3156,13 @@ protocol MapViewApi { class MapViewApiSetup { static var codec: FlutterStandardMessageCodec { MessagesPigeonCodec.shared } /// Sets up an instance of `MapViewApi` to handle messages through the `binaryMessenger`. - static func setUp(binaryMessenger: FlutterBinaryMessenger, api: MapViewApi?, messageChannelSuffix: String = "") { + static func setUp( + binaryMessenger: FlutterBinaryMessenger, api: MapViewApi?, messageChannelSuffix: String = "" + ) { let channelSuffix = messageChannelSuffix.count > 0 ? ".\(messageChannelSuffix)" : "" - let awaitMapReadyChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.awaitMapReady\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let awaitMapReadyChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.awaitMapReady\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { awaitMapReadyChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3140,7 +3179,10 @@ class MapViewApiSetup { } else { awaitMapReadyChannel.setMessageHandler(nil) } - let isMyLocationEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMyLocationEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let isMyLocationEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMyLocationEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { isMyLocationEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3155,7 +3197,10 @@ class MapViewApiSetup { } else { isMyLocationEnabledChannel.setMessageHandler(nil) } - let setMyLocationEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMyLocationEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let setMyLocationEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMyLocationEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { setMyLocationEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3171,7 +3216,9 @@ class MapViewApiSetup { } else { setMyLocationEnabledChannel.setMessageHandler(nil) } - let getMyLocationChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMyLocation\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let getMyLocationChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMyLocation\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { getMyLocationChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3186,7 +3233,9 @@ class MapViewApiSetup { } else { getMyLocationChannel.setMessageHandler(nil) } - let getMapTypeChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMapType\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let getMapTypeChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMapType\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { getMapTypeChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3201,7 +3250,9 @@ class MapViewApiSetup { } else { getMapTypeChannel.setMessageHandler(nil) } - let setMapTypeChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapType\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let setMapTypeChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapType\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { setMapTypeChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3217,7 +3268,9 @@ class MapViewApiSetup { } else { setMapTypeChannel.setMessageHandler(nil) } - let setMapStyleChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapStyle\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let setMapStyleChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapStyle\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { setMapStyleChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3233,7 +3286,10 @@ class MapViewApiSetup { } else { setMapStyleChannel.setMessageHandler(nil) } - let isNavigationTripProgressBarEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationTripProgressBarEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let isNavigationTripProgressBarEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationTripProgressBarEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { isNavigationTripProgressBarEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3248,7 +3304,10 @@ class MapViewApiSetup { } else { isNavigationTripProgressBarEnabledChannel.setMessageHandler(nil) } - let setNavigationTripProgressBarEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationTripProgressBarEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let setNavigationTripProgressBarEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationTripProgressBarEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { setNavigationTripProgressBarEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3264,7 +3323,10 @@ class MapViewApiSetup { } else { setNavigationTripProgressBarEnabledChannel.setMessageHandler(nil) } - let isNavigationHeaderEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationHeaderEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let isNavigationHeaderEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationHeaderEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { isNavigationHeaderEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3279,7 +3341,10 @@ class MapViewApiSetup { } else { isNavigationHeaderEnabledChannel.setMessageHandler(nil) } - let setNavigationHeaderEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationHeaderEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let setNavigationHeaderEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationHeaderEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { setNavigationHeaderEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3295,7 +3360,10 @@ class MapViewApiSetup { } else { setNavigationHeaderEnabledChannel.setMessageHandler(nil) } - let getNavigationHeaderStylingOptionsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getNavigationHeaderStylingOptions\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let getNavigationHeaderStylingOptionsChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getNavigationHeaderStylingOptions\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { getNavigationHeaderStylingOptionsChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3310,14 +3378,18 @@ class MapViewApiSetup { } else { getNavigationHeaderStylingOptionsChannel.setMessageHandler(nil) } - let setNavigationHeaderStylingOptionsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationHeaderStylingOptions\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let setNavigationHeaderStylingOptionsChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationHeaderStylingOptions\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { setNavigationHeaderStylingOptionsChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] as! Int64 let stylingOptionsArg = args[1] as! NavigationHeaderStylingOptionsDto do { - try api.setNavigationHeaderStylingOptions(viewId: viewIdArg, stylingOptions: stylingOptionsArg) + try api.setNavigationHeaderStylingOptions( + viewId: viewIdArg, stylingOptions: stylingOptionsArg) reply(wrapResult(nil)) } catch { reply(wrapError(error)) @@ -3326,7 +3398,10 @@ class MapViewApiSetup { } else { setNavigationHeaderStylingOptionsChannel.setMessageHandler(nil) } - let isNavigationFooterEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationFooterEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let isNavigationFooterEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationFooterEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { isNavigationFooterEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3341,7 +3416,10 @@ class MapViewApiSetup { } else { isNavigationFooterEnabledChannel.setMessageHandler(nil) } - let setNavigationFooterEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationFooterEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let setNavigationFooterEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationFooterEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { setNavigationFooterEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3357,7 +3435,10 @@ class MapViewApiSetup { } else { setNavigationFooterEnabledChannel.setMessageHandler(nil) } - let isRecenterButtonEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isRecenterButtonEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let isRecenterButtonEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isRecenterButtonEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { isRecenterButtonEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3372,7 +3453,10 @@ class MapViewApiSetup { } else { isRecenterButtonEnabledChannel.setMessageHandler(nil) } - let setRecenterButtonEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setRecenterButtonEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let setRecenterButtonEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setRecenterButtonEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { setRecenterButtonEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3388,7 +3472,10 @@ class MapViewApiSetup { } else { setRecenterButtonEnabledChannel.setMessageHandler(nil) } - let isSpeedLimitIconEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isSpeedLimitIconEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let isSpeedLimitIconEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isSpeedLimitIconEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { isSpeedLimitIconEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3403,7 +3490,10 @@ class MapViewApiSetup { } else { isSpeedLimitIconEnabledChannel.setMessageHandler(nil) } - let setSpeedLimitIconEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setSpeedLimitIconEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let setSpeedLimitIconEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setSpeedLimitIconEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { setSpeedLimitIconEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3419,7 +3509,10 @@ class MapViewApiSetup { } else { setSpeedLimitIconEnabledChannel.setMessageHandler(nil) } - let isSpeedometerEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isSpeedometerEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let isSpeedometerEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isSpeedometerEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { isSpeedometerEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3434,7 +3527,10 @@ class MapViewApiSetup { } else { isSpeedometerEnabledChannel.setMessageHandler(nil) } - let setSpeedometerEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setSpeedometerEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let setSpeedometerEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setSpeedometerEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { setSpeedometerEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3450,7 +3546,10 @@ class MapViewApiSetup { } else { setSpeedometerEnabledChannel.setMessageHandler(nil) } - let isNavigationUIEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationUIEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let isNavigationUIEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationUIEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { isNavigationUIEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3465,7 +3564,10 @@ class MapViewApiSetup { } else { isNavigationUIEnabledChannel.setMessageHandler(nil) } - let setNavigationUIEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationUIEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let setNavigationUIEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationUIEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { setNavigationUIEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3481,7 +3583,10 @@ class MapViewApiSetup { } else { setNavigationUIEnabledChannel.setMessageHandler(nil) } - let isMyLocationButtonEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMyLocationButtonEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let isMyLocationButtonEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMyLocationButtonEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { isMyLocationButtonEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3496,7 +3601,10 @@ class MapViewApiSetup { } else { isMyLocationButtonEnabledChannel.setMessageHandler(nil) } - let setMyLocationButtonEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMyLocationButtonEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let setMyLocationButtonEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMyLocationButtonEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { setMyLocationButtonEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3512,7 +3620,10 @@ class MapViewApiSetup { } else { setMyLocationButtonEnabledChannel.setMessageHandler(nil) } - let isConsumeMyLocationButtonClickEventsEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isConsumeMyLocationButtonClickEventsEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let isConsumeMyLocationButtonClickEventsEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isConsumeMyLocationButtonClickEventsEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { isConsumeMyLocationButtonClickEventsEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3527,14 +3638,18 @@ class MapViewApiSetup { } else { isConsumeMyLocationButtonClickEventsEnabledChannel.setMessageHandler(nil) } - let setConsumeMyLocationButtonClickEventsEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setConsumeMyLocationButtonClickEventsEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let setConsumeMyLocationButtonClickEventsEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setConsumeMyLocationButtonClickEventsEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { setConsumeMyLocationButtonClickEventsEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] as! Int64 let enabledArg = args[1] as! Bool do { - try api.setConsumeMyLocationButtonClickEventsEnabled(viewId: viewIdArg, enabled: enabledArg) + try api.setConsumeMyLocationButtonClickEventsEnabled( + viewId: viewIdArg, enabled: enabledArg) reply(wrapResult(nil)) } catch { reply(wrapError(error)) @@ -3543,7 +3658,10 @@ class MapViewApiSetup { } else { setConsumeMyLocationButtonClickEventsEnabledChannel.setMessageHandler(nil) } - let isZoomGesturesEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isZoomGesturesEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let isZoomGesturesEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isZoomGesturesEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { isZoomGesturesEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3558,7 +3676,10 @@ class MapViewApiSetup { } else { isZoomGesturesEnabledChannel.setMessageHandler(nil) } - let setZoomGesturesEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setZoomGesturesEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let setZoomGesturesEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setZoomGesturesEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { setZoomGesturesEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3574,7 +3695,10 @@ class MapViewApiSetup { } else { setZoomGesturesEnabledChannel.setMessageHandler(nil) } - let isZoomControlsEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isZoomControlsEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let isZoomControlsEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isZoomControlsEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { isZoomControlsEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3589,7 +3713,10 @@ class MapViewApiSetup { } else { isZoomControlsEnabledChannel.setMessageHandler(nil) } - let setZoomControlsEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setZoomControlsEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let setZoomControlsEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setZoomControlsEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { setZoomControlsEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3605,7 +3732,10 @@ class MapViewApiSetup { } else { setZoomControlsEnabledChannel.setMessageHandler(nil) } - let isCompassEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isCompassEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let isCompassEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isCompassEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { isCompassEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3620,7 +3750,10 @@ class MapViewApiSetup { } else { isCompassEnabledChannel.setMessageHandler(nil) } - let setCompassEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setCompassEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let setCompassEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setCompassEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { setCompassEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3636,7 +3769,10 @@ class MapViewApiSetup { } else { setCompassEnabledChannel.setMessageHandler(nil) } - let isRotateGesturesEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isRotateGesturesEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let isRotateGesturesEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isRotateGesturesEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { isRotateGesturesEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3651,7 +3787,10 @@ class MapViewApiSetup { } else { isRotateGesturesEnabledChannel.setMessageHandler(nil) } - let setRotateGesturesEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setRotateGesturesEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let setRotateGesturesEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setRotateGesturesEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { setRotateGesturesEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3667,7 +3806,10 @@ class MapViewApiSetup { } else { setRotateGesturesEnabledChannel.setMessageHandler(nil) } - let isScrollGesturesEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isScrollGesturesEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let isScrollGesturesEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isScrollGesturesEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { isScrollGesturesEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3682,7 +3824,10 @@ class MapViewApiSetup { } else { isScrollGesturesEnabledChannel.setMessageHandler(nil) } - let setScrollGesturesEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setScrollGesturesEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let setScrollGesturesEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setScrollGesturesEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { setScrollGesturesEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3698,7 +3843,10 @@ class MapViewApiSetup { } else { setScrollGesturesEnabledChannel.setMessageHandler(nil) } - let isScrollGesturesEnabledDuringRotateOrZoomChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isScrollGesturesEnabledDuringRotateOrZoom\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let isScrollGesturesEnabledDuringRotateOrZoomChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isScrollGesturesEnabledDuringRotateOrZoom\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { isScrollGesturesEnabledDuringRotateOrZoomChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3713,7 +3861,10 @@ class MapViewApiSetup { } else { isScrollGesturesEnabledDuringRotateOrZoomChannel.setMessageHandler(nil) } - let setScrollGesturesDuringRotateOrZoomEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setScrollGesturesDuringRotateOrZoomEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let setScrollGesturesDuringRotateOrZoomEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setScrollGesturesDuringRotateOrZoomEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { setScrollGesturesDuringRotateOrZoomEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3729,7 +3880,10 @@ class MapViewApiSetup { } else { setScrollGesturesDuringRotateOrZoomEnabledChannel.setMessageHandler(nil) } - let isTiltGesturesEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTiltGesturesEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let isTiltGesturesEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTiltGesturesEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { isTiltGesturesEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3744,7 +3898,10 @@ class MapViewApiSetup { } else { isTiltGesturesEnabledChannel.setMessageHandler(nil) } - let setTiltGesturesEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTiltGesturesEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let setTiltGesturesEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTiltGesturesEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { setTiltGesturesEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3760,7 +3917,10 @@ class MapViewApiSetup { } else { setTiltGesturesEnabledChannel.setMessageHandler(nil) } - let isMapToolbarEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMapToolbarEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let isMapToolbarEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMapToolbarEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { isMapToolbarEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3775,7 +3935,10 @@ class MapViewApiSetup { } else { isMapToolbarEnabledChannel.setMessageHandler(nil) } - let setMapToolbarEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapToolbarEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let setMapToolbarEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapToolbarEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { setMapToolbarEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3791,7 +3954,10 @@ class MapViewApiSetup { } else { setMapToolbarEnabledChannel.setMessageHandler(nil) } - let isTrafficEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let isTrafficEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { isTrafficEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3806,7 +3972,10 @@ class MapViewApiSetup { } else { isTrafficEnabledChannel.setMessageHandler(nil) } - let setTrafficEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let setTrafficEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { setTrafficEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3822,7 +3991,10 @@ class MapViewApiSetup { } else { setTrafficEnabledChannel.setMessageHandler(nil) } - let isTrafficIncidentCardsEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficIncidentCardsEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let isTrafficIncidentCardsEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficIncidentCardsEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { isTrafficIncidentCardsEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3837,7 +4009,10 @@ class MapViewApiSetup { } else { isTrafficIncidentCardsEnabledChannel.setMessageHandler(nil) } - let setTrafficIncidentCardsEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficIncidentCardsEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let setTrafficIncidentCardsEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficIncidentCardsEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { setTrafficIncidentCardsEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3853,7 +4028,10 @@ class MapViewApiSetup { } else { setTrafficIncidentCardsEnabledChannel.setMessageHandler(nil) } - let isTrafficPromptsEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficPromptsEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let isTrafficPromptsEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficPromptsEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { isTrafficPromptsEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3868,7 +4046,10 @@ class MapViewApiSetup { } else { isTrafficPromptsEnabledChannel.setMessageHandler(nil) } - let setTrafficPromptsEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficPromptsEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let setTrafficPromptsEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficPromptsEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { setTrafficPromptsEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3884,7 +4065,10 @@ class MapViewApiSetup { } else { setTrafficPromptsEnabledChannel.setMessageHandler(nil) } - let isReportIncidentButtonEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isReportIncidentButtonEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let isReportIncidentButtonEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isReportIncidentButtonEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { isReportIncidentButtonEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3899,7 +4083,10 @@ class MapViewApiSetup { } else { isReportIncidentButtonEnabledChannel.setMessageHandler(nil) } - let setReportIncidentButtonEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setReportIncidentButtonEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let setReportIncidentButtonEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setReportIncidentButtonEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { setReportIncidentButtonEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3915,7 +4102,10 @@ class MapViewApiSetup { } else { setReportIncidentButtonEnabledChannel.setMessageHandler(nil) } - let isIncidentReportingAvailableChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isIncidentReportingAvailable\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let isIncidentReportingAvailableChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isIncidentReportingAvailable\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { isIncidentReportingAvailableChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3930,7 +4120,10 @@ class MapViewApiSetup { } else { isIncidentReportingAvailableChannel.setMessageHandler(nil) } - let showReportIncidentsPanelChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.showReportIncidentsPanel\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let showReportIncidentsPanelChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.showReportIncidentsPanel\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { showReportIncidentsPanelChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3945,7 +4138,10 @@ class MapViewApiSetup { } else { showReportIncidentsPanelChannel.setMessageHandler(nil) } - let isBuildingsEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isBuildingsEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let isBuildingsEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isBuildingsEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { isBuildingsEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3960,7 +4156,10 @@ class MapViewApiSetup { } else { isBuildingsEnabledChannel.setMessageHandler(nil) } - let setBuildingsEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setBuildingsEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let setBuildingsEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setBuildingsEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { setBuildingsEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3976,7 +4175,10 @@ class MapViewApiSetup { } else { setBuildingsEnabledChannel.setMessageHandler(nil) } - let isIndoorEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isIndoorEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let isIndoorEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isIndoorEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { isIndoorEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3991,7 +4193,10 @@ class MapViewApiSetup { } else { isIndoorEnabledChannel.setMessageHandler(nil) } - let setIndoorEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setIndoorEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let setIndoorEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setIndoorEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { setIndoorEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4007,7 +4212,10 @@ class MapViewApiSetup { } else { setIndoorEnabledChannel.setMessageHandler(nil) } - let isIndoorLevelPickerEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isIndoorLevelPickerEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let isIndoorLevelPickerEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isIndoorLevelPickerEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { isIndoorLevelPickerEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4022,7 +4230,10 @@ class MapViewApiSetup { } else { isIndoorLevelPickerEnabledChannel.setMessageHandler(nil) } - let setIndoorLevelPickerEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setIndoorLevelPickerEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let setIndoorLevelPickerEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setIndoorLevelPickerEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { setIndoorLevelPickerEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4038,7 +4249,10 @@ class MapViewApiSetup { } else { setIndoorLevelPickerEnabledChannel.setMessageHandler(nil) } - let getFocusedIndoorBuildingChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getFocusedIndoorBuilding\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let getFocusedIndoorBuildingChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getFocusedIndoorBuilding\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { getFocusedIndoorBuildingChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4056,7 +4270,10 @@ class MapViewApiSetup { /// Activates the indoor level at [levelIndex] within the currently focused /// indoor building. Throws if no building is focused or the index is out of /// range. - let activateIndoorLevelChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.activateIndoorLevel\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let activateIndoorLevelChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.activateIndoorLevel\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { activateIndoorLevelChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4072,7 +4289,10 @@ class MapViewApiSetup { } else { activateIndoorLevelChannel.setMessageHandler(nil) } - let getCameraPositionChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getCameraPosition\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let getCameraPositionChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getCameraPosition\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { getCameraPositionChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4087,7 +4307,10 @@ class MapViewApiSetup { } else { getCameraPositionChannel.setMessageHandler(nil) } - let getVisibleRegionChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getVisibleRegion\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let getVisibleRegionChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getVisibleRegion\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { getVisibleRegionChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4102,7 +4325,10 @@ class MapViewApiSetup { } else { getVisibleRegionChannel.setMessageHandler(nil) } - let followMyLocationChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.followMyLocation\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let followMyLocationChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.followMyLocation\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { followMyLocationChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4110,7 +4336,8 @@ class MapViewApiSetup { let perspectiveArg = args[1] as! CameraPerspectiveDto let zoomLevelArg: Double? = nilOrValue(args[2]) do { - try api.followMyLocation(viewId: viewIdArg, perspective: perspectiveArg, zoomLevel: zoomLevelArg) + try api.followMyLocation( + viewId: viewIdArg, perspective: perspectiveArg, zoomLevel: zoomLevelArg) reply(wrapResult(nil)) } catch { reply(wrapError(error)) @@ -4119,14 +4346,19 @@ class MapViewApiSetup { } else { followMyLocationChannel.setMessageHandler(nil) } - let animateCameraToCameraPositionChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToCameraPosition\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let animateCameraToCameraPositionChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToCameraPosition\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { animateCameraToCameraPositionChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] as! Int64 let cameraPositionArg = args[1] as! CameraPositionDto let durationArg: Int64? = nilOrValue(args[2]) - api.animateCameraToCameraPosition(viewId: viewIdArg, cameraPosition: cameraPositionArg, duration: durationArg) { result in + api.animateCameraToCameraPosition( + viewId: viewIdArg, cameraPosition: cameraPositionArg, duration: durationArg + ) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -4138,14 +4370,18 @@ class MapViewApiSetup { } else { animateCameraToCameraPositionChannel.setMessageHandler(nil) } - let animateCameraToLatLngChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLng\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let animateCameraToLatLngChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLng\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { animateCameraToLatLngChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] as! Int64 let pointArg = args[1] as! LatLngDto let durationArg: Int64? = nilOrValue(args[2]) - api.animateCameraToLatLng(viewId: viewIdArg, point: pointArg, duration: durationArg) { result in + api.animateCameraToLatLng(viewId: viewIdArg, point: pointArg, duration: durationArg) { + result in switch result { case .success(let res): reply(wrapResult(res)) @@ -4157,7 +4393,10 @@ class MapViewApiSetup { } else { animateCameraToLatLngChannel.setMessageHandler(nil) } - let animateCameraToLatLngBoundsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLngBounds\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let animateCameraToLatLngBoundsChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLngBounds\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { animateCameraToLatLngBoundsChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4165,7 +4404,9 @@ class MapViewApiSetup { let boundsArg = args[1] as! LatLngBoundsDto let paddingArg = args[2] as! Double let durationArg: Int64? = nilOrValue(args[3]) - api.animateCameraToLatLngBounds(viewId: viewIdArg, bounds: boundsArg, padding: paddingArg, duration: durationArg) { result in + api.animateCameraToLatLngBounds( + viewId: viewIdArg, bounds: boundsArg, padding: paddingArg, duration: durationArg + ) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -4177,7 +4418,10 @@ class MapViewApiSetup { } else { animateCameraToLatLngBoundsChannel.setMessageHandler(nil) } - let animateCameraToLatLngZoomChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLngZoom\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let animateCameraToLatLngZoomChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLngZoom\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { animateCameraToLatLngZoomChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4185,7 +4429,9 @@ class MapViewApiSetup { let pointArg = args[1] as! LatLngDto let zoomArg = args[2] as! Double let durationArg: Int64? = nilOrValue(args[3]) - api.animateCameraToLatLngZoom(viewId: viewIdArg, point: pointArg, zoom: zoomArg, duration: durationArg) { result in + api.animateCameraToLatLngZoom( + viewId: viewIdArg, point: pointArg, zoom: zoomArg, duration: durationArg + ) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -4197,7 +4443,10 @@ class MapViewApiSetup { } else { animateCameraToLatLngZoomChannel.setMessageHandler(nil) } - let animateCameraByScrollChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraByScroll\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let animateCameraByScrollChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraByScroll\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { animateCameraByScrollChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4205,7 +4454,10 @@ class MapViewApiSetup { let scrollByDxArg = args[1] as! Double let scrollByDyArg = args[2] as! Double let durationArg: Int64? = nilOrValue(args[3]) - api.animateCameraByScroll(viewId: viewIdArg, scrollByDx: scrollByDxArg, scrollByDy: scrollByDyArg, duration: durationArg) { result in + api.animateCameraByScroll( + viewId: viewIdArg, scrollByDx: scrollByDxArg, scrollByDy: scrollByDyArg, + duration: durationArg + ) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -4217,7 +4469,10 @@ class MapViewApiSetup { } else { animateCameraByScrollChannel.setMessageHandler(nil) } - let animateCameraByZoomChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraByZoom\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let animateCameraByZoomChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraByZoom\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { animateCameraByZoomChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4226,7 +4481,10 @@ class MapViewApiSetup { let focusDxArg: Double? = nilOrValue(args[2]) let focusDyArg: Double? = nilOrValue(args[3]) let durationArg: Int64? = nilOrValue(args[4]) - api.animateCameraByZoom(viewId: viewIdArg, zoomBy: zoomByArg, focusDx: focusDxArg, focusDy: focusDyArg, duration: durationArg) { result in + api.animateCameraByZoom( + viewId: viewIdArg, zoomBy: zoomByArg, focusDx: focusDxArg, focusDy: focusDyArg, + duration: durationArg + ) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -4238,7 +4496,10 @@ class MapViewApiSetup { } else { animateCameraByZoomChannel.setMessageHandler(nil) } - let animateCameraToZoomChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToZoom\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let animateCameraToZoomChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToZoom\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { animateCameraToZoomChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4257,7 +4518,10 @@ class MapViewApiSetup { } else { animateCameraToZoomChannel.setMessageHandler(nil) } - let moveCameraToCameraPositionChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToCameraPosition\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let moveCameraToCameraPositionChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToCameraPosition\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { moveCameraToCameraPositionChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4273,7 +4537,10 @@ class MapViewApiSetup { } else { moveCameraToCameraPositionChannel.setMessageHandler(nil) } - let moveCameraToLatLngChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLng\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let moveCameraToLatLngChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLng\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { moveCameraToLatLngChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4289,7 +4556,10 @@ class MapViewApiSetup { } else { moveCameraToLatLngChannel.setMessageHandler(nil) } - let moveCameraToLatLngBoundsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLngBounds\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let moveCameraToLatLngBoundsChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLngBounds\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { moveCameraToLatLngBoundsChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4297,7 +4567,8 @@ class MapViewApiSetup { let boundsArg = args[1] as! LatLngBoundsDto let paddingArg = args[2] as! Double do { - try api.moveCameraToLatLngBounds(viewId: viewIdArg, bounds: boundsArg, padding: paddingArg) + try api.moveCameraToLatLngBounds( + viewId: viewIdArg, bounds: boundsArg, padding: paddingArg) reply(wrapResult(nil)) } catch { reply(wrapError(error)) @@ -4306,7 +4577,10 @@ class MapViewApiSetup { } else { moveCameraToLatLngBoundsChannel.setMessageHandler(nil) } - let moveCameraToLatLngZoomChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLngZoom\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let moveCameraToLatLngZoomChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLngZoom\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { moveCameraToLatLngZoomChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4323,7 +4597,10 @@ class MapViewApiSetup { } else { moveCameraToLatLngZoomChannel.setMessageHandler(nil) } - let moveCameraByScrollChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraByScroll\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let moveCameraByScrollChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraByScroll\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { moveCameraByScrollChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4331,7 +4608,8 @@ class MapViewApiSetup { let scrollByDxArg = args[1] as! Double let scrollByDyArg = args[2] as! Double do { - try api.moveCameraByScroll(viewId: viewIdArg, scrollByDx: scrollByDxArg, scrollByDy: scrollByDyArg) + try api.moveCameraByScroll( + viewId: viewIdArg, scrollByDx: scrollByDxArg, scrollByDy: scrollByDyArg) reply(wrapResult(nil)) } catch { reply(wrapError(error)) @@ -4340,7 +4618,10 @@ class MapViewApiSetup { } else { moveCameraByScrollChannel.setMessageHandler(nil) } - let moveCameraByZoomChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraByZoom\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let moveCameraByZoomChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraByZoom\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { moveCameraByZoomChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4349,7 +4630,8 @@ class MapViewApiSetup { let focusDxArg: Double? = nilOrValue(args[2]) let focusDyArg: Double? = nilOrValue(args[3]) do { - try api.moveCameraByZoom(viewId: viewIdArg, zoomBy: zoomByArg, focusDx: focusDxArg, focusDy: focusDyArg) + try api.moveCameraByZoom( + viewId: viewIdArg, zoomBy: zoomByArg, focusDx: focusDxArg, focusDy: focusDyArg) reply(wrapResult(nil)) } catch { reply(wrapError(error)) @@ -4358,7 +4640,10 @@ class MapViewApiSetup { } else { moveCameraByZoomChannel.setMessageHandler(nil) } - let moveCameraToZoomChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToZoom\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let moveCameraToZoomChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToZoom\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { moveCameraToZoomChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4374,7 +4659,10 @@ class MapViewApiSetup { } else { moveCameraToZoomChannel.setMessageHandler(nil) } - let showRouteOverviewChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.showRouteOverview\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let showRouteOverviewChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.showRouteOverview\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { showRouteOverviewChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4389,7 +4677,10 @@ class MapViewApiSetup { } else { showRouteOverviewChannel.setMessageHandler(nil) } - let getMinZoomPreferenceChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMinZoomPreference\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let getMinZoomPreferenceChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMinZoomPreference\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { getMinZoomPreferenceChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4404,7 +4695,10 @@ class MapViewApiSetup { } else { getMinZoomPreferenceChannel.setMessageHandler(nil) } - let getMaxZoomPreferenceChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMaxZoomPreference\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let getMaxZoomPreferenceChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMaxZoomPreference\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { getMaxZoomPreferenceChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4419,7 +4713,10 @@ class MapViewApiSetup { } else { getMaxZoomPreferenceChannel.setMessageHandler(nil) } - let resetMinMaxZoomPreferenceChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.resetMinMaxZoomPreference\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let resetMinMaxZoomPreferenceChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.resetMinMaxZoomPreference\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { resetMinMaxZoomPreferenceChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4434,7 +4731,10 @@ class MapViewApiSetup { } else { resetMinMaxZoomPreferenceChannel.setMessageHandler(nil) } - let setMinZoomPreferenceChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMinZoomPreference\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let setMinZoomPreferenceChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMinZoomPreference\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { setMinZoomPreferenceChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4450,7 +4750,10 @@ class MapViewApiSetup { } else { setMinZoomPreferenceChannel.setMessageHandler(nil) } - let setMaxZoomPreferenceChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMaxZoomPreference\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let setMaxZoomPreferenceChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMaxZoomPreference\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { setMaxZoomPreferenceChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4466,7 +4769,9 @@ class MapViewApiSetup { } else { setMaxZoomPreferenceChannel.setMessageHandler(nil) } - let getMarkersChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMarkers\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let getMarkersChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMarkers\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { getMarkersChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4481,7 +4786,9 @@ class MapViewApiSetup { } else { getMarkersChannel.setMessageHandler(nil) } - let addMarkersChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addMarkers\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let addMarkersChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addMarkers\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { addMarkersChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4497,7 +4804,9 @@ class MapViewApiSetup { } else { addMarkersChannel.setMessageHandler(nil) } - let updateMarkersChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updateMarkers\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let updateMarkersChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updateMarkers\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { updateMarkersChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4513,7 +4822,9 @@ class MapViewApiSetup { } else { updateMarkersChannel.setMessageHandler(nil) } - let removeMarkersChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removeMarkers\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let removeMarkersChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removeMarkers\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { removeMarkersChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4529,7 +4840,9 @@ class MapViewApiSetup { } else { removeMarkersChannel.setMessageHandler(nil) } - let clearMarkersChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearMarkers\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let clearMarkersChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearMarkers\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { clearMarkersChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4544,7 +4857,9 @@ class MapViewApiSetup { } else { clearMarkersChannel.setMessageHandler(nil) } - let clearChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clear\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let clearChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clear\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { clearChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4559,7 +4874,9 @@ class MapViewApiSetup { } else { clearChannel.setMessageHandler(nil) } - let getPolygonsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPolygons\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let getPolygonsChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPolygons\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { getPolygonsChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4574,7 +4891,9 @@ class MapViewApiSetup { } else { getPolygonsChannel.setMessageHandler(nil) } - let addPolygonsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addPolygons\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let addPolygonsChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addPolygons\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { addPolygonsChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4590,7 +4909,10 @@ class MapViewApiSetup { } else { addPolygonsChannel.setMessageHandler(nil) } - let updatePolygonsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updatePolygons\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let updatePolygonsChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updatePolygons\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { updatePolygonsChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4606,7 +4928,10 @@ class MapViewApiSetup { } else { updatePolygonsChannel.setMessageHandler(nil) } - let removePolygonsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removePolygons\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let removePolygonsChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removePolygons\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { removePolygonsChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4622,7 +4947,9 @@ class MapViewApiSetup { } else { removePolygonsChannel.setMessageHandler(nil) } - let clearPolygonsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearPolygons\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let clearPolygonsChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearPolygons\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { clearPolygonsChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4637,7 +4964,9 @@ class MapViewApiSetup { } else { clearPolygonsChannel.setMessageHandler(nil) } - let getPolylinesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPolylines\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let getPolylinesChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPolylines\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { getPolylinesChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4652,7 +4981,9 @@ class MapViewApiSetup { } else { getPolylinesChannel.setMessageHandler(nil) } - let addPolylinesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addPolylines\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let addPolylinesChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addPolylines\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { addPolylinesChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4668,7 +4999,10 @@ class MapViewApiSetup { } else { addPolylinesChannel.setMessageHandler(nil) } - let updatePolylinesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updatePolylines\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let updatePolylinesChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updatePolylines\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { updatePolylinesChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4684,7 +5018,10 @@ class MapViewApiSetup { } else { updatePolylinesChannel.setMessageHandler(nil) } - let removePolylinesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removePolylines\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let removePolylinesChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removePolylines\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { removePolylinesChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4700,7 +5037,10 @@ class MapViewApiSetup { } else { removePolylinesChannel.setMessageHandler(nil) } - let clearPolylinesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearPolylines\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let clearPolylinesChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearPolylines\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { clearPolylinesChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4715,7 +5055,9 @@ class MapViewApiSetup { } else { clearPolylinesChannel.setMessageHandler(nil) } - let getCirclesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getCircles\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let getCirclesChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getCircles\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { getCirclesChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4730,7 +5072,9 @@ class MapViewApiSetup { } else { getCirclesChannel.setMessageHandler(nil) } - let addCirclesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addCircles\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let addCirclesChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addCircles\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { addCirclesChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4746,7 +5090,9 @@ class MapViewApiSetup { } else { addCirclesChannel.setMessageHandler(nil) } - let updateCirclesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updateCircles\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let updateCirclesChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updateCircles\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { updateCirclesChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4762,7 +5108,9 @@ class MapViewApiSetup { } else { updateCirclesChannel.setMessageHandler(nil) } - let removeCirclesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removeCircles\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let removeCirclesChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removeCircles\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { removeCirclesChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4778,7 +5126,9 @@ class MapViewApiSetup { } else { removeCirclesChannel.setMessageHandler(nil) } - let clearCirclesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearCircles\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let clearCirclesChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearCircles\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { clearCirclesChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4793,7 +5143,10 @@ class MapViewApiSetup { } else { clearCirclesChannel.setMessageHandler(nil) } - let enableOnCameraChangedEventsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.enableOnCameraChangedEvents\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let enableOnCameraChangedEventsChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.enableOnCameraChangedEvents\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { enableOnCameraChangedEventsChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4808,7 +5161,9 @@ class MapViewApiSetup { } else { enableOnCameraChangedEventsChannel.setMessageHandler(nil) } - let setPaddingChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setPadding\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let setPaddingChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setPadding\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { setPaddingChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4824,7 +5179,9 @@ class MapViewApiSetup { } else { setPaddingChannel.setMessageHandler(nil) } - let getPaddingChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPadding\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let getPaddingChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPadding\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { getPaddingChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4839,7 +5196,10 @@ class MapViewApiSetup { } else { getPaddingChannel.setMessageHandler(nil) } - let getMapColorSchemeChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMapColorScheme\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let getMapColorSchemeChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMapColorScheme\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { getMapColorSchemeChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4854,7 +5214,10 @@ class MapViewApiSetup { } else { getMapColorSchemeChannel.setMessageHandler(nil) } - let setMapColorSchemeChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapColorScheme\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let setMapColorSchemeChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapColorScheme\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { setMapColorSchemeChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4870,7 +5233,10 @@ class MapViewApiSetup { } else { setMapColorSchemeChannel.setMessageHandler(nil) } - let getForceNightModeChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getForceNightMode\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let getForceNightModeChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getForceNightMode\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { getForceNightModeChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4885,7 +5251,10 @@ class MapViewApiSetup { } else { getForceNightModeChannel.setMessageHandler(nil) } - let setForceNightModeChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setForceNightMode\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let setForceNightModeChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setForceNightMode\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { setForceNightModeChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4905,20 +5274,30 @@ class MapViewApiSetup { } /// Generated protocol from Pigeon that represents a handler of messages from Flutter. protocol ImageRegistryApi { - func registerBitmapImage(imageId: String, bytes: FlutterStandardTypedData, imagePixelRatio: Double, width: Double?, height: Double?) throws -> ImageDescriptorDto + func registerBitmapImage( + imageId: String, bytes: FlutterStandardTypedData, imagePixelRatio: Double, width: Double?, + height: Double? + ) throws -> ImageDescriptorDto func unregisterImage(imageDescriptor: ImageDescriptorDto) throws func getRegisteredImages() throws -> [ImageDescriptorDto] func clearRegisteredImages(filter: RegisteredImageTypeDto?) throws - func getRegisteredImageData(imageDescriptor: ImageDescriptorDto) throws -> FlutterStandardTypedData? + func getRegisteredImageData(imageDescriptor: ImageDescriptorDto) throws + -> FlutterStandardTypedData? } /// Generated setup class from Pigeon to handle messages through the `binaryMessenger`. class ImageRegistryApiSetup { static var codec: FlutterStandardMessageCodec { MessagesPigeonCodec.shared } /// Sets up an instance of `ImageRegistryApi` to handle messages through the `binaryMessenger`. - static func setUp(binaryMessenger: FlutterBinaryMessenger, api: ImageRegistryApi?, messageChannelSuffix: String = "") { + static func setUp( + binaryMessenger: FlutterBinaryMessenger, api: ImageRegistryApi?, + messageChannelSuffix: String = "" + ) { let channelSuffix = messageChannelSuffix.count > 0 ? ".\(messageChannelSuffix)" : "" - let registerBitmapImageChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.registerBitmapImage\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let registerBitmapImageChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.registerBitmapImage\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { registerBitmapImageChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4928,7 +5307,9 @@ class ImageRegistryApiSetup { let widthArg: Double? = nilOrValue(args[3]) let heightArg: Double? = nilOrValue(args[4]) do { - let result = try api.registerBitmapImage(imageId: imageIdArg, bytes: bytesArg, imagePixelRatio: imagePixelRatioArg, width: widthArg, height: heightArg) + let result = try api.registerBitmapImage( + imageId: imageIdArg, bytes: bytesArg, imagePixelRatio: imagePixelRatioArg, + width: widthArg, height: heightArg) reply(wrapResult(result)) } catch { reply(wrapError(error)) @@ -4937,7 +5318,10 @@ class ImageRegistryApiSetup { } else { registerBitmapImageChannel.setMessageHandler(nil) } - let unregisterImageChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.unregisterImage\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let unregisterImageChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.unregisterImage\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { unregisterImageChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4952,7 +5336,10 @@ class ImageRegistryApiSetup { } else { unregisterImageChannel.setMessageHandler(nil) } - let getRegisteredImagesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.getRegisteredImages\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let getRegisteredImagesChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.getRegisteredImages\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { getRegisteredImagesChannel.setMessageHandler { _, reply in do { @@ -4965,7 +5352,10 @@ class ImageRegistryApiSetup { } else { getRegisteredImagesChannel.setMessageHandler(nil) } - let clearRegisteredImagesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.clearRegisteredImages\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let clearRegisteredImagesChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.clearRegisteredImages\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { clearRegisteredImagesChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4980,7 +5370,10 @@ class ImageRegistryApiSetup { } else { clearRegisteredImagesChannel.setMessageHandler(nil) } - let getRegisteredImageDataChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.getRegisteredImageData\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let getRegisteredImageDataChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.getRegisteredImageData\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { getRegisteredImageDataChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4999,22 +5392,54 @@ class ImageRegistryApiSetup { } /// Generated protocol from Pigeon that represents Flutter messages that can be called from Swift. protocol ViewEventApiProtocol { - func onMapClickEvent(viewId viewIdArg: Int64, latLng latLngArg: LatLngDto, completion: @escaping (Result) -> Void) - func onMapLongClickEvent(viewId viewIdArg: Int64, latLng latLngArg: LatLngDto, completion: @escaping (Result) -> Void) - func onRecenterButtonClicked(viewId viewIdArg: Int64, completion: @escaping (Result) -> Void) - func onMarkerEvent(viewId viewIdArg: Int64, markerId markerIdArg: String, eventType eventTypeArg: MarkerEventTypeDto, completion: @escaping (Result) -> Void) - func onMarkerDragEvent(viewId viewIdArg: Int64, markerId markerIdArg: String, eventType eventTypeArg: MarkerDragEventTypeDto, position positionArg: LatLngDto, completion: @escaping (Result) -> Void) - func onPolygonClicked(viewId viewIdArg: Int64, polygonId polygonIdArg: String, completion: @escaping (Result) -> Void) - func onPolylineClicked(viewId viewIdArg: Int64, polylineId polylineIdArg: String, completion: @escaping (Result) -> Void) - func onCircleClicked(viewId viewIdArg: Int64, circleId circleIdArg: String, completion: @escaping (Result) -> Void) - func onPoiClick(viewId viewIdArg: Int64, pointOfInterest pointOfInterestArg: PointOfInterestDto, completion: @escaping (Result) -> Void) - func onNavigationUIEnabledChanged(viewId viewIdArg: Int64, navigationUIEnabled navigationUIEnabledArg: Bool, completion: @escaping (Result) -> Void) - func onPromptVisibilityChanged(viewId viewIdArg: Int64, promptVisible promptVisibleArg: Bool, completion: @escaping (Result) -> Void) - func onMyLocationClicked(viewId viewIdArg: Int64, completion: @escaping (Result) -> Void) - func onMyLocationButtonClicked(viewId viewIdArg: Int64, completion: @escaping (Result) -> Void) - func onIndoorFocusedBuildingChanged(viewId viewIdArg: Int64, building buildingArg: IndoorBuildingDto?, completion: @escaping (Result) -> Void) - func onIndoorActiveLevelChanged(viewId viewIdArg: Int64, building buildingArg: IndoorBuildingDto?, completion: @escaping (Result) -> Void) - func onCameraChanged(viewId viewIdArg: Int64, eventType eventTypeArg: CameraEventTypeDto, position positionArg: CameraPositionDto, completion: @escaping (Result) -> Void) + func onMapClickEvent( + viewId viewIdArg: Int64, latLng latLngArg: LatLngDto, + completion: @escaping (Result) -> Void) + func onMapLongClickEvent( + viewId viewIdArg: Int64, latLng latLngArg: LatLngDto, + completion: @escaping (Result) -> Void) + func onRecenterButtonClicked( + viewId viewIdArg: Int64, completion: @escaping (Result) -> Void) + func onMarkerEvent( + viewId viewIdArg: Int64, markerId markerIdArg: String, + eventType eventTypeArg: MarkerEventTypeDto, + completion: @escaping (Result) -> Void) + func onMarkerDragEvent( + viewId viewIdArg: Int64, markerId markerIdArg: String, + eventType eventTypeArg: MarkerDragEventTypeDto, position positionArg: LatLngDto, + completion: @escaping (Result) -> Void) + func onPolygonClicked( + viewId viewIdArg: Int64, polygonId polygonIdArg: String, + completion: @escaping (Result) -> Void) + func onPolylineClicked( + viewId viewIdArg: Int64, polylineId polylineIdArg: String, + completion: @escaping (Result) -> Void) + func onCircleClicked( + viewId viewIdArg: Int64, circleId circleIdArg: String, + completion: @escaping (Result) -> Void) + func onPoiClick( + viewId viewIdArg: Int64, pointOfInterest pointOfInterestArg: PointOfInterestDto, + completion: @escaping (Result) -> Void) + func onNavigationUIEnabledChanged( + viewId viewIdArg: Int64, navigationUIEnabled navigationUIEnabledArg: Bool, + completion: @escaping (Result) -> Void) + func onPromptVisibilityChanged( + viewId viewIdArg: Int64, promptVisible promptVisibleArg: Bool, + completion: @escaping (Result) -> Void) + func onMyLocationClicked( + viewId viewIdArg: Int64, completion: @escaping (Result) -> Void) + func onMyLocationButtonClicked( + viewId viewIdArg: Int64, completion: @escaping (Result) -> Void) + func onIndoorFocusedBuildingChanged( + viewId viewIdArg: Int64, building buildingArg: IndoorBuildingDto?, + completion: @escaping (Result) -> Void) + func onIndoorActiveLevelChanged( + viewId viewIdArg: Int64, building buildingArg: IndoorBuildingDto?, + completion: @escaping (Result) -> Void) + func onCameraChanged( + viewId viewIdArg: Int64, eventType eventTypeArg: CameraEventTypeDto, + position positionArg: CameraPositionDto, + completion: @escaping (Result) -> Void) } class ViewEventApi: ViewEventApiProtocol { private let binaryMessenger: FlutterBinaryMessenger @@ -5026,9 +5451,14 @@ class ViewEventApi: ViewEventApiProtocol { var codec: MessagesPigeonCodec { return MessagesPigeonCodec.shared } - func onMapClickEvent(viewId viewIdArg: Int64, latLng latLngArg: LatLngDto, completion: @escaping (Result) -> Void) { - let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMapClickEvent\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func onMapClickEvent( + viewId viewIdArg: Int64, latLng latLngArg: LatLngDto, + completion: @escaping (Result) -> Void + ) { + let channelName: String = + "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMapClickEvent\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([viewIdArg, latLngArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5044,9 +5474,14 @@ class ViewEventApi: ViewEventApiProtocol { } } } - func onMapLongClickEvent(viewId viewIdArg: Int64, latLng latLngArg: LatLngDto, completion: @escaping (Result) -> Void) { - let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMapLongClickEvent\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func onMapLongClickEvent( + viewId viewIdArg: Int64, latLng latLngArg: LatLngDto, + completion: @escaping (Result) -> Void + ) { + let channelName: String = + "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMapLongClickEvent\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([viewIdArg, latLngArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5062,9 +5497,13 @@ class ViewEventApi: ViewEventApiProtocol { } } } - func onRecenterButtonClicked(viewId viewIdArg: Int64, completion: @escaping (Result) -> Void) { - let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onRecenterButtonClicked\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func onRecenterButtonClicked( + viewId viewIdArg: Int64, completion: @escaping (Result) -> Void + ) { + let channelName: String = + "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onRecenterButtonClicked\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([viewIdArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5080,9 +5519,15 @@ class ViewEventApi: ViewEventApiProtocol { } } } - func onMarkerEvent(viewId viewIdArg: Int64, markerId markerIdArg: String, eventType eventTypeArg: MarkerEventTypeDto, completion: @escaping (Result) -> Void) { - let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMarkerEvent\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func onMarkerEvent( + viewId viewIdArg: Int64, markerId markerIdArg: String, + eventType eventTypeArg: MarkerEventTypeDto, + completion: @escaping (Result) -> Void + ) { + let channelName: String = + "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMarkerEvent\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([viewIdArg, markerIdArg, eventTypeArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5098,9 +5543,15 @@ class ViewEventApi: ViewEventApiProtocol { } } } - func onMarkerDragEvent(viewId viewIdArg: Int64, markerId markerIdArg: String, eventType eventTypeArg: MarkerDragEventTypeDto, position positionArg: LatLngDto, completion: @escaping (Result) -> Void) { - let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMarkerDragEvent\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func onMarkerDragEvent( + viewId viewIdArg: Int64, markerId markerIdArg: String, + eventType eventTypeArg: MarkerDragEventTypeDto, position positionArg: LatLngDto, + completion: @escaping (Result) -> Void + ) { + let channelName: String = + "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMarkerDragEvent\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([viewIdArg, markerIdArg, eventTypeArg, positionArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5116,9 +5567,14 @@ class ViewEventApi: ViewEventApiProtocol { } } } - func onPolygonClicked(viewId viewIdArg: Int64, polygonId polygonIdArg: String, completion: @escaping (Result) -> Void) { - let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPolygonClicked\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func onPolygonClicked( + viewId viewIdArg: Int64, polygonId polygonIdArg: String, + completion: @escaping (Result) -> Void + ) { + let channelName: String = + "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPolygonClicked\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([viewIdArg, polygonIdArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5134,9 +5590,14 @@ class ViewEventApi: ViewEventApiProtocol { } } } - func onPolylineClicked(viewId viewIdArg: Int64, polylineId polylineIdArg: String, completion: @escaping (Result) -> Void) { - let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPolylineClicked\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func onPolylineClicked( + viewId viewIdArg: Int64, polylineId polylineIdArg: String, + completion: @escaping (Result) -> Void + ) { + let channelName: String = + "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPolylineClicked\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([viewIdArg, polylineIdArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5152,9 +5613,14 @@ class ViewEventApi: ViewEventApiProtocol { } } } - func onCircleClicked(viewId viewIdArg: Int64, circleId circleIdArg: String, completion: @escaping (Result) -> Void) { - let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onCircleClicked\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func onCircleClicked( + viewId viewIdArg: Int64, circleId circleIdArg: String, + completion: @escaping (Result) -> Void + ) { + let channelName: String = + "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onCircleClicked\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([viewIdArg, circleIdArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5170,9 +5636,14 @@ class ViewEventApi: ViewEventApiProtocol { } } } - func onPoiClick(viewId viewIdArg: Int64, pointOfInterest pointOfInterestArg: PointOfInterestDto, completion: @escaping (Result) -> Void) { - let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPoiClick\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func onPoiClick( + viewId viewIdArg: Int64, pointOfInterest pointOfInterestArg: PointOfInterestDto, + completion: @escaping (Result) -> Void + ) { + let channelName: String = + "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPoiClick\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([viewIdArg, pointOfInterestArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5188,9 +5659,14 @@ class ViewEventApi: ViewEventApiProtocol { } } } - func onNavigationUIEnabledChanged(viewId viewIdArg: Int64, navigationUIEnabled navigationUIEnabledArg: Bool, completion: @escaping (Result) -> Void) { - let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onNavigationUIEnabledChanged\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func onNavigationUIEnabledChanged( + viewId viewIdArg: Int64, navigationUIEnabled navigationUIEnabledArg: Bool, + completion: @escaping (Result) -> Void + ) { + let channelName: String = + "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onNavigationUIEnabledChanged\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([viewIdArg, navigationUIEnabledArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5206,9 +5682,14 @@ class ViewEventApi: ViewEventApiProtocol { } } } - func onPromptVisibilityChanged(viewId viewIdArg: Int64, promptVisible promptVisibleArg: Bool, completion: @escaping (Result) -> Void) { - let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPromptVisibilityChanged\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func onPromptVisibilityChanged( + viewId viewIdArg: Int64, promptVisible promptVisibleArg: Bool, + completion: @escaping (Result) -> Void + ) { + let channelName: String = + "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPromptVisibilityChanged\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([viewIdArg, promptVisibleArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5224,9 +5705,13 @@ class ViewEventApi: ViewEventApiProtocol { } } } - func onMyLocationClicked(viewId viewIdArg: Int64, completion: @escaping (Result) -> Void) { - let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMyLocationClicked\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func onMyLocationClicked( + viewId viewIdArg: Int64, completion: @escaping (Result) -> Void + ) { + let channelName: String = + "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMyLocationClicked\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([viewIdArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5242,9 +5727,13 @@ class ViewEventApi: ViewEventApiProtocol { } } } - func onMyLocationButtonClicked(viewId viewIdArg: Int64, completion: @escaping (Result) -> Void) { - let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMyLocationButtonClicked\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func onMyLocationButtonClicked( + viewId viewIdArg: Int64, completion: @escaping (Result) -> Void + ) { + let channelName: String = + "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMyLocationButtonClicked\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([viewIdArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5260,9 +5749,14 @@ class ViewEventApi: ViewEventApiProtocol { } } } - func onIndoorFocusedBuildingChanged(viewId viewIdArg: Int64, building buildingArg: IndoorBuildingDto?, completion: @escaping (Result) -> Void) { - let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onIndoorFocusedBuildingChanged\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func onIndoorFocusedBuildingChanged( + viewId viewIdArg: Int64, building buildingArg: IndoorBuildingDto?, + completion: @escaping (Result) -> Void + ) { + let channelName: String = + "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onIndoorFocusedBuildingChanged\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([viewIdArg, buildingArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5278,9 +5772,14 @@ class ViewEventApi: ViewEventApiProtocol { } } } - func onIndoorActiveLevelChanged(viewId viewIdArg: Int64, building buildingArg: IndoorBuildingDto?, completion: @escaping (Result) -> Void) { - let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onIndoorActiveLevelChanged\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func onIndoorActiveLevelChanged( + viewId viewIdArg: Int64, building buildingArg: IndoorBuildingDto?, + completion: @escaping (Result) -> Void + ) { + let channelName: String = + "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onIndoorActiveLevelChanged\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([viewIdArg, buildingArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5296,9 +5795,15 @@ class ViewEventApi: ViewEventApiProtocol { } } } - func onCameraChanged(viewId viewIdArg: Int64, eventType eventTypeArg: CameraEventTypeDto, position positionArg: CameraPositionDto, completion: @escaping (Result) -> Void) { - let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onCameraChanged\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func onCameraChanged( + viewId viewIdArg: Int64, eventType eventTypeArg: CameraEventTypeDto, + position positionArg: CameraPositionDto, + completion: @escaping (Result) -> Void + ) { + let channelName: String = + "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onCameraChanged\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([viewIdArg, eventTypeArg, positionArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5317,19 +5822,25 @@ class ViewEventApi: ViewEventApiProtocol { } /// Generated protocol from Pigeon that represents a handler of messages from Flutter. protocol NavigationSessionApi { - 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(resetSession: Bool) throws - func showTermsAndConditionsDialog(title: String, companyName: String, shouldOnlyShowDriverAwarenessDisclaimer: Bool, uiParams: TermsAndConditionsUIParamsDto?, completion: @escaping (Result) -> Void) + func showTermsAndConditionsDialog( + title: String, companyName: String, shouldOnlyShowDriverAwarenessDisclaimer: Bool, + uiParams: TermsAndConditionsUIParamsDto?, completion: @escaping (Result) -> Void) func areTermsAccepted() throws -> Bool func resetTermsAccepted() throws func getNavSDKVersion() throws -> String func isGuidanceRunning() throws -> Bool func startGuidance() throws func stopGuidance() throws - func setDestinations(destinations: DestinationsDto, completion: @escaping (Result) -> Void) + func setDestinations( + destinations: DestinationsDto, completion: @escaping (Result) -> Void) func clearDestinations() throws - func continueToNextDestination(completion: @escaping (Result) -> Void) + func continueToNextDestination( + completion: @escaping (Result) -> Void) func getCurrentTimeAndDistance() throws -> NavigationTimeAndDistanceDto func setAudioGuidance(settings: NavigationAudioGuidanceSettingsDto) throws func setSpeedAlertOptions(options: SpeedAlertOptionsDto) throws @@ -5340,33 +5851,51 @@ protocol NavigationSessionApi { func removeUserLocation() throws func simulateLocationsAlongExistingRoute() throws func simulateLocationsAlongExistingRouteWithOptions(options: SimulationOptionsDto) throws - func simulateLocationsAlongNewRoute(waypoints: [NavigationWaypointDto], completion: @escaping (Result) -> Void) - func simulateLocationsAlongNewRouteWithRoutingOptions(waypoints: [NavigationWaypointDto], routingOptions: RoutingOptionsDto, completion: @escaping (Result) -> Void) - func simulateLocationsAlongNewRouteWithRoutingAndSimulationOptions(waypoints: [NavigationWaypointDto], routingOptions: RoutingOptionsDto, simulationOptions: SimulationOptionsDto, completion: @escaping (Result) -> Void) + func simulateLocationsAlongNewRoute( + waypoints: [NavigationWaypointDto], + completion: @escaping (Result) -> Void) + func simulateLocationsAlongNewRouteWithRoutingOptions( + waypoints: [NavigationWaypointDto], routingOptions: RoutingOptionsDto, + completion: @escaping (Result) -> Void) + func simulateLocationsAlongNewRouteWithRoutingAndSimulationOptions( + waypoints: [NavigationWaypointDto], routingOptions: RoutingOptionsDto, + simulationOptions: SimulationOptionsDto, + completion: @escaping (Result) -> Void) func pauseSimulation() throws func resumeSimulation() throws /// iOS-only method. func allowBackgroundLocationUpdates(allow: Bool) throws func enableRoadSnappedLocationUpdates() throws func disableRoadSnappedLocationUpdates() throws - func enableTurnByTurnNavigationEvents(numNextStepsToPreview: Int64?, options: StepImageGenerationOptionsDto?) throws + func enableTurnByTurnNavigationEvents( + numNextStepsToPreview: Int64?, options: StepImageGenerationOptionsDto?) throws func disableTurnByTurnNavigationEvents() throws - func registerRemainingTimeOrDistanceChangedListener(remainingTimeThresholdSeconds: Int64, remainingDistanceThresholdMeters: Int64) throws + func registerRemainingTimeOrDistanceChangedListener( + remainingTimeThresholdSeconds: Int64, remainingDistanceThresholdMeters: Int64) throws } /// Generated setup class from Pigeon to handle messages through the `binaryMessenger`. class NavigationSessionApiSetup { static var codec: FlutterStandardMessageCodec { MessagesPigeonCodec.shared } /// Sets up an instance of `NavigationSessionApi` to handle messages through the `binaryMessenger`. - static func setUp(binaryMessenger: FlutterBinaryMessenger, api: NavigationSessionApi?, messageChannelSuffix: String = "") { + static func setUp( + binaryMessenger: FlutterBinaryMessenger, api: NavigationSessionApi?, + messageChannelSuffix: String = "" + ) { let channelSuffix = messageChannelSuffix.count > 0 ? ".\(messageChannelSuffix)" : "" - let createNavigationSessionChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.createNavigationSession\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let createNavigationSessionChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.createNavigationSession\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { createNavigationSessionChannel.setMessageHandler { message, reply in let args = message as! [Any?] let abnormalTerminationReportingEnabledArg = args[0] as! Bool let behaviorArg = args[1] as! TaskRemovedBehaviorDto - api.createNavigationSession(abnormalTerminationReportingEnabled: abnormalTerminationReportingEnabledArg, behavior: behaviorArg) { result in + api.createNavigationSession( + abnormalTerminationReportingEnabled: abnormalTerminationReportingEnabledArg, + behavior: behaviorArg + ) { result in switch result { case .success: reply(wrapResult(nil)) @@ -5378,7 +5907,10 @@ class NavigationSessionApiSetup { } else { createNavigationSessionChannel.setMessageHandler(nil) } - let isInitializedChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.isInitialized\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let isInitializedChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.isInitialized\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { isInitializedChannel.setMessageHandler { _, reply in do { @@ -5391,7 +5923,10 @@ class NavigationSessionApiSetup { } else { isInitializedChannel.setMessageHandler(nil) } - let cleanupChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.cleanup\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let cleanupChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.cleanup\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { cleanupChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -5406,7 +5941,10 @@ class NavigationSessionApiSetup { } else { cleanupChannel.setMessageHandler(nil) } - let showTermsAndConditionsDialogChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.showTermsAndConditionsDialog\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let showTermsAndConditionsDialogChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.showTermsAndConditionsDialog\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { showTermsAndConditionsDialogChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -5414,7 +5952,11 @@ class NavigationSessionApiSetup { let companyNameArg = args[1] as! String let shouldOnlyShowDriverAwarenessDisclaimerArg = args[2] as! Bool let uiParamsArg: TermsAndConditionsUIParamsDto? = nilOrValue(args[3]) - api.showTermsAndConditionsDialog(title: titleArg, companyName: companyNameArg, shouldOnlyShowDriverAwarenessDisclaimer: shouldOnlyShowDriverAwarenessDisclaimerArg, uiParams: uiParamsArg) { result in + api.showTermsAndConditionsDialog( + title: titleArg, companyName: companyNameArg, + shouldOnlyShowDriverAwarenessDisclaimer: shouldOnlyShowDriverAwarenessDisclaimerArg, + uiParams: uiParamsArg + ) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -5426,7 +5968,10 @@ class NavigationSessionApiSetup { } else { showTermsAndConditionsDialogChannel.setMessageHandler(nil) } - let areTermsAcceptedChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.areTermsAccepted\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let areTermsAcceptedChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.areTermsAccepted\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { areTermsAcceptedChannel.setMessageHandler { _, reply in do { @@ -5439,7 +5984,10 @@ class NavigationSessionApiSetup { } else { areTermsAcceptedChannel.setMessageHandler(nil) } - let resetTermsAcceptedChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.resetTermsAccepted\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let resetTermsAcceptedChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.resetTermsAccepted\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { resetTermsAcceptedChannel.setMessageHandler { _, reply in do { @@ -5452,7 +6000,10 @@ class NavigationSessionApiSetup { } else { resetTermsAcceptedChannel.setMessageHandler(nil) } - let getNavSDKVersionChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getNavSDKVersion\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let getNavSDKVersionChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getNavSDKVersion\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { getNavSDKVersionChannel.setMessageHandler { _, reply in do { @@ -5465,7 +6016,10 @@ class NavigationSessionApiSetup { } else { getNavSDKVersionChannel.setMessageHandler(nil) } - let isGuidanceRunningChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.isGuidanceRunning\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let isGuidanceRunningChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.isGuidanceRunning\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { isGuidanceRunningChannel.setMessageHandler { _, reply in do { @@ -5478,7 +6032,10 @@ class NavigationSessionApiSetup { } else { isGuidanceRunningChannel.setMessageHandler(nil) } - let startGuidanceChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.startGuidance\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let startGuidanceChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.startGuidance\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { startGuidanceChannel.setMessageHandler { _, reply in do { @@ -5491,7 +6048,10 @@ class NavigationSessionApiSetup { } else { startGuidanceChannel.setMessageHandler(nil) } - let stopGuidanceChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.stopGuidance\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let stopGuidanceChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.stopGuidance\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { stopGuidanceChannel.setMessageHandler { _, reply in do { @@ -5504,7 +6064,10 @@ class NavigationSessionApiSetup { } else { stopGuidanceChannel.setMessageHandler(nil) } - let setDestinationsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setDestinations\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let setDestinationsChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setDestinations\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { setDestinationsChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -5521,7 +6084,10 @@ class NavigationSessionApiSetup { } else { setDestinationsChannel.setMessageHandler(nil) } - let clearDestinationsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.clearDestinations\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let clearDestinationsChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.clearDestinations\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { clearDestinationsChannel.setMessageHandler { _, reply in do { @@ -5534,7 +6100,10 @@ class NavigationSessionApiSetup { } else { clearDestinationsChannel.setMessageHandler(nil) } - let continueToNextDestinationChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.continueToNextDestination\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let continueToNextDestinationChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.continueToNextDestination\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { continueToNextDestinationChannel.setMessageHandler { _, reply in api.continueToNextDestination { result in @@ -5549,7 +6118,10 @@ class NavigationSessionApiSetup { } else { continueToNextDestinationChannel.setMessageHandler(nil) } - let getCurrentTimeAndDistanceChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getCurrentTimeAndDistance\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let getCurrentTimeAndDistanceChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getCurrentTimeAndDistance\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { getCurrentTimeAndDistanceChannel.setMessageHandler { _, reply in do { @@ -5562,7 +6134,10 @@ class NavigationSessionApiSetup { } else { getCurrentTimeAndDistanceChannel.setMessageHandler(nil) } - let setAudioGuidanceChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setAudioGuidance\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let setAudioGuidanceChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setAudioGuidance\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { setAudioGuidanceChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -5577,7 +6152,10 @@ class NavigationSessionApiSetup { } else { setAudioGuidanceChannel.setMessageHandler(nil) } - let setSpeedAlertOptionsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setSpeedAlertOptions\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let setSpeedAlertOptionsChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setSpeedAlertOptions\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { setSpeedAlertOptionsChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -5592,7 +6170,10 @@ class NavigationSessionApiSetup { } else { setSpeedAlertOptionsChannel.setMessageHandler(nil) } - let getRouteSegmentsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getRouteSegments\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let getRouteSegmentsChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getRouteSegments\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { getRouteSegmentsChannel.setMessageHandler { _, reply in do { @@ -5605,7 +6186,10 @@ class NavigationSessionApiSetup { } else { getRouteSegmentsChannel.setMessageHandler(nil) } - let getTraveledRouteChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getTraveledRoute\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let getTraveledRouteChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getTraveledRoute\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { getTraveledRouteChannel.setMessageHandler { _, reply in do { @@ -5618,7 +6202,10 @@ class NavigationSessionApiSetup { } else { getTraveledRouteChannel.setMessageHandler(nil) } - let getCurrentRouteSegmentChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getCurrentRouteSegment\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let getCurrentRouteSegmentChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getCurrentRouteSegment\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { getCurrentRouteSegmentChannel.setMessageHandler { _, reply in do { @@ -5631,7 +6218,10 @@ class NavigationSessionApiSetup { } else { getCurrentRouteSegmentChannel.setMessageHandler(nil) } - let setUserLocationChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setUserLocation\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let setUserLocationChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setUserLocation\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { setUserLocationChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -5646,7 +6236,10 @@ class NavigationSessionApiSetup { } else { setUserLocationChannel.setMessageHandler(nil) } - let removeUserLocationChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.removeUserLocation\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let removeUserLocationChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.removeUserLocation\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { removeUserLocationChannel.setMessageHandler { _, reply in do { @@ -5659,7 +6252,10 @@ class NavigationSessionApiSetup { } else { removeUserLocationChannel.setMessageHandler(nil) } - let simulateLocationsAlongExistingRouteChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongExistingRoute\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let simulateLocationsAlongExistingRouteChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongExistingRoute\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { simulateLocationsAlongExistingRouteChannel.setMessageHandler { _, reply in do { @@ -5672,7 +6268,10 @@ class NavigationSessionApiSetup { } else { simulateLocationsAlongExistingRouteChannel.setMessageHandler(nil) } - let simulateLocationsAlongExistingRouteWithOptionsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongExistingRouteWithOptions\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let simulateLocationsAlongExistingRouteWithOptionsChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongExistingRouteWithOptions\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { simulateLocationsAlongExistingRouteWithOptionsChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -5687,7 +6286,10 @@ class NavigationSessionApiSetup { } else { simulateLocationsAlongExistingRouteWithOptionsChannel.setMessageHandler(nil) } - let simulateLocationsAlongNewRouteChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRoute\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let simulateLocationsAlongNewRouteChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRoute\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { simulateLocationsAlongNewRouteChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -5704,13 +6306,18 @@ class NavigationSessionApiSetup { } else { simulateLocationsAlongNewRouteChannel.setMessageHandler(nil) } - let simulateLocationsAlongNewRouteWithRoutingOptionsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRouteWithRoutingOptions\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let simulateLocationsAlongNewRouteWithRoutingOptionsChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRouteWithRoutingOptions\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { simulateLocationsAlongNewRouteWithRoutingOptionsChannel.setMessageHandler { message, reply in let args = message as! [Any?] let waypointsArg = args[0] as! [NavigationWaypointDto] let routingOptionsArg = args[1] as! RoutingOptionsDto - api.simulateLocationsAlongNewRouteWithRoutingOptions(waypoints: waypointsArg, routingOptions: routingOptionsArg) { result in + api.simulateLocationsAlongNewRouteWithRoutingOptions( + waypoints: waypointsArg, routingOptions: routingOptionsArg + ) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -5722,14 +6329,22 @@ class NavigationSessionApiSetup { } else { simulateLocationsAlongNewRouteWithRoutingOptionsChannel.setMessageHandler(nil) } - let simulateLocationsAlongNewRouteWithRoutingAndSimulationOptionsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRouteWithRoutingAndSimulationOptions\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let simulateLocationsAlongNewRouteWithRoutingAndSimulationOptionsChannel = + FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRouteWithRoutingAndSimulationOptions\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { - simulateLocationsAlongNewRouteWithRoutingAndSimulationOptionsChannel.setMessageHandler { message, reply in + simulateLocationsAlongNewRouteWithRoutingAndSimulationOptionsChannel.setMessageHandler { + message, reply in let args = message as! [Any?] let waypointsArg = args[0] as! [NavigationWaypointDto] let routingOptionsArg = args[1] as! RoutingOptionsDto let simulationOptionsArg = args[2] as! SimulationOptionsDto - api.simulateLocationsAlongNewRouteWithRoutingAndSimulationOptions(waypoints: waypointsArg, routingOptions: routingOptionsArg, simulationOptions: simulationOptionsArg) { result in + api.simulateLocationsAlongNewRouteWithRoutingAndSimulationOptions( + waypoints: waypointsArg, routingOptions: routingOptionsArg, + simulationOptions: simulationOptionsArg + ) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -5741,7 +6356,10 @@ class NavigationSessionApiSetup { } else { simulateLocationsAlongNewRouteWithRoutingAndSimulationOptionsChannel.setMessageHandler(nil) } - let pauseSimulationChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.pauseSimulation\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let pauseSimulationChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.pauseSimulation\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { pauseSimulationChannel.setMessageHandler { _, reply in do { @@ -5754,7 +6372,10 @@ class NavigationSessionApiSetup { } else { pauseSimulationChannel.setMessageHandler(nil) } - let resumeSimulationChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.resumeSimulation\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let resumeSimulationChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.resumeSimulation\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { resumeSimulationChannel.setMessageHandler { _, reply in do { @@ -5768,7 +6389,10 @@ class NavigationSessionApiSetup { resumeSimulationChannel.setMessageHandler(nil) } /// iOS-only method. - let allowBackgroundLocationUpdatesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.allowBackgroundLocationUpdates\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let allowBackgroundLocationUpdatesChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.allowBackgroundLocationUpdates\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { allowBackgroundLocationUpdatesChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -5783,7 +6407,10 @@ class NavigationSessionApiSetup { } else { allowBackgroundLocationUpdatesChannel.setMessageHandler(nil) } - let enableRoadSnappedLocationUpdatesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.enableRoadSnappedLocationUpdates\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let enableRoadSnappedLocationUpdatesChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.enableRoadSnappedLocationUpdates\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { enableRoadSnappedLocationUpdatesChannel.setMessageHandler { _, reply in do { @@ -5796,7 +6423,10 @@ class NavigationSessionApiSetup { } else { enableRoadSnappedLocationUpdatesChannel.setMessageHandler(nil) } - let disableRoadSnappedLocationUpdatesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.disableRoadSnappedLocationUpdates\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let disableRoadSnappedLocationUpdatesChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.disableRoadSnappedLocationUpdates\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { disableRoadSnappedLocationUpdatesChannel.setMessageHandler { _, reply in do { @@ -5809,14 +6439,18 @@ class NavigationSessionApiSetup { } else { disableRoadSnappedLocationUpdatesChannel.setMessageHandler(nil) } - let enableTurnByTurnNavigationEventsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.enableTurnByTurnNavigationEvents\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let enableTurnByTurnNavigationEventsChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.enableTurnByTurnNavigationEvents\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { enableTurnByTurnNavigationEventsChannel.setMessageHandler { message, reply in let args = message as! [Any?] let numNextStepsToPreviewArg: Int64? = nilOrValue(args[0]) let optionsArg: StepImageGenerationOptionsDto? = nilOrValue(args[1]) do { - try api.enableTurnByTurnNavigationEvents(numNextStepsToPreview: numNextStepsToPreviewArg, options: optionsArg) + try api.enableTurnByTurnNavigationEvents( + numNextStepsToPreview: numNextStepsToPreviewArg, options: optionsArg) reply(wrapResult(nil)) } catch { reply(wrapError(error)) @@ -5825,7 +6459,10 @@ class NavigationSessionApiSetup { } else { enableTurnByTurnNavigationEventsChannel.setMessageHandler(nil) } - let disableTurnByTurnNavigationEventsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.disableTurnByTurnNavigationEvents\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let disableTurnByTurnNavigationEventsChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.disableTurnByTurnNavigationEvents\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { disableTurnByTurnNavigationEventsChannel.setMessageHandler { _, reply in do { @@ -5838,14 +6475,19 @@ class NavigationSessionApiSetup { } else { disableTurnByTurnNavigationEventsChannel.setMessageHandler(nil) } - let registerRemainingTimeOrDistanceChangedListenerChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.registerRemainingTimeOrDistanceChangedListener\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let registerRemainingTimeOrDistanceChangedListenerChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.registerRemainingTimeOrDistanceChangedListener\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { registerRemainingTimeOrDistanceChangedListenerChannel.setMessageHandler { message, reply in let args = message as! [Any?] let remainingTimeThresholdSecondsArg = args[0] as! Int64 let remainingDistanceThresholdMetersArg = args[1] as! Int64 do { - try api.registerRemainingTimeOrDistanceChangedListener(remainingTimeThresholdSeconds: remainingTimeThresholdSecondsArg, remainingDistanceThresholdMeters: remainingDistanceThresholdMetersArg) + try api.registerRemainingTimeOrDistanceChangedListener( + remainingTimeThresholdSeconds: remainingTimeThresholdSecondsArg, + remainingDistanceThresholdMeters: remainingDistanceThresholdMetersArg) reply(wrapResult(nil)) } catch { reply(wrapError(error)) @@ -5858,22 +6500,34 @@ class NavigationSessionApiSetup { } /// Generated protocol from Pigeon that represents Flutter messages that can be called from Swift. protocol NavigationSessionEventApiProtocol { - func onSpeedingUpdated(msg msgArg: SpeedingUpdatedEventDto, completion: @escaping (Result) -> Void) - func onRoadSnappedLocationUpdated(location locationArg: LatLngDto, completion: @escaping (Result) -> Void) - func onRoadSnappedRawLocationUpdated(location locationArg: LatLngDto, completion: @escaping (Result) -> Void) - func onArrival(waypoint waypointArg: NavigationWaypointDto, completion: @escaping (Result) -> Void) + func onSpeedingUpdated( + msg msgArg: SpeedingUpdatedEventDto, completion: @escaping (Result) -> Void) + func onRoadSnappedLocationUpdated( + location locationArg: LatLngDto, completion: @escaping (Result) -> Void) + func onRoadSnappedRawLocationUpdated( + location locationArg: LatLngDto, completion: @escaping (Result) -> Void) + func onArrival( + waypoint waypointArg: NavigationWaypointDto, + completion: @escaping (Result) -> Void) func onRouteChanged(completion: @escaping (Result) -> Void) - func onRemainingTimeOrDistanceChanged(remainingTime remainingTimeArg: Double, remainingDistance remainingDistanceArg: Double, delaySeverity delaySeverityArg: TrafficDelaySeverityDto, completion: @escaping (Result) -> Void) + func onRemainingTimeOrDistanceChanged( + remainingTime remainingTimeArg: Double, remainingDistance remainingDistanceArg: Double, + delaySeverity delaySeverityArg: TrafficDelaySeverityDto, + completion: @escaping (Result) -> Void) /// Android-only event. func onTrafficUpdated(completion: @escaping (Result) -> Void) /// Android-only event. func onRerouting(completion: @escaping (Result) -> Void) /// Android-only event. - func onGpsAvailabilityUpdate(available availableArg: Bool, completion: @escaping (Result) -> Void) + func onGpsAvailabilityUpdate( + available availableArg: Bool, completion: @escaping (Result) -> Void) /// Android-only event. - func onGpsAvailabilityChange(event eventArg: GpsAvailabilityChangeEventDto, completion: @escaping (Result) -> Void) + func onGpsAvailabilityChange( + event eventArg: GpsAvailabilityChangeEventDto, + completion: @escaping (Result) -> Void) /// Turn-by-Turn navigation events. - func onNavInfo(navInfo navInfoArg: NavInfoDto, completion: @escaping (Result) -> Void) + func onNavInfo( + navInfo navInfoArg: NavInfoDto, completion: @escaping (Result) -> Void) /// Navigation session event. Called when a new navigation /// session starts with active guidance. func onNewNavigationSession(completion: @escaping (Result) -> Void) @@ -5888,9 +6542,13 @@ class NavigationSessionEventApi: NavigationSessionEventApiProtocol { var codec: MessagesPigeonCodec { return MessagesPigeonCodec.shared } - func onSpeedingUpdated(msg msgArg: SpeedingUpdatedEventDto, completion: @escaping (Result) -> Void) { - let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onSpeedingUpdated\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func onSpeedingUpdated( + msg msgArg: SpeedingUpdatedEventDto, completion: @escaping (Result) -> Void + ) { + let channelName: String = + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onSpeedingUpdated\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([msgArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5906,9 +6564,13 @@ class NavigationSessionEventApi: NavigationSessionEventApiProtocol { } } } - func onRoadSnappedLocationUpdated(location locationArg: LatLngDto, completion: @escaping (Result) -> Void) { - let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRoadSnappedLocationUpdated\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func onRoadSnappedLocationUpdated( + location locationArg: LatLngDto, completion: @escaping (Result) -> Void + ) { + let channelName: String = + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRoadSnappedLocationUpdated\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([locationArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5924,9 +6586,13 @@ class NavigationSessionEventApi: NavigationSessionEventApiProtocol { } } } - func onRoadSnappedRawLocationUpdated(location locationArg: LatLngDto, completion: @escaping (Result) -> Void) { - let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRoadSnappedRawLocationUpdated\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func onRoadSnappedRawLocationUpdated( + location locationArg: LatLngDto, completion: @escaping (Result) -> Void + ) { + let channelName: String = + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRoadSnappedRawLocationUpdated\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([locationArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5942,9 +6608,14 @@ class NavigationSessionEventApi: NavigationSessionEventApiProtocol { } } } - func onArrival(waypoint waypointArg: NavigationWaypointDto, completion: @escaping (Result) -> Void) { - let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onArrival\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func onArrival( + waypoint waypointArg: NavigationWaypointDto, + completion: @escaping (Result) -> Void + ) { + let channelName: String = + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onArrival\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([waypointArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5961,8 +6632,10 @@ class NavigationSessionEventApi: NavigationSessionEventApiProtocol { } } func onRouteChanged(completion: @escaping (Result) -> Void) { - let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRouteChanged\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + let channelName: String = + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRouteChanged\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage(nil) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5978,10 +6651,17 @@ class NavigationSessionEventApi: NavigationSessionEventApiProtocol { } } } - func onRemainingTimeOrDistanceChanged(remainingTime remainingTimeArg: Double, remainingDistance remainingDistanceArg: Double, delaySeverity delaySeverityArg: TrafficDelaySeverityDto, completion: @escaping (Result) -> Void) { - let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRemainingTimeOrDistanceChanged\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) - channel.sendMessage([remainingTimeArg, remainingDistanceArg, delaySeverityArg] as [Any?]) { response in + func onRemainingTimeOrDistanceChanged( + remainingTime remainingTimeArg: Double, remainingDistance remainingDistanceArg: Double, + delaySeverity delaySeverityArg: TrafficDelaySeverityDto, + completion: @escaping (Result) -> Void + ) { + let channelName: String = + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRemainingTimeOrDistanceChanged\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) + channel.sendMessage([remainingTimeArg, remainingDistanceArg, delaySeverityArg] as [Any?]) { + response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) return @@ -5998,8 +6678,10 @@ class NavigationSessionEventApi: NavigationSessionEventApiProtocol { } /// Android-only event. func onTrafficUpdated(completion: @escaping (Result) -> Void) { - let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onTrafficUpdated\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + let channelName: String = + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onTrafficUpdated\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage(nil) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -6017,8 +6699,10 @@ class NavigationSessionEventApi: NavigationSessionEventApiProtocol { } /// Android-only event. func onRerouting(completion: @escaping (Result) -> Void) { - let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRerouting\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + let channelName: String = + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRerouting\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage(nil) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -6035,9 +6719,13 @@ class NavigationSessionEventApi: NavigationSessionEventApiProtocol { } } /// Android-only event. - func onGpsAvailabilityUpdate(available availableArg: Bool, completion: @escaping (Result) -> Void) { - let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onGpsAvailabilityUpdate\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func onGpsAvailabilityUpdate( + available availableArg: Bool, completion: @escaping (Result) -> Void + ) { + let channelName: String = + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onGpsAvailabilityUpdate\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([availableArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -6054,9 +6742,14 @@ class NavigationSessionEventApi: NavigationSessionEventApiProtocol { } } /// Android-only event. - func onGpsAvailabilityChange(event eventArg: GpsAvailabilityChangeEventDto, completion: @escaping (Result) -> Void) { - let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onGpsAvailabilityChange\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func onGpsAvailabilityChange( + event eventArg: GpsAvailabilityChangeEventDto, + completion: @escaping (Result) -> Void + ) { + let channelName: String = + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onGpsAvailabilityChange\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([eventArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -6073,9 +6766,13 @@ class NavigationSessionEventApi: NavigationSessionEventApiProtocol { } } /// Turn-by-Turn navigation events. - func onNavInfo(navInfo navInfoArg: NavInfoDto, completion: @escaping (Result) -> Void) { - let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onNavInfo\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func onNavInfo( + navInfo navInfoArg: NavInfoDto, completion: @escaping (Result) -> Void + ) { + let channelName: String = + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onNavInfo\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([navInfoArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -6094,8 +6791,10 @@ class NavigationSessionEventApi: NavigationSessionEventApiProtocol { /// Navigation session event. Called when a new navigation /// session starts with active guidance. func onNewNavigationSession(completion: @escaping (Result) -> Void) { - let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onNewNavigationSession\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + let channelName: String = + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onNewNavigationSession\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage(nil) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -6127,13 +6826,25 @@ protocol AutoMapViewApi { func getCameraPosition() throws -> CameraPositionDto func getVisibleRegion() throws -> LatLngBoundsDto func followMyLocation(perspective: CameraPerspectiveDto, zoomLevel: Double?) throws - func animateCameraToCameraPosition(cameraPosition: CameraPositionDto, duration: Int64?, completion: @escaping (Result) -> Void) - func animateCameraToLatLng(point: LatLngDto, duration: Int64?, completion: @escaping (Result) -> Void) - func animateCameraToLatLngBounds(bounds: LatLngBoundsDto, padding: Double, duration: Int64?, completion: @escaping (Result) -> Void) - func animateCameraToLatLngZoom(point: LatLngDto, zoom: Double, duration: Int64?, completion: @escaping (Result) -> Void) - func animateCameraByScroll(scrollByDx: Double, scrollByDy: Double, duration: Int64?, completion: @escaping (Result) -> Void) - func animateCameraByZoom(zoomBy: Double, focusDx: Double?, focusDy: Double?, duration: Int64?, completion: @escaping (Result) -> Void) - func animateCameraToZoom(zoom: Double, duration: Int64?, completion: @escaping (Result) -> Void) + func animateCameraToCameraPosition( + cameraPosition: CameraPositionDto, duration: Int64?, + completion: @escaping (Result) -> Void) + func animateCameraToLatLng( + point: LatLngDto, duration: Int64?, completion: @escaping (Result) -> Void) + func animateCameraToLatLngBounds( + bounds: LatLngBoundsDto, padding: Double, duration: Int64?, + completion: @escaping (Result) -> Void) + func animateCameraToLatLngZoom( + point: LatLngDto, zoom: Double, duration: Int64?, + completion: @escaping (Result) -> Void) + func animateCameraByScroll( + scrollByDx: Double, scrollByDy: Double, duration: Int64?, + completion: @escaping (Result) -> Void) + func animateCameraByZoom( + zoomBy: Double, focusDx: Double?, focusDy: Double?, duration: Int64?, + completion: @escaping (Result) -> Void) + func animateCameraToZoom( + zoom: Double, duration: Int64?, completion: @escaping (Result) -> Void) func moveCameraToCameraPosition(cameraPosition: CameraPositionDto) throws func moveCameraToLatLng(point: LatLngDto) throws func moveCameraToLatLngBounds(bounds: LatLngBoundsDto, padding: Double) throws @@ -6221,12 +6932,17 @@ protocol AutoMapViewApi { class AutoMapViewApiSetup { static var codec: FlutterStandardMessageCodec { MessagesPigeonCodec.shared } /// Sets up an instance of `AutoMapViewApi` to handle messages through the `binaryMessenger`. - static func setUp(binaryMessenger: FlutterBinaryMessenger, api: AutoMapViewApi?, messageChannelSuffix: String = "") { + static func setUp( + binaryMessenger: FlutterBinaryMessenger, api: AutoMapViewApi?, messageChannelSuffix: String = "" + ) { let channelSuffix = messageChannelSuffix.count > 0 ? ".\(messageChannelSuffix)" : "" /// Sets the map options to be used for Android Auto and CarPlay views. /// Should be called before the Auto/CarPlay screen is created. /// This allows customization of mapId and basic map settings. - let setAutoMapOptionsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setAutoMapOptions\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let setAutoMapOptionsChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setAutoMapOptions\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { setAutoMapOptionsChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -6241,7 +6957,10 @@ class AutoMapViewApiSetup { } else { setAutoMapOptionsChannel.setMessageHandler(nil) } - let isMyLocationEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isMyLocationEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let isMyLocationEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isMyLocationEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { isMyLocationEnabledChannel.setMessageHandler { _, reply in do { @@ -6254,7 +6973,10 @@ class AutoMapViewApiSetup { } else { isMyLocationEnabledChannel.setMessageHandler(nil) } - let setMyLocationEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMyLocationEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let setMyLocationEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMyLocationEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { setMyLocationEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -6269,7 +6991,10 @@ class AutoMapViewApiSetup { } else { setMyLocationEnabledChannel.setMessageHandler(nil) } - let getMyLocationChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMyLocation\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let getMyLocationChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMyLocation\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { getMyLocationChannel.setMessageHandler { _, reply in do { @@ -6282,7 +7007,10 @@ class AutoMapViewApiSetup { } else { getMyLocationChannel.setMessageHandler(nil) } - let getMapTypeChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMapType\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let getMapTypeChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMapType\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { getMapTypeChannel.setMessageHandler { _, reply in do { @@ -6295,7 +7023,10 @@ class AutoMapViewApiSetup { } else { getMapTypeChannel.setMessageHandler(nil) } - let setMapTypeChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapType\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let setMapTypeChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapType\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { setMapTypeChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -6310,7 +7041,10 @@ class AutoMapViewApiSetup { } else { setMapTypeChannel.setMessageHandler(nil) } - let setMapStyleChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapStyle\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let setMapStyleChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapStyle\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { setMapStyleChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -6325,7 +7059,10 @@ class AutoMapViewApiSetup { } else { setMapStyleChannel.setMessageHandler(nil) } - let getCameraPositionChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getCameraPosition\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let getCameraPositionChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getCameraPosition\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { getCameraPositionChannel.setMessageHandler { _, reply in do { @@ -6338,7 +7075,10 @@ class AutoMapViewApiSetup { } else { getCameraPositionChannel.setMessageHandler(nil) } - let getVisibleRegionChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getVisibleRegion\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let getVisibleRegionChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getVisibleRegion\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { getVisibleRegionChannel.setMessageHandler { _, reply in do { @@ -6351,7 +7091,10 @@ class AutoMapViewApiSetup { } else { getVisibleRegionChannel.setMessageHandler(nil) } - let followMyLocationChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.followMyLocation\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let followMyLocationChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.followMyLocation\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { followMyLocationChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -6367,13 +7110,17 @@ class AutoMapViewApiSetup { } else { followMyLocationChannel.setMessageHandler(nil) } - let animateCameraToCameraPositionChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToCameraPosition\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let animateCameraToCameraPositionChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToCameraPosition\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { animateCameraToCameraPositionChannel.setMessageHandler { message, reply in let args = message as! [Any?] let cameraPositionArg = args[0] as! CameraPositionDto let durationArg: Int64? = nilOrValue(args[1]) - api.animateCameraToCameraPosition(cameraPosition: cameraPositionArg, duration: durationArg) { result in + api.animateCameraToCameraPosition(cameraPosition: cameraPositionArg, duration: durationArg) + { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -6385,7 +7132,10 @@ class AutoMapViewApiSetup { } else { animateCameraToCameraPositionChannel.setMessageHandler(nil) } - let animateCameraToLatLngChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLng\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let animateCameraToLatLngChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLng\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { animateCameraToLatLngChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -6403,14 +7153,19 @@ class AutoMapViewApiSetup { } else { animateCameraToLatLngChannel.setMessageHandler(nil) } - let animateCameraToLatLngBoundsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLngBounds\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let animateCameraToLatLngBoundsChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLngBounds\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { animateCameraToLatLngBoundsChannel.setMessageHandler { message, reply in let args = message as! [Any?] let boundsArg = args[0] as! LatLngBoundsDto let paddingArg = args[1] as! Double let durationArg: Int64? = nilOrValue(args[2]) - api.animateCameraToLatLngBounds(bounds: boundsArg, padding: paddingArg, duration: durationArg) { result in + api.animateCameraToLatLngBounds( + bounds: boundsArg, padding: paddingArg, duration: durationArg + ) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -6422,14 +7177,18 @@ class AutoMapViewApiSetup { } else { animateCameraToLatLngBoundsChannel.setMessageHandler(nil) } - let animateCameraToLatLngZoomChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLngZoom\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let animateCameraToLatLngZoomChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLngZoom\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { animateCameraToLatLngZoomChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pointArg = args[0] as! LatLngDto let zoomArg = args[1] as! Double let durationArg: Int64? = nilOrValue(args[2]) - api.animateCameraToLatLngZoom(point: pointArg, zoom: zoomArg, duration: durationArg) { result in + api.animateCameraToLatLngZoom(point: pointArg, zoom: zoomArg, duration: durationArg) { + result in switch result { case .success(let res): reply(wrapResult(res)) @@ -6441,14 +7200,19 @@ class AutoMapViewApiSetup { } else { animateCameraToLatLngZoomChannel.setMessageHandler(nil) } - let animateCameraByScrollChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraByScroll\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let animateCameraByScrollChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraByScroll\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { animateCameraByScrollChannel.setMessageHandler { message, reply in let args = message as! [Any?] let scrollByDxArg = args[0] as! Double let scrollByDyArg = args[1] as! Double let durationArg: Int64? = nilOrValue(args[2]) - api.animateCameraByScroll(scrollByDx: scrollByDxArg, scrollByDy: scrollByDyArg, duration: durationArg) { result in + api.animateCameraByScroll( + scrollByDx: scrollByDxArg, scrollByDy: scrollByDyArg, duration: durationArg + ) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -6460,7 +7224,10 @@ class AutoMapViewApiSetup { } else { animateCameraByScrollChannel.setMessageHandler(nil) } - let animateCameraByZoomChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraByZoom\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let animateCameraByZoomChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraByZoom\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { animateCameraByZoomChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -6468,7 +7235,9 @@ class AutoMapViewApiSetup { let focusDxArg: Double? = nilOrValue(args[1]) let focusDyArg: Double? = nilOrValue(args[2]) let durationArg: Int64? = nilOrValue(args[3]) - api.animateCameraByZoom(zoomBy: zoomByArg, focusDx: focusDxArg, focusDy: focusDyArg, duration: durationArg) { result in + api.animateCameraByZoom( + zoomBy: zoomByArg, focusDx: focusDxArg, focusDy: focusDyArg, duration: durationArg + ) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -6480,7 +7249,10 @@ class AutoMapViewApiSetup { } else { animateCameraByZoomChannel.setMessageHandler(nil) } - let animateCameraToZoomChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToZoom\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let animateCameraToZoomChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToZoom\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { animateCameraToZoomChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -6498,7 +7270,10 @@ class AutoMapViewApiSetup { } else { animateCameraToZoomChannel.setMessageHandler(nil) } - let moveCameraToCameraPositionChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToCameraPosition\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let moveCameraToCameraPositionChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToCameraPosition\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { moveCameraToCameraPositionChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -6513,7 +7288,10 @@ class AutoMapViewApiSetup { } else { moveCameraToCameraPositionChannel.setMessageHandler(nil) } - let moveCameraToLatLngChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLng\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let moveCameraToLatLngChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLng\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { moveCameraToLatLngChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -6528,7 +7306,10 @@ class AutoMapViewApiSetup { } else { moveCameraToLatLngChannel.setMessageHandler(nil) } - let moveCameraToLatLngBoundsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLngBounds\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let moveCameraToLatLngBoundsChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLngBounds\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { moveCameraToLatLngBoundsChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -6544,7 +7325,10 @@ class AutoMapViewApiSetup { } else { moveCameraToLatLngBoundsChannel.setMessageHandler(nil) } - let moveCameraToLatLngZoomChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLngZoom\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let moveCameraToLatLngZoomChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLngZoom\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { moveCameraToLatLngZoomChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -6560,7 +7344,10 @@ class AutoMapViewApiSetup { } else { moveCameraToLatLngZoomChannel.setMessageHandler(nil) } - let moveCameraByScrollChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraByScroll\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let moveCameraByScrollChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraByScroll\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { moveCameraByScrollChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -6576,7 +7363,10 @@ class AutoMapViewApiSetup { } else { moveCameraByScrollChannel.setMessageHandler(nil) } - let moveCameraByZoomChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraByZoom\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let moveCameraByZoomChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraByZoom\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { moveCameraByZoomChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -6593,7 +7383,10 @@ class AutoMapViewApiSetup { } else { moveCameraByZoomChannel.setMessageHandler(nil) } - let moveCameraToZoomChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToZoom\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let moveCameraToZoomChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToZoom\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { moveCameraToZoomChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -6608,7 +7401,10 @@ class AutoMapViewApiSetup { } else { moveCameraToZoomChannel.setMessageHandler(nil) } - let getMinZoomPreferenceChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMinZoomPreference\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let getMinZoomPreferenceChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMinZoomPreference\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { getMinZoomPreferenceChannel.setMessageHandler { _, reply in do { @@ -6621,7 +7417,10 @@ class AutoMapViewApiSetup { } else { getMinZoomPreferenceChannel.setMessageHandler(nil) } - let getMaxZoomPreferenceChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMaxZoomPreference\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let getMaxZoomPreferenceChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMaxZoomPreference\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { getMaxZoomPreferenceChannel.setMessageHandler { _, reply in do { @@ -6634,7 +7433,10 @@ class AutoMapViewApiSetup { } else { getMaxZoomPreferenceChannel.setMessageHandler(nil) } - let resetMinMaxZoomPreferenceChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.resetMinMaxZoomPreference\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let resetMinMaxZoomPreferenceChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.resetMinMaxZoomPreference\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { resetMinMaxZoomPreferenceChannel.setMessageHandler { _, reply in do { @@ -6647,7 +7449,10 @@ class AutoMapViewApiSetup { } else { resetMinMaxZoomPreferenceChannel.setMessageHandler(nil) } - let setMinZoomPreferenceChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMinZoomPreference\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let setMinZoomPreferenceChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMinZoomPreference\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { setMinZoomPreferenceChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -6662,7 +7467,10 @@ class AutoMapViewApiSetup { } else { setMinZoomPreferenceChannel.setMessageHandler(nil) } - let setMaxZoomPreferenceChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMaxZoomPreference\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let setMaxZoomPreferenceChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMaxZoomPreference\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { setMaxZoomPreferenceChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -6677,7 +7485,10 @@ class AutoMapViewApiSetup { } else { setMaxZoomPreferenceChannel.setMessageHandler(nil) } - let setMyLocationButtonEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMyLocationButtonEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let setMyLocationButtonEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMyLocationButtonEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { setMyLocationButtonEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -6692,7 +7503,10 @@ class AutoMapViewApiSetup { } else { setMyLocationButtonEnabledChannel.setMessageHandler(nil) } - let setConsumeMyLocationButtonClickEventsEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setConsumeMyLocationButtonClickEventsEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let setConsumeMyLocationButtonClickEventsEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setConsumeMyLocationButtonClickEventsEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { setConsumeMyLocationButtonClickEventsEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -6707,7 +7521,10 @@ class AutoMapViewApiSetup { } else { setConsumeMyLocationButtonClickEventsEnabledChannel.setMessageHandler(nil) } - let setZoomGesturesEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setZoomGesturesEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let setZoomGesturesEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setZoomGesturesEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { setZoomGesturesEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -6722,7 +7539,10 @@ class AutoMapViewApiSetup { } else { setZoomGesturesEnabledChannel.setMessageHandler(nil) } - let setZoomControlsEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setZoomControlsEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let setZoomControlsEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setZoomControlsEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { setZoomControlsEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -6737,7 +7557,10 @@ class AutoMapViewApiSetup { } else { setZoomControlsEnabledChannel.setMessageHandler(nil) } - let setCompassEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setCompassEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let setCompassEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setCompassEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { setCompassEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -6752,7 +7575,10 @@ class AutoMapViewApiSetup { } else { setCompassEnabledChannel.setMessageHandler(nil) } - let setRotateGesturesEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setRotateGesturesEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let setRotateGesturesEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setRotateGesturesEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { setRotateGesturesEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -6767,7 +7593,10 @@ class AutoMapViewApiSetup { } else { setRotateGesturesEnabledChannel.setMessageHandler(nil) } - let setScrollGesturesEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setScrollGesturesEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let setScrollGesturesEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setScrollGesturesEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { setScrollGesturesEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -6782,7 +7611,10 @@ class AutoMapViewApiSetup { } else { setScrollGesturesEnabledChannel.setMessageHandler(nil) } - let setScrollGesturesDuringRotateOrZoomEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setScrollGesturesDuringRotateOrZoomEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let setScrollGesturesDuringRotateOrZoomEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setScrollGesturesDuringRotateOrZoomEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { setScrollGesturesDuringRotateOrZoomEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -6797,7 +7629,10 @@ class AutoMapViewApiSetup { } else { setScrollGesturesDuringRotateOrZoomEnabledChannel.setMessageHandler(nil) } - let setTiltGesturesEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTiltGesturesEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let setTiltGesturesEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTiltGesturesEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { setTiltGesturesEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -6812,7 +7647,10 @@ class AutoMapViewApiSetup { } else { setTiltGesturesEnabledChannel.setMessageHandler(nil) } - let setMapToolbarEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapToolbarEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let setMapToolbarEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapToolbarEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { setMapToolbarEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -6827,7 +7665,10 @@ class AutoMapViewApiSetup { } else { setMapToolbarEnabledChannel.setMessageHandler(nil) } - let setTrafficEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let setTrafficEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { setTrafficEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -6842,7 +7683,10 @@ class AutoMapViewApiSetup { } else { setTrafficEnabledChannel.setMessageHandler(nil) } - let setTrafficPromptsEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficPromptsEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let setTrafficPromptsEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficPromptsEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { setTrafficPromptsEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -6857,7 +7701,10 @@ class AutoMapViewApiSetup { } else { setTrafficPromptsEnabledChannel.setMessageHandler(nil) } - let setTrafficIncidentCardsEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficIncidentCardsEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let setTrafficIncidentCardsEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficIncidentCardsEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { setTrafficIncidentCardsEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -6872,7 +7719,10 @@ class AutoMapViewApiSetup { } else { setTrafficIncidentCardsEnabledChannel.setMessageHandler(nil) } - let setNavigationTripProgressBarEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setNavigationTripProgressBarEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let setNavigationTripProgressBarEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setNavigationTripProgressBarEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { setNavigationTripProgressBarEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -6887,7 +7737,10 @@ class AutoMapViewApiSetup { } else { setNavigationTripProgressBarEnabledChannel.setMessageHandler(nil) } - let setSpeedLimitIconEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setSpeedLimitIconEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let setSpeedLimitIconEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setSpeedLimitIconEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { setSpeedLimitIconEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -6902,7 +7755,10 @@ class AutoMapViewApiSetup { } else { setSpeedLimitIconEnabledChannel.setMessageHandler(nil) } - let setSpeedometerEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setSpeedometerEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let setSpeedometerEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setSpeedometerEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { setSpeedometerEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -6917,7 +7773,10 @@ class AutoMapViewApiSetup { } else { setSpeedometerEnabledChannel.setMessageHandler(nil) } - let setNavigationUIEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setNavigationUIEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let setNavigationUIEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setNavigationUIEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { setNavigationUIEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -6932,7 +7791,10 @@ class AutoMapViewApiSetup { } else { setNavigationUIEnabledChannel.setMessageHandler(nil) } - let isMyLocationButtonEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isMyLocationButtonEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let isMyLocationButtonEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isMyLocationButtonEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { isMyLocationButtonEnabledChannel.setMessageHandler { _, reply in do { @@ -6945,7 +7807,10 @@ class AutoMapViewApiSetup { } else { isMyLocationButtonEnabledChannel.setMessageHandler(nil) } - let isConsumeMyLocationButtonClickEventsEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isConsumeMyLocationButtonClickEventsEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let isConsumeMyLocationButtonClickEventsEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isConsumeMyLocationButtonClickEventsEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { isConsumeMyLocationButtonClickEventsEnabledChannel.setMessageHandler { _, reply in do { @@ -6958,7 +7823,10 @@ class AutoMapViewApiSetup { } else { isConsumeMyLocationButtonClickEventsEnabledChannel.setMessageHandler(nil) } - let isZoomGesturesEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isZoomGesturesEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let isZoomGesturesEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isZoomGesturesEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { isZoomGesturesEnabledChannel.setMessageHandler { _, reply in do { @@ -6971,7 +7839,10 @@ class AutoMapViewApiSetup { } else { isZoomGesturesEnabledChannel.setMessageHandler(nil) } - let isZoomControlsEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isZoomControlsEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let isZoomControlsEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isZoomControlsEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { isZoomControlsEnabledChannel.setMessageHandler { _, reply in do { @@ -6984,7 +7855,10 @@ class AutoMapViewApiSetup { } else { isZoomControlsEnabledChannel.setMessageHandler(nil) } - let isCompassEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isCompassEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let isCompassEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isCompassEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { isCompassEnabledChannel.setMessageHandler { _, reply in do { @@ -6997,7 +7871,10 @@ class AutoMapViewApiSetup { } else { isCompassEnabledChannel.setMessageHandler(nil) } - let isRotateGesturesEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isRotateGesturesEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let isRotateGesturesEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isRotateGesturesEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { isRotateGesturesEnabledChannel.setMessageHandler { _, reply in do { @@ -7010,7 +7887,10 @@ class AutoMapViewApiSetup { } else { isRotateGesturesEnabledChannel.setMessageHandler(nil) } - let isScrollGesturesEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isScrollGesturesEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let isScrollGesturesEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isScrollGesturesEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { isScrollGesturesEnabledChannel.setMessageHandler { _, reply in do { @@ -7023,7 +7903,10 @@ class AutoMapViewApiSetup { } else { isScrollGesturesEnabledChannel.setMessageHandler(nil) } - let isScrollGesturesEnabledDuringRotateOrZoomChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isScrollGesturesEnabledDuringRotateOrZoom\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let isScrollGesturesEnabledDuringRotateOrZoomChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isScrollGesturesEnabledDuringRotateOrZoom\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { isScrollGesturesEnabledDuringRotateOrZoomChannel.setMessageHandler { _, reply in do { @@ -7036,7 +7919,10 @@ class AutoMapViewApiSetup { } else { isScrollGesturesEnabledDuringRotateOrZoomChannel.setMessageHandler(nil) } - let isTiltGesturesEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTiltGesturesEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let isTiltGesturesEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTiltGesturesEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { isTiltGesturesEnabledChannel.setMessageHandler { _, reply in do { @@ -7049,7 +7935,10 @@ class AutoMapViewApiSetup { } else { isTiltGesturesEnabledChannel.setMessageHandler(nil) } - let isMapToolbarEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isMapToolbarEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let isMapToolbarEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isMapToolbarEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { isMapToolbarEnabledChannel.setMessageHandler { _, reply in do { @@ -7062,7 +7951,10 @@ class AutoMapViewApiSetup { } else { isMapToolbarEnabledChannel.setMessageHandler(nil) } - let isTrafficEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTrafficEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let isTrafficEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTrafficEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { isTrafficEnabledChannel.setMessageHandler { _, reply in do { @@ -7075,7 +7967,10 @@ class AutoMapViewApiSetup { } else { isTrafficEnabledChannel.setMessageHandler(nil) } - let isTrafficPromptsEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTrafficPromptsEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let isTrafficPromptsEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTrafficPromptsEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { isTrafficPromptsEnabledChannel.setMessageHandler { _, reply in do { @@ -7088,7 +7983,10 @@ class AutoMapViewApiSetup { } else { isTrafficPromptsEnabledChannel.setMessageHandler(nil) } - let isTrafficIncidentCardsEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTrafficIncidentCardsEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let isTrafficIncidentCardsEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTrafficIncidentCardsEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { isTrafficIncidentCardsEnabledChannel.setMessageHandler { _, reply in do { @@ -7101,7 +7999,10 @@ class AutoMapViewApiSetup { } else { isTrafficIncidentCardsEnabledChannel.setMessageHandler(nil) } - let isNavigationTripProgressBarEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isNavigationTripProgressBarEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let isNavigationTripProgressBarEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isNavigationTripProgressBarEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { isNavigationTripProgressBarEnabledChannel.setMessageHandler { _, reply in do { @@ -7114,7 +8015,10 @@ class AutoMapViewApiSetup { } else { isNavigationTripProgressBarEnabledChannel.setMessageHandler(nil) } - let isSpeedLimitIconEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isSpeedLimitIconEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let isSpeedLimitIconEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isSpeedLimitIconEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { isSpeedLimitIconEnabledChannel.setMessageHandler { _, reply in do { @@ -7127,7 +8031,10 @@ class AutoMapViewApiSetup { } else { isSpeedLimitIconEnabledChannel.setMessageHandler(nil) } - let isSpeedometerEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isSpeedometerEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let isSpeedometerEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isSpeedometerEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { isSpeedometerEnabledChannel.setMessageHandler { _, reply in do { @@ -7140,7 +8047,10 @@ class AutoMapViewApiSetup { } else { isSpeedometerEnabledChannel.setMessageHandler(nil) } - let isNavigationUIEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isNavigationUIEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let isNavigationUIEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isNavigationUIEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { isNavigationUIEnabledChannel.setMessageHandler { _, reply in do { @@ -7153,7 +8063,10 @@ class AutoMapViewApiSetup { } else { isNavigationUIEnabledChannel.setMessageHandler(nil) } - let isIndoorEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isIndoorEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let isIndoorEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isIndoorEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { isIndoorEnabledChannel.setMessageHandler { _, reply in do { @@ -7166,7 +8079,10 @@ class AutoMapViewApiSetup { } else { isIndoorEnabledChannel.setMessageHandler(nil) } - let setIndoorEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setIndoorEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let setIndoorEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setIndoorEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { setIndoorEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -7181,7 +8097,10 @@ class AutoMapViewApiSetup { } else { setIndoorEnabledChannel.setMessageHandler(nil) } - let getFocusedIndoorBuildingChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getFocusedIndoorBuilding\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let getFocusedIndoorBuildingChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getFocusedIndoorBuilding\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { getFocusedIndoorBuildingChannel.setMessageHandler { _, reply in do { @@ -7194,7 +8113,10 @@ class AutoMapViewApiSetup { } else { getFocusedIndoorBuildingChannel.setMessageHandler(nil) } - let activateIndoorLevelChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.activateIndoorLevel\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let activateIndoorLevelChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.activateIndoorLevel\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { activateIndoorLevelChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -7209,7 +8131,10 @@ class AutoMapViewApiSetup { } else { activateIndoorLevelChannel.setMessageHandler(nil) } - let showRouteOverviewChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.showRouteOverview\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let showRouteOverviewChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.showRouteOverview\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { showRouteOverviewChannel.setMessageHandler { _, reply in do { @@ -7222,7 +8147,10 @@ class AutoMapViewApiSetup { } else { showRouteOverviewChannel.setMessageHandler(nil) } - let getMarkersChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMarkers\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let getMarkersChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMarkers\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { getMarkersChannel.setMessageHandler { _, reply in do { @@ -7235,7 +8163,10 @@ class AutoMapViewApiSetup { } else { getMarkersChannel.setMessageHandler(nil) } - let addMarkersChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addMarkers\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let addMarkersChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addMarkers\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { addMarkersChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -7250,7 +8181,10 @@ class AutoMapViewApiSetup { } else { addMarkersChannel.setMessageHandler(nil) } - let updateMarkersChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updateMarkers\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let updateMarkersChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updateMarkers\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { updateMarkersChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -7265,7 +8199,10 @@ class AutoMapViewApiSetup { } else { updateMarkersChannel.setMessageHandler(nil) } - let removeMarkersChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removeMarkers\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let removeMarkersChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removeMarkers\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { removeMarkersChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -7280,7 +8217,10 @@ class AutoMapViewApiSetup { } else { removeMarkersChannel.setMessageHandler(nil) } - let clearMarkersChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearMarkers\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let clearMarkersChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearMarkers\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { clearMarkersChannel.setMessageHandler { _, reply in do { @@ -7293,7 +8233,9 @@ class AutoMapViewApiSetup { } else { clearMarkersChannel.setMessageHandler(nil) } - let clearChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clear\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let clearChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clear\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { clearChannel.setMessageHandler { _, reply in do { @@ -7306,7 +8248,10 @@ class AutoMapViewApiSetup { } else { clearChannel.setMessageHandler(nil) } - let getPolygonsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getPolygons\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let getPolygonsChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getPolygons\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { getPolygonsChannel.setMessageHandler { _, reply in do { @@ -7319,7 +8264,10 @@ class AutoMapViewApiSetup { } else { getPolygonsChannel.setMessageHandler(nil) } - let addPolygonsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addPolygons\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let addPolygonsChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addPolygons\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { addPolygonsChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -7334,7 +8282,10 @@ class AutoMapViewApiSetup { } else { addPolygonsChannel.setMessageHandler(nil) } - let updatePolygonsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updatePolygons\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let updatePolygonsChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updatePolygons\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { updatePolygonsChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -7349,7 +8300,10 @@ class AutoMapViewApiSetup { } else { updatePolygonsChannel.setMessageHandler(nil) } - let removePolygonsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removePolygons\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let removePolygonsChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removePolygons\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { removePolygonsChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -7364,7 +8318,10 @@ class AutoMapViewApiSetup { } else { removePolygonsChannel.setMessageHandler(nil) } - let clearPolygonsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearPolygons\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let clearPolygonsChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearPolygons\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { clearPolygonsChannel.setMessageHandler { _, reply in do { @@ -7377,7 +8334,10 @@ class AutoMapViewApiSetup { } else { clearPolygonsChannel.setMessageHandler(nil) } - let getPolylinesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getPolylines\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let getPolylinesChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getPolylines\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { getPolylinesChannel.setMessageHandler { _, reply in do { @@ -7390,7 +8350,10 @@ class AutoMapViewApiSetup { } else { getPolylinesChannel.setMessageHandler(nil) } - let addPolylinesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addPolylines\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let addPolylinesChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addPolylines\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { addPolylinesChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -7405,7 +8368,10 @@ class AutoMapViewApiSetup { } else { addPolylinesChannel.setMessageHandler(nil) } - let updatePolylinesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updatePolylines\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let updatePolylinesChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updatePolylines\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { updatePolylinesChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -7420,7 +8386,10 @@ class AutoMapViewApiSetup { } else { updatePolylinesChannel.setMessageHandler(nil) } - let removePolylinesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removePolylines\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let removePolylinesChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removePolylines\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { removePolylinesChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -7435,7 +8404,10 @@ class AutoMapViewApiSetup { } else { removePolylinesChannel.setMessageHandler(nil) } - let clearPolylinesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearPolylines\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let clearPolylinesChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearPolylines\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { clearPolylinesChannel.setMessageHandler { _, reply in do { @@ -7448,7 +8420,10 @@ class AutoMapViewApiSetup { } else { clearPolylinesChannel.setMessageHandler(nil) } - let getCirclesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getCircles\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let getCirclesChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getCircles\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { getCirclesChannel.setMessageHandler { _, reply in do { @@ -7461,7 +8436,10 @@ class AutoMapViewApiSetup { } else { getCirclesChannel.setMessageHandler(nil) } - let addCirclesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addCircles\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let addCirclesChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addCircles\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { addCirclesChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -7476,7 +8454,10 @@ class AutoMapViewApiSetup { } else { addCirclesChannel.setMessageHandler(nil) } - let updateCirclesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updateCircles\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let updateCirclesChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updateCircles\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { updateCirclesChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -7491,7 +8472,10 @@ class AutoMapViewApiSetup { } else { updateCirclesChannel.setMessageHandler(nil) } - let removeCirclesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removeCircles\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let removeCirclesChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removeCircles\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { removeCirclesChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -7506,7 +8490,10 @@ class AutoMapViewApiSetup { } else { removeCirclesChannel.setMessageHandler(nil) } - let clearCirclesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearCircles\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let clearCirclesChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearCircles\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { clearCirclesChannel.setMessageHandler { _, reply in do { @@ -7519,7 +8506,10 @@ class AutoMapViewApiSetup { } else { clearCirclesChannel.setMessageHandler(nil) } - let enableOnCameraChangedEventsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.enableOnCameraChangedEvents\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let enableOnCameraChangedEventsChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.enableOnCameraChangedEvents\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { enableOnCameraChangedEventsChannel.setMessageHandler { _, reply in do { @@ -7532,7 +8522,10 @@ class AutoMapViewApiSetup { } else { enableOnCameraChangedEventsChannel.setMessageHandler(nil) } - let isAutoScreenAvailableChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isAutoScreenAvailable\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let isAutoScreenAvailableChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isAutoScreenAvailable\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { isAutoScreenAvailableChannel.setMessageHandler { _, reply in do { @@ -7545,7 +8538,10 @@ class AutoMapViewApiSetup { } else { isAutoScreenAvailableChannel.setMessageHandler(nil) } - let setPaddingChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setPadding\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let setPaddingChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setPadding\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { setPaddingChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -7560,7 +8556,10 @@ class AutoMapViewApiSetup { } else { setPaddingChannel.setMessageHandler(nil) } - let getPaddingChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getPadding\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let getPaddingChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getPadding\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { getPaddingChannel.setMessageHandler { _, reply in do { @@ -7573,7 +8572,10 @@ class AutoMapViewApiSetup { } else { getPaddingChannel.setMessageHandler(nil) } - let getMapColorSchemeChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMapColorScheme\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let getMapColorSchemeChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMapColorScheme\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { getMapColorSchemeChannel.setMessageHandler { _, reply in do { @@ -7586,7 +8588,10 @@ class AutoMapViewApiSetup { } else { getMapColorSchemeChannel.setMessageHandler(nil) } - let setMapColorSchemeChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapColorScheme\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let setMapColorSchemeChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapColorScheme\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { setMapColorSchemeChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -7601,7 +8606,10 @@ class AutoMapViewApiSetup { } else { setMapColorSchemeChannel.setMessageHandler(nil) } - let getForceNightModeChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getForceNightMode\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let getForceNightModeChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getForceNightMode\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { getForceNightModeChannel.setMessageHandler { _, reply in do { @@ -7614,7 +8622,10 @@ class AutoMapViewApiSetup { } else { getForceNightModeChannel.setMessageHandler(nil) } - let setForceNightModeChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setForceNightMode\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let setForceNightModeChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setForceNightMode\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { setForceNightModeChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -7629,7 +8640,10 @@ class AutoMapViewApiSetup { } else { setForceNightModeChannel.setMessageHandler(nil) } - let sendCustomNavigationAutoEventChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.sendCustomNavigationAutoEvent\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let sendCustomNavigationAutoEventChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.sendCustomNavigationAutoEvent\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { sendCustomNavigationAutoEventChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -7649,12 +8663,22 @@ class AutoMapViewApiSetup { } /// Generated protocol from Pigeon that represents Flutter messages that can be called from Swift. protocol AutoViewEventApiProtocol { - func onCustomNavigationAutoEvent(event eventArg: String, data dataArg: Any, completion: @escaping (Result) -> Void) - func onAutoScreenAvailabilityChanged(isAvailable isAvailableArg: Bool, completion: @escaping (Result) -> Void) - func onPromptVisibilityChanged(promptVisible promptVisibleArg: Bool, completion: @escaping (Result) -> Void) - func onNavigationUIEnabledChanged(navigationUIEnabled navigationUIEnabledArg: Bool, completion: @escaping (Result) -> Void) - func onIndoorFocusedBuildingChanged(building buildingArg: IndoorBuildingDto?, completion: @escaping (Result) -> Void) - func onIndoorActiveLevelChanged(building buildingArg: IndoorBuildingDto?, completion: @escaping (Result) -> Void) + func onCustomNavigationAutoEvent( + event eventArg: String, data dataArg: Any, + completion: @escaping (Result) -> Void) + func onAutoScreenAvailabilityChanged( + isAvailable isAvailableArg: Bool, completion: @escaping (Result) -> Void) + func onPromptVisibilityChanged( + promptVisible promptVisibleArg: Bool, completion: @escaping (Result) -> Void) + func onNavigationUIEnabledChanged( + navigationUIEnabled navigationUIEnabledArg: Bool, + completion: @escaping (Result) -> Void) + func onIndoorFocusedBuildingChanged( + building buildingArg: IndoorBuildingDto?, + completion: @escaping (Result) -> Void) + func onIndoorActiveLevelChanged( + building buildingArg: IndoorBuildingDto?, + completion: @escaping (Result) -> Void) } class AutoViewEventApi: AutoViewEventApiProtocol { private let binaryMessenger: FlutterBinaryMessenger @@ -7666,9 +8690,14 @@ class AutoViewEventApi: AutoViewEventApiProtocol { var codec: MessagesPigeonCodec { return MessagesPigeonCodec.shared } - func onCustomNavigationAutoEvent(event eventArg: String, data dataArg: Any, completion: @escaping (Result) -> Void) { - let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onCustomNavigationAutoEvent\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func onCustomNavigationAutoEvent( + event eventArg: String, data dataArg: Any, + completion: @escaping (Result) -> Void + ) { + let channelName: String = + "dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onCustomNavigationAutoEvent\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([eventArg, dataArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -7684,9 +8713,13 @@ class AutoViewEventApi: AutoViewEventApiProtocol { } } } - func onAutoScreenAvailabilityChanged(isAvailable isAvailableArg: Bool, completion: @escaping (Result) -> Void) { - let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onAutoScreenAvailabilityChanged\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func onAutoScreenAvailabilityChanged( + isAvailable isAvailableArg: Bool, completion: @escaping (Result) -> Void + ) { + let channelName: String = + "dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onAutoScreenAvailabilityChanged\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([isAvailableArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -7702,9 +8735,13 @@ class AutoViewEventApi: AutoViewEventApiProtocol { } } } - func onPromptVisibilityChanged(promptVisible promptVisibleArg: Bool, completion: @escaping (Result) -> Void) { - let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onPromptVisibilityChanged\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func onPromptVisibilityChanged( + promptVisible promptVisibleArg: Bool, completion: @escaping (Result) -> Void + ) { + let channelName: String = + "dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onPromptVisibilityChanged\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([promptVisibleArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -7720,9 +8757,14 @@ class AutoViewEventApi: AutoViewEventApiProtocol { } } } - func onNavigationUIEnabledChanged(navigationUIEnabled navigationUIEnabledArg: Bool, completion: @escaping (Result) -> Void) { - let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onNavigationUIEnabledChanged\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func onNavigationUIEnabledChanged( + navigationUIEnabled navigationUIEnabledArg: Bool, + completion: @escaping (Result) -> Void + ) { + let channelName: String = + "dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onNavigationUIEnabledChanged\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([navigationUIEnabledArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -7738,9 +8780,14 @@ class AutoViewEventApi: AutoViewEventApiProtocol { } } } - func onIndoorFocusedBuildingChanged(building buildingArg: IndoorBuildingDto?, completion: @escaping (Result) -> Void) { - let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onIndoorFocusedBuildingChanged\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func onIndoorFocusedBuildingChanged( + building buildingArg: IndoorBuildingDto?, + completion: @escaping (Result) -> Void + ) { + let channelName: String = + "dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onIndoorFocusedBuildingChanged\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([buildingArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -7756,9 +8803,14 @@ class AutoViewEventApi: AutoViewEventApiProtocol { } } } - func onIndoorActiveLevelChanged(building buildingArg: IndoorBuildingDto?, completion: @escaping (Result) -> Void) { - let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onIndoorActiveLevelChanged\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func onIndoorActiveLevelChanged( + building buildingArg: IndoorBuildingDto?, + completion: @escaping (Result) -> Void + ) { + let channelName: String = + "dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onIndoorActiveLevelChanged\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([buildingArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -7784,9 +8836,15 @@ protocol NavigationInspector { class NavigationInspectorSetup { static var codec: FlutterStandardMessageCodec { MessagesPigeonCodec.shared } /// Sets up an instance of `NavigationInspector` to handle messages through the `binaryMessenger`. - static func setUp(binaryMessenger: FlutterBinaryMessenger, api: NavigationInspector?, messageChannelSuffix: String = "") { + static func setUp( + binaryMessenger: FlutterBinaryMessenger, api: NavigationInspector?, + messageChannelSuffix: String = "" + ) { let channelSuffix = messageChannelSuffix.count > 0 ? ".\(messageChannelSuffix)" : "" - let isViewAttachedToSessionChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationInspector.isViewAttachedToSession\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let isViewAttachedToSessionChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.NavigationInspector.isViewAttachedToSession\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { isViewAttachedToSessionChannel.setMessageHandler { message, reply in let args = message as! [Any?] diff --git a/lib/src/method_channel/messages.g.dart b/lib/src/method_channel/messages.g.dart index 2ed8c07c..47cf362f 100644 --- a/lib/src/method_channel/messages.g.dart +++ b/lib/src/method_channel/messages.g.dart @@ -29,7 +29,11 @@ PlatformException _createConnectionError(String channelName) { ); } -List wrapResponse({Object? result, PlatformException? error, bool empty = false}) { +List wrapResponse({ + Object? result, + PlatformException? error, + bool empty = false, +}) { if (empty) { return []; } @@ -38,25 +42,30 @@ List wrapResponse({Object? result, PlatformException? error, bool empty } return [error.code, error.message, error.details]; } + bool _deepEquals(Object? a, Object? b) { if (a is List && b is List) { return a.length == b.length && - a.indexed - .every(((int, dynamic) item) => _deepEquals(item.$2, b[item.$1])); + a.indexed.every( + ((int, dynamic) item) => _deepEquals(item.$2, b[item.$1]), + ); } if (a is Map && b is Map) { - return a.length == b.length && a.entries.every((MapEntry entry) => - (b as Map).containsKey(entry.key) && - _deepEquals(entry.value, b[entry.key])); + return a.length == b.length && + a.entries.every( + (MapEntry entry) => + (b as Map).containsKey(entry.key) && + _deepEquals(entry.value, b[entry.key]), + ); } return a == b; } - /// Describes the type of map to construct. enum MapViewTypeDto { /// Navigation view supports navigation overlay, and current navigation session is displayed on the map. navigation, + /// Classic map view, without navigation overlay. map, } @@ -66,24 +75,21 @@ enum NavigationUIEnabledPreferenceDto { /// Navigation UI gets enabled if the navigation /// session has already been successfully started. automatic, + /// Navigation UI is disabled. disabled, } -enum MapTypeDto { - none, - normal, - satellite, - terrain, - hybrid, -} +enum MapTypeDto { none, normal, satellite, terrain, hybrid } /// Map color scheme mode. enum MapColorSchemeDto { /// Follow system or SDK default (automatic). followSystem, + /// Force light color scheme. light, + /// Force dark color scheme. dark, } @@ -92,23 +98,23 @@ enum MapColorSchemeDto { enum NavigationForceNightModeDto { /// Let the SDK automatically determine day or night. auto, + /// Force day mode regardless of time or location. forceDay, + /// Force night mode regardless of time or location. forceNight, } -enum CameraPerspectiveDto { - tilted, - topDownHeadingUp, - topDownNorthUp, -} +enum CameraPerspectiveDto { tilted, topDownHeadingUp, topDownNorthUp } enum RegisteredImageTypeDto { /// Default type used when custom bitmaps are uploaded to registry regular, + /// Maneuver image generated from StepInfo data maneuver, + /// Lanes guidance image generated from StepInfo data lanes, } @@ -120,23 +126,11 @@ enum MarkerEventTypeDto { infoWindowLongClicked, } -enum MarkerDragEventTypeDto { - drag, - dragStart, - dragEnd, -} +enum MarkerDragEventTypeDto { drag, dragStart, dragEnd } -enum StrokeJointTypeDto { - bevel, - defaultJoint, - round, -} +enum StrokeJointTypeDto { bevel, defaultJoint, round } -enum PatternTypeDto { - dash, - dot, - gap, -} +enum PatternTypeDto { dash, dot, gap } enum CameraEventTypeDto { moveStartedByApi, @@ -147,25 +141,11 @@ enum CameraEventTypeDto { onCameraStoppedFollowingLocation, } -enum AlternateRoutesStrategyDto { - all, - none, - one, -} +enum AlternateRoutesStrategyDto { all, none, one } -enum RoutingStrategyDto { - defaultBest, - deltaToTargetDistance, - shorter, -} +enum RoutingStrategyDto { defaultBest, deltaToTargetDistance, shorter } -enum TravelModeDto { - driving, - cycling, - walking, - twoWheeler, - taxi, -} +enum TravelModeDto { driving, cycling, walking, twoWheeler, taxi } enum RouteStatusDto { internalError, @@ -185,30 +165,13 @@ enum RouteStatusDto { unknown, } -enum TrafficDelaySeverityDto { - light, - medium, - heavy, - noData, -} +enum TrafficDelaySeverityDto { light, medium, heavy, noData } -enum AudioGuidanceTypeDto { - silent, - alertsOnly, - alertsAndGuidance, -} +enum AudioGuidanceTypeDto { silent, alertsOnly, alertsAndGuidance } -enum SpeedAlertSeverityDto { - unknown, - notSpeeding, - minor, - major, -} +enum SpeedAlertSeverityDto { unknown, notSpeeding, minor, major } -enum RouteSegmentTrafficDataStatusDto { - ok, - unavailable, -} +enum RouteSegmentTrafficDataStatusDto { ok, unavailable } enum RouteSegmentTrafficDataRoadStretchRenderingDataStyleDto { unknown, @@ -220,134 +183,199 @@ enum RouteSegmentTrafficDataRoadStretchRenderingDataStyleDto { enum ManeuverDto { /// Arrival at a destination. destination, + /// Starting point of the maneuver. depart, + /// Arrival at a destination located on the left side of the road. destinationLeft, + /// Arrival at a destination located on the right side of the road. destinationRight, + /// Take the boat ferry. ferryBoat, + /// Take the train ferry. ferryTrain, + /// Current road joins another road slightly on the left. forkLeft, + /// Current road joins another road slightly on the right. forkRight, + /// Current road joins another on the left. mergeLeft, + /// Current road joins another on the right. mergeRight, + /// Current road joins another. mergeUnspecified, + /// The street name changes. nameChange, + /// Keep to the left side of the road when exiting a turnpike or freeway as the road diverges. offRampKeepLeft, + /// Keep to the right side of the road when exiting a turnpike or freeway as the road diverges. offRampKeepRight, + /// Regular left turn to exit a turnpike or freeway. offRampLeft, + /// Regular right turn to exit a turnpike or freeway. offRampRight, + /// Sharp left turn to exit a turnpike or freeway. offRampSharpLeft, + /// Sharp right turn to exit a turnpike or freeway. offRampSharpRight, + /// Slight left turn to exit a turnpike or freeway. offRampSlightLeft, + /// Slight right turn to exit a turnpike or freeway. offRampSlightRight, + /// Exit a turnpike or freeway. offRampUnspecified, + /// Clockwise turn onto the opposite side of the street to exit a turnpike or freeway. offRampUTurnClockwise, + /// Counterclockwise turn onto the opposite side of the street to exit a turnpike or freeway. offRampUTurnCounterclockwise, + /// Keep to the left side of the road when entering a turnpike or freeway as the road diverges. onRampKeepLeft, + /// Keep to the right side of the road when entering a turnpike or freeway as the road diverges. onRampKeepRight, + /// Regular left turn to enter a turnpike or freeway. onRampLeft, + /// Regular right turn to enter a turnpike or freeway. onRampRight, + /// Sharp left turn to enter a turnpike or freeway. onRampSharpLeft, + /// Sharp right turn to enter a turnpike or freeway. onRampSharpRight, + /// Slight left turn to enter a turnpike or freeway. onRampSlightLeft, + /// Slight right turn to enter a turnpike or freeway. onRampSlightRight, + /// Enter a turnpike or freeway. onRampUnspecified, + /// Clockwise turn onto the opposite side of the street to enter a turnpike or freeway. onRampUTurnClockwise, + /// Counterclockwise turn onto the opposite side of the street to enter a turnpike or freeway. onRampUTurnCounterclockwise, + /// Enter a roundabout in the clockwise direction. roundaboutClockwise, + /// Enter a roundabout in the counterclockwise direction. roundaboutCounterclockwise, + /// Exit a roundabout in the clockwise direction. roundaboutExitClockwise, + /// Exit a roundabout in the counterclockwise direction. roundaboutExitCounterclockwise, + /// Enter a roundabout in the clockwise direction and turn left. roundaboutLeftClockwise, + /// Enter a roundabout in the counterclockwise direction and turn left. roundaboutLeftCounterclockwise, + /// Enter a roundabout in the clockwise direction and turn right. roundaboutRightClockwise, + /// Enter a roundabout in the counterclockwise direction and turn right. roundaboutRightCounterclockwise, + /// Enter a roundabout in the clockwise direction and turn sharply to the left. roundaboutSharpLeftClockwise, + /// Enter a roundabout in the counterclockwise direction and turn sharply to the left. roundaboutSharpLeftCounterclockwise, + /// Enter a roundabout in the clockwise direction and turn sharply to the right. roundaboutSharpRightClockwise, + /// Enter a roundabout in the counterclockwise direction and turn sharply to the right. roundaboutSharpRightCounterclockwise, + /// Enter a roundabout in the clockwise direction and turn slightly left. roundaboutSlightLeftClockwise, + /// Enter a roundabout in the counterclockwise direction and turn slightly to the left. roundaboutSlightLeftCounterclockwise, + /// Enter a roundabout in the clockwise direction and turn slightly to the right. roundaboutSlightRightClockwise, + /// Enter a roundabout in the counterclockwise direction and turn slightly to the right. roundaboutSlightRightCounterclockwise, + /// Enter a roundabout in the clockwise direction and continue straight. roundaboutStraightClockwise, + /// Enter a roundabout in the counterclockwise direction and continue straight. roundaboutStraightCounterclockwise, + /// Enter a roundabout in the clockwise direction and turn clockwise onto the opposite side of the street. roundaboutUTurnClockwise, + /// Enter a roundabout in the counterclockwise direction and turn counterclockwise onto the opposite side of the street. roundaboutUTurnCounterclockwise, + /// Continue straight. straight, + /// Keep left as the road diverges. turnKeepLeft, + /// Keep right as the road diverges. turnKeepRight, + /// Regular left turn at an intersection. turnLeft, + /// Regular right turn at an intersection. turnRight, + /// Sharp left turn at an intersection. turnSharpLeft, + /// Sharp right turn at an intersection. turnSharpRight, + /// Slight left turn at an intersection. turnSlightLeft, + /// Slight right turn at an intersection. turnSlightRight, + /// Clockwise turn onto the opposite side of the street. turnUTurnClockwise, + /// Counterclockwise turn onto the opposite side of the street. turnUTurnCounterclockwise, + /// Unknown maneuver. unknown, } @@ -356,8 +384,10 @@ enum ManeuverDto { enum DrivingSideDto { /// Drive-on-left side. left, + /// Unspecified side. none, + /// Drive-on-right side. right, } @@ -366,10 +396,13 @@ enum DrivingSideDto { enum NavStateDto { /// Actively navigating. enroute, + /// Actively navigating but searching for a new route. rerouting, + /// Navigation has ended. stopped, + /// Error or unspecified state. unknown, } @@ -378,22 +411,31 @@ enum NavStateDto { enum LaneShapeDto { /// Normal left turn (45-135 degrees). normalLeft, + /// Normal right turn (45-135 degrees). normalRight, + /// Sharp left turn (135-175 degrees). sharpLeft, + /// Sharp right turn (135-175 degrees). sharpRight, + /// Slight left turn (10-45 degrees). slightLeft, + /// Slight right turn (10-45 degrees). slightRight, + /// No turn. straight, + /// Shape is unknown. unknown, + /// A left turn onto the opposite side of the same street (175-180 degrees). uTurnLeft, + /// A right turn onto the opposite side of the same street (175-180 degrees). uTurnRight, } @@ -403,6 +445,7 @@ enum TaskRemovedBehaviorDto { /// The default state, indicating that navigation guidance, /// location updates, and notification should persist after user removes the application task. continueService, + /// Indicates that navigation guidance, location updates, and notification should shut down immediately when the user removes the application task. quitService, } @@ -448,7 +491,8 @@ class AutoMapOptionsDto { } Object encode() { - return _toList(); } + return _toList(); + } static AutoMapOptionsDto decode(Object result) { result as List; @@ -458,7 +502,8 @@ class AutoMapOptionsDto { mapType: result[2] as MapTypeDto?, mapColorScheme: result[3] as MapColorSchemeDto?, forceNightMode: result[4] as NavigationForceNightModeDto?, - navigationUIEnabledPreference: result[5] as NavigationUIEnabledPreferenceDto?, + navigationUIEnabledPreference: + result[5] as NavigationUIEnabledPreferenceDto?, ); } @@ -476,8 +521,7 @@ class AutoMapOptionsDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()) -; + int get hashCode => Object.hashAll(_toList()); } /// Object containing map options used to initialize Google Map view. @@ -573,7 +617,8 @@ class MapOptionsDto { } Object encode() { - return _toList(); } + return _toList(); + } static MapOptionsDto decode(Object result) { result as List; @@ -611,8 +656,7 @@ class MapOptionsDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()) -; + int get hashCode => Object.hashAll(_toList()); } /// Object containing navigation options used to initialize Google Navigation view. @@ -629,19 +673,18 @@ class NavigationViewOptionsDto { NavigationForceNightModeDto forceNightMode; List _toList() { - return [ - navigationUIEnabledPreference, - forceNightMode, - ]; + return [navigationUIEnabledPreference, forceNightMode]; } Object encode() { - return _toList(); } + return _toList(); + } static NavigationViewOptionsDto decode(Object result) { result as List; return NavigationViewOptionsDto( - navigationUIEnabledPreference: result[0]! as NavigationUIEnabledPreferenceDto, + navigationUIEnabledPreference: + result[0]! as NavigationUIEnabledPreferenceDto, forceNightMode: result[1]! as NavigationForceNightModeDto, ); } @@ -649,7 +692,8 @@ class NavigationViewOptionsDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes bool operator ==(Object other) { - if (other is! NavigationViewOptionsDto || other.runtimeType != runtimeType) { + if (other is! NavigationViewOptionsDto || + other.runtimeType != runtimeType) { return false; } if (identical(this, other)) { @@ -660,8 +704,7 @@ class NavigationViewOptionsDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()) -; + int get hashCode => Object.hashAll(_toList()); } /// A message for creating a new navigation view. @@ -682,15 +725,12 @@ class ViewCreationOptionsDto { NavigationViewOptionsDto? navigationViewOptions; List _toList() { - return [ - mapViewType, - mapOptions, - navigationViewOptions, - ]; + return [mapViewType, mapOptions, navigationViewOptions]; } Object encode() { - return _toList(); } + return _toList(); + } static ViewCreationOptionsDto decode(Object result) { result as List; @@ -715,8 +755,7 @@ class ViewCreationOptionsDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()) -; + int get hashCode => Object.hashAll(_toList()); } class CameraPositionDto { @@ -736,16 +775,12 @@ class CameraPositionDto { double zoom; List _toList() { - return [ - bearing, - target, - tilt, - zoom, - ]; + return [bearing, target, tilt, zoom]; } Object encode() { - return _toList(); } + return _toList(); + } static CameraPositionDto decode(Object result) { result as List; @@ -771,15 +806,11 @@ class CameraPositionDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()) -; + int get hashCode => Object.hashAll(_toList()); } class MarkerDto { - MarkerDto({ - required this.markerId, - required this.options, - }); + MarkerDto({required this.markerId, required this.options}); /// Identifies marker String markerId; @@ -788,14 +819,12 @@ class MarkerDto { MarkerOptionsDto options; List _toList() { - return [ - markerId, - options, - ]; + return [markerId, options]; } Object encode() { - return _toList(); } + return _toList(); + } static MarkerDto decode(Object result) { result as List; @@ -819,8 +848,7 @@ class MarkerDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()) -; + int get hashCode => Object.hashAll(_toList()); } class MarkerOptionsDto { @@ -877,7 +905,8 @@ class MarkerOptionsDto { } Object encode() { - return _toList(); } + return _toList(); + } static MarkerOptionsDto decode(Object result) { result as List; @@ -910,8 +939,7 @@ class MarkerOptionsDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()) -; + int get hashCode => Object.hashAll(_toList()); } class ImageDescriptorDto { @@ -934,17 +962,12 @@ class ImageDescriptorDto { RegisteredImageTypeDto type; List _toList() { - return [ - registeredImageId, - imagePixelRatio, - width, - height, - type, - ]; + return [registeredImageId, imagePixelRatio, width, height, type]; } Object encode() { - return _toList(); } + return _toList(); + } static ImageDescriptorDto decode(Object result) { result as List; @@ -971,16 +994,11 @@ class ImageDescriptorDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()) -; + int get hashCode => Object.hashAll(_toList()); } class InfoWindowDto { - InfoWindowDto({ - this.title, - this.snippet, - required this.anchor, - }); + InfoWindowDto({this.title, this.snippet, required this.anchor}); String? title; @@ -989,15 +1007,12 @@ class InfoWindowDto { MarkerAnchorDto anchor; List _toList() { - return [ - title, - snippet, - anchor, - ]; + return [title, snippet, anchor]; } Object encode() { - return _toList(); } + return _toList(); + } static InfoWindowDto decode(Object result) { result as List; @@ -1022,36 +1037,27 @@ class InfoWindowDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()) -; + int get hashCode => Object.hashAll(_toList()); } class MarkerAnchorDto { - MarkerAnchorDto({ - required this.u, - required this.v, - }); + MarkerAnchorDto({required this.u, required this.v}); double u; double v; List _toList() { - return [ - u, - v, - ]; + return [u, v]; } Object encode() { - return _toList(); } + return _toList(); + } static MarkerAnchorDto decode(Object result) { result as List; - return MarkerAnchorDto( - u: result[0]! as double, - v: result[1]! as double, - ); + return MarkerAnchorDto(u: result[0]! as double, v: result[1]! as double); } @override @@ -1068,8 +1074,7 @@ class MarkerAnchorDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()) -; + int get hashCode => Object.hashAll(_toList()); } /// Represents a point of interest (POI) on the map. @@ -1092,15 +1097,12 @@ class PointOfInterestDto { LatLngDto latLng; List _toList() { - return [ - placeID, - name, - latLng, - ]; + return [placeID, name, latLng]; } Object encode() { - return _toList(); } + return _toList(); + } static PointOfInterestDto decode(Object result) { result as List; @@ -1125,16 +1127,12 @@ class PointOfInterestDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()) -; + int get hashCode => Object.hashAll(_toList()); } /// Represents one indoor level of a focused indoor building. class IndoorLevelDto { - IndoorLevelDto({ - this.name, - this.shortName, - }); + IndoorLevelDto({this.name, this.shortName}); /// Full display name of the level. String? name; @@ -1143,14 +1141,12 @@ class IndoorLevelDto { String? shortName; List _toList() { - return [ - name, - shortName, - ]; + return [name, shortName]; } Object encode() { - return _toList(); } + return _toList(); + } static IndoorLevelDto decode(Object result) { result as List; @@ -1174,8 +1170,7 @@ class IndoorLevelDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()) -; + int get hashCode => Object.hashAll(_toList()); } /// Represents focused indoor building metadata. @@ -1209,7 +1204,8 @@ class IndoorBuildingDto { } Object encode() { - return _toList(); } + return _toList(); + } static IndoorBuildingDto decode(Object result) { result as List; @@ -1235,29 +1231,23 @@ class IndoorBuildingDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()) -; + int get hashCode => Object.hashAll(_toList()); } class PolygonDto { - PolygonDto({ - required this.polygonId, - required this.options, - }); + PolygonDto({required this.polygonId, required this.options}); String polygonId; PolygonOptionsDto options; List _toList() { - return [ - polygonId, - options, - ]; + return [polygonId, options]; } Object encode() { - return _toList(); } + return _toList(); + } static PolygonDto decode(Object result) { result as List; @@ -1281,8 +1271,7 @@ class PolygonDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()) -; + int get hashCode => Object.hashAll(_toList()); } class PolygonOptionsDto { @@ -1331,7 +1320,8 @@ class PolygonOptionsDto { } Object encode() { - return _toList(); } + return _toList(); + } static PolygonOptionsDto decode(Object result) { result as List; @@ -1362,25 +1352,21 @@ class PolygonOptionsDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()) -; + int get hashCode => Object.hashAll(_toList()); } class PolygonHoleDto { - PolygonHoleDto({ - required this.points, - }); + PolygonHoleDto({required this.points}); List points; List _toList() { - return [ - points, - ]; + return [points]; } Object encode() { - return _toList(); } + return _toList(); + } static PolygonHoleDto decode(Object result) { result as List; @@ -1403,16 +1389,11 @@ class PolygonHoleDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()) -; + int get hashCode => Object.hashAll(_toList()); } class StyleSpanStrokeStyleDto { - StyleSpanStrokeStyleDto({ - this.solidColor, - this.fromColor, - this.toColor, - }); + StyleSpanStrokeStyleDto({this.solidColor, this.fromColor, this.toColor}); int? solidColor; @@ -1421,15 +1402,12 @@ class StyleSpanStrokeStyleDto { int? toColor; List _toList() { - return [ - solidColor, - fromColor, - toColor, - ]; + return [solidColor, fromColor, toColor]; } Object encode() { - return _toList(); } + return _toList(); + } static StyleSpanStrokeStyleDto decode(Object result) { result as List; @@ -1454,29 +1432,23 @@ class StyleSpanStrokeStyleDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()) -; + int get hashCode => Object.hashAll(_toList()); } class StyleSpanDto { - StyleSpanDto({ - required this.length, - required this.style, - }); + StyleSpanDto({required this.length, required this.style}); double length; StyleSpanStrokeStyleDto style; List _toList() { - return [ - length, - style, - ]; + return [length, style]; } Object encode() { - return _toList(); } + return _toList(); + } static StyleSpanDto decode(Object result) { result as List; @@ -1500,29 +1472,23 @@ class StyleSpanDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()) -; + int get hashCode => Object.hashAll(_toList()); } class PolylineDto { - PolylineDto({ - required this.polylineId, - required this.options, - }); + PolylineDto({required this.polylineId, required this.options}); String polylineId; PolylineOptionsDto options; List _toList() { - return [ - polylineId, - options, - ]; + return [polylineId, options]; } Object encode() { - return _toList(); } + return _toList(); + } static PolylineDto decode(Object result) { result as List; @@ -1546,29 +1512,23 @@ class PolylineDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()) -; + int get hashCode => Object.hashAll(_toList()); } class PatternItemDto { - PatternItemDto({ - required this.type, - this.length, - }); + PatternItemDto({required this.type, this.length}); PatternTypeDto type; double? length; List _toList() { - return [ - type, - length, - ]; + return [type, length]; } Object encode() { - return _toList(); } + return _toList(); + } static PatternItemDto decode(Object result) { result as List; @@ -1592,8 +1552,7 @@ class PatternItemDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()) -; + int get hashCode => Object.hashAll(_toList()); } class PolylineOptionsDto { @@ -1646,7 +1605,8 @@ class PolylineOptionsDto { } Object encode() { - return _toList(); } + return _toList(); + } static PolylineOptionsDto decode(Object result) { result as List; @@ -1678,15 +1638,11 @@ class PolylineOptionsDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()) -; + int get hashCode => Object.hashAll(_toList()); } class CircleDto { - CircleDto({ - required this.circleId, - required this.options, - }); + CircleDto({required this.circleId, required this.options}); /// Identifies circle. String circleId; @@ -1695,14 +1651,12 @@ class CircleDto { CircleOptionsDto options; List _toList() { - return [ - circleId, - options, - ]; + return [circleId, options]; } Object encode() { - return _toList(); } + return _toList(); + } static CircleDto decode(Object result) { result as List; @@ -1726,8 +1680,7 @@ class CircleDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()) -; + int get hashCode => Object.hashAll(_toList()); } class CircleOptionsDto { @@ -1776,7 +1729,8 @@ class CircleOptionsDto { } Object encode() { - return _toList(); } + return _toList(); + } static CircleOptionsDto decode(Object result) { result as List; @@ -1807,8 +1761,7 @@ class CircleOptionsDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()) -; + int get hashCode => Object.hashAll(_toList()); } class MapPaddingDto { @@ -1828,16 +1781,12 @@ class MapPaddingDto { int right; List _toList() { - return [ - top, - left, - bottom, - right, - ]; + return [top, left, bottom, right]; } Object encode() { - return _toList(); } + return _toList(); + } static MapPaddingDto decode(Object result) { result as List; @@ -1863,8 +1812,7 @@ class MapPaddingDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()) -; + int get hashCode => Object.hashAll(_toList()); } /// Navigation header background colors. @@ -1897,7 +1845,8 @@ class NavigationHeaderStylingOptionsDto { } Object encode() { - return _toList(); } + return _toList(); + } static NavigationHeaderStylingOptionsDto decode(Object result) { result as List; @@ -1912,7 +1861,8 @@ class NavigationHeaderStylingOptionsDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes bool operator ==(Object other) { - if (other is! NavigationHeaderStylingOptionsDto || other.runtimeType != runtimeType) { + if (other is! NavigationHeaderStylingOptionsDto || + other.runtimeType != runtimeType) { return false; } if (identical(this, other)) { @@ -1923,29 +1873,23 @@ class NavigationHeaderStylingOptionsDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()) -; + int get hashCode => Object.hashAll(_toList()); } class RouteTokenOptionsDto { - RouteTokenOptionsDto({ - required this.routeToken, - this.travelMode, - }); + RouteTokenOptionsDto({required this.routeToken, this.travelMode}); String routeToken; TravelModeDto? travelMode; List _toList() { - return [ - routeToken, - travelMode, - ]; + return [routeToken, travelMode]; } Object encode() { - return _toList(); } + return _toList(); + } static RouteTokenOptionsDto decode(Object result) { result as List; @@ -1969,8 +1913,7 @@ class RouteTokenOptionsDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()) -; + int get hashCode => Object.hashAll(_toList()); } class DestinationsDto { @@ -1999,7 +1942,8 @@ class DestinationsDto { } Object encode() { - return _toList(); } + return _toList(); + } static DestinationsDto decode(Object result) { result as List; @@ -2025,8 +1969,7 @@ class DestinationsDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()) -; + int get hashCode => Object.hashAll(_toList()); } class RoutingOptionsDto { @@ -2071,7 +2014,8 @@ class RoutingOptionsDto { } Object encode() { - return _toList(); } + return _toList(); + } static RoutingOptionsDto decode(Object result) { result as List; @@ -2101,8 +2045,7 @@ class RoutingOptionsDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()) -; + int get hashCode => Object.hashAll(_toList()); } class NavigationDisplayOptionsDto { @@ -2121,15 +2064,12 @@ class NavigationDisplayOptionsDto { bool? showTrafficLights; List _toList() { - return [ - showDestinationMarkers, - showStopSigns, - showTrafficLights, - ]; + return [showDestinationMarkers, showStopSigns, showTrafficLights]; } Object encode() { - return _toList(); } + return _toList(); + } static NavigationDisplayOptionsDto decode(Object result) { result as List; @@ -2143,7 +2083,8 @@ class NavigationDisplayOptionsDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes bool operator ==(Object other) { - if (other is! NavigationDisplayOptionsDto || other.runtimeType != runtimeType) { + if (other is! NavigationDisplayOptionsDto || + other.runtimeType != runtimeType) { return false; } if (identical(this, other)) { @@ -2154,8 +2095,7 @@ class NavigationDisplayOptionsDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()) -; + int get hashCode => Object.hashAll(_toList()); } class NavigationWaypointDto { @@ -2188,7 +2128,8 @@ class NavigationWaypointDto { } Object encode() { - return _toList(); } + return _toList(); + } static NavigationWaypointDto decode(Object result) { result as List; @@ -2215,29 +2156,23 @@ class NavigationWaypointDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()) -; + int get hashCode => Object.hashAll(_toList()); } class ContinueToNextDestinationResponseDto { - ContinueToNextDestinationResponseDto({ - this.waypoint, - this.routeStatus, - }); + ContinueToNextDestinationResponseDto({this.waypoint, this.routeStatus}); NavigationWaypointDto? waypoint; RouteStatusDto? routeStatus; List _toList() { - return [ - waypoint, - routeStatus, - ]; + return [waypoint, routeStatus]; } Object encode() { - return _toList(); } + return _toList(); + } static ContinueToNextDestinationResponseDto decode(Object result) { result as List; @@ -2250,7 +2185,8 @@ class ContinueToNextDestinationResponseDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes bool operator ==(Object other) { - if (other is! ContinueToNextDestinationResponseDto || other.runtimeType != runtimeType) { + if (other is! ContinueToNextDestinationResponseDto || + other.runtimeType != runtimeType) { return false; } if (identical(this, other)) { @@ -2261,8 +2197,7 @@ class ContinueToNextDestinationResponseDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()) -; + int get hashCode => Object.hashAll(_toList()); } class NavigationTimeAndDistanceDto { @@ -2279,15 +2214,12 @@ class NavigationTimeAndDistanceDto { TrafficDelaySeverityDto delaySeverity; List _toList() { - return [ - time, - distance, - delaySeverity, - ]; + return [time, distance, delaySeverity]; } Object encode() { - return _toList(); } + return _toList(); + } static NavigationTimeAndDistanceDto decode(Object result) { result as List; @@ -2301,7 +2233,8 @@ class NavigationTimeAndDistanceDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes bool operator ==(Object other) { - if (other is! NavigationTimeAndDistanceDto || other.runtimeType != runtimeType) { + if (other is! NavigationTimeAndDistanceDto || + other.runtimeType != runtimeType) { return false; } if (identical(this, other)) { @@ -2312,8 +2245,7 @@ class NavigationTimeAndDistanceDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()) -; + int get hashCode => Object.hashAll(_toList()); } class NavigationAudioGuidanceSettingsDto { @@ -2330,15 +2262,12 @@ class NavigationAudioGuidanceSettingsDto { AudioGuidanceTypeDto? guidanceType; List _toList() { - return [ - isBluetoothAudioEnabled, - isVibrationEnabled, - guidanceType, - ]; + return [isBluetoothAudioEnabled, isVibrationEnabled, guidanceType]; } Object encode() { - return _toList(); } + return _toList(); + } static NavigationAudioGuidanceSettingsDto decode(Object result) { result as List; @@ -2352,7 +2281,8 @@ class NavigationAudioGuidanceSettingsDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes bool operator ==(Object other) { - if (other is! NavigationAudioGuidanceSettingsDto || other.runtimeType != runtimeType) { + if (other is! NavigationAudioGuidanceSettingsDto || + other.runtimeType != runtimeType) { return false; } if (identical(this, other)) { @@ -2363,31 +2293,25 @@ class NavigationAudioGuidanceSettingsDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()) -; + int get hashCode => Object.hashAll(_toList()); } class SimulationOptionsDto { - SimulationOptionsDto({ - required this.speedMultiplier, - }); + SimulationOptionsDto({required this.speedMultiplier}); double speedMultiplier; List _toList() { - return [ - speedMultiplier, - ]; + return [speedMultiplier]; } Object encode() { - return _toList(); } + return _toList(); + } static SimulationOptionsDto decode(Object result) { result as List; - return SimulationOptionsDto( - speedMultiplier: result[0]! as double, - ); + return SimulationOptionsDto(speedMultiplier: result[0]! as double); } @override @@ -2404,29 +2328,23 @@ class SimulationOptionsDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()) -; + int get hashCode => Object.hashAll(_toList()); } class LatLngDto { - LatLngDto({ - required this.latitude, - required this.longitude, - }); + LatLngDto({required this.latitude, required this.longitude}); double latitude; double longitude; List _toList() { - return [ - latitude, - longitude, - ]; + return [latitude, longitude]; } Object encode() { - return _toList(); } + return _toList(); + } static LatLngDto decode(Object result) { result as List; @@ -2450,29 +2368,23 @@ class LatLngDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()) -; + int get hashCode => Object.hashAll(_toList()); } class LatLngBoundsDto { - LatLngBoundsDto({ - required this.southwest, - required this.northeast, - }); + LatLngBoundsDto({required this.southwest, required this.northeast}); LatLngDto southwest; LatLngDto northeast; List _toList() { - return [ - southwest, - northeast, - ]; + return [southwest, northeast]; } Object encode() { - return _toList(); } + return _toList(); + } static LatLngBoundsDto decode(Object result) { result as List; @@ -2496,8 +2408,7 @@ class LatLngBoundsDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()) -; + int get hashCode => Object.hashAll(_toList()); } class SpeedingUpdatedEventDto { @@ -2511,14 +2422,12 @@ class SpeedingUpdatedEventDto { SpeedAlertSeverityDto severity; List _toList() { - return [ - percentageAboveLimit, - severity, - ]; + return [percentageAboveLimit, severity]; } Object encode() { - return _toList(); } + return _toList(); + } static SpeedingUpdatedEventDto decode(Object result) { result as List; @@ -2542,8 +2451,7 @@ class SpeedingUpdatedEventDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()) -; + int get hashCode => Object.hashAll(_toList()); } class GpsAvailabilityChangeEventDto { @@ -2557,14 +2465,12 @@ class GpsAvailabilityChangeEventDto { bool isGpsValidForNavigation; List _toList() { - return [ - isGpsLost, - isGpsValidForNavigation, - ]; + return [isGpsLost, isGpsValidForNavigation]; } Object encode() { - return _toList(); } + return _toList(); + } static GpsAvailabilityChangeEventDto decode(Object result) { result as List; @@ -2577,7 +2483,8 @@ class GpsAvailabilityChangeEventDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes bool operator ==(Object other) { - if (other is! GpsAvailabilityChangeEventDto || other.runtimeType != runtimeType) { + if (other is! GpsAvailabilityChangeEventDto || + other.runtimeType != runtimeType) { return false; } if (identical(this, other)) { @@ -2588,8 +2495,7 @@ class GpsAvailabilityChangeEventDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()) -; + int get hashCode => Object.hashAll(_toList()); } class SpeedAlertOptionsThresholdPercentageDto { @@ -2603,14 +2509,12 @@ class SpeedAlertOptionsThresholdPercentageDto { SpeedAlertSeverityDto severity; List _toList() { - return [ - percentage, - severity, - ]; + return [percentage, severity]; } Object encode() { - return _toList(); } + return _toList(); + } static SpeedAlertOptionsThresholdPercentageDto decode(Object result) { result as List; @@ -2623,7 +2527,8 @@ class SpeedAlertOptionsThresholdPercentageDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes bool operator ==(Object other) { - if (other is! SpeedAlertOptionsThresholdPercentageDto || other.runtimeType != runtimeType) { + if (other is! SpeedAlertOptionsThresholdPercentageDto || + other.runtimeType != runtimeType) { return false; } if (identical(this, other)) { @@ -2634,8 +2539,7 @@ class SpeedAlertOptionsThresholdPercentageDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()) -; + int get hashCode => Object.hashAll(_toList()); } class SpeedAlertOptionsDto { @@ -2660,7 +2564,8 @@ class SpeedAlertOptionsDto { } Object encode() { - return _toList(); } + return _toList(); + } static SpeedAlertOptionsDto decode(Object result) { result as List; @@ -2685,8 +2590,7 @@ class SpeedAlertOptionsDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()) -; + int get hashCode => Object.hashAll(_toList()); } class RouteSegmentTrafficDataRoadStretchRenderingDataDto { @@ -2703,20 +2607,20 @@ class RouteSegmentTrafficDataRoadStretchRenderingDataDto { int offsetMeters; List _toList() { - return [ - style, - lengthMeters, - offsetMeters, - ]; + return [style, lengthMeters, offsetMeters]; } Object encode() { - return _toList(); } + return _toList(); + } - static RouteSegmentTrafficDataRoadStretchRenderingDataDto decode(Object result) { + static RouteSegmentTrafficDataRoadStretchRenderingDataDto decode( + Object result, + ) { result as List; return RouteSegmentTrafficDataRoadStretchRenderingDataDto( - style: result[0]! as RouteSegmentTrafficDataRoadStretchRenderingDataStyleDto, + style: + result[0]! as RouteSegmentTrafficDataRoadStretchRenderingDataStyleDto, lengthMeters: result[1]! as int, offsetMeters: result[2]! as int, ); @@ -2725,7 +2629,8 @@ class RouteSegmentTrafficDataRoadStretchRenderingDataDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes bool operator ==(Object other) { - if (other is! RouteSegmentTrafficDataRoadStretchRenderingDataDto || other.runtimeType != runtimeType) { + if (other is! RouteSegmentTrafficDataRoadStretchRenderingDataDto || + other.runtimeType != runtimeType) { return false; } if (identical(this, other)) { @@ -2736,8 +2641,7 @@ class RouteSegmentTrafficDataRoadStretchRenderingDataDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()) -; + int get hashCode => Object.hashAll(_toList()); } class RouteSegmentTrafficDataDto { @@ -2748,30 +2652,31 @@ class RouteSegmentTrafficDataDto { RouteSegmentTrafficDataStatusDto status; - List roadStretchRenderingDataList; + List + roadStretchRenderingDataList; List _toList() { - return [ - status, - roadStretchRenderingDataList, - ]; + return [status, roadStretchRenderingDataList]; } Object encode() { - return _toList(); } + return _toList(); + } static RouteSegmentTrafficDataDto decode(Object result) { result as List; return RouteSegmentTrafficDataDto( status: result[0]! as RouteSegmentTrafficDataStatusDto, - roadStretchRenderingDataList: (result[1] as List?)!.cast(), + roadStretchRenderingDataList: (result[1] as List?)! + .cast(), ); } @override // ignore: avoid_equals_and_hash_code_on_mutable_classes bool operator ==(Object other) { - if (other is! RouteSegmentTrafficDataDto || other.runtimeType != runtimeType) { + if (other is! RouteSegmentTrafficDataDto || + other.runtimeType != runtimeType) { return false; } if (identical(this, other)) { @@ -2782,8 +2687,7 @@ class RouteSegmentTrafficDataDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()) -; + int get hashCode => Object.hashAll(_toList()); } class RouteSegmentDto { @@ -2812,7 +2716,8 @@ class RouteSegmentDto { } Object encode() { - return _toList(); } + return _toList(); + } static RouteSegmentDto decode(Object result) { result as List; @@ -2838,16 +2743,12 @@ class RouteSegmentDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()) -; + int get hashCode => Object.hashAll(_toList()); } /// One of the possible directions from a lane at the end of a route step, and whether it is on the recommended route. class LaneDirectionDto { - LaneDirectionDto({ - required this.laneShape, - required this.isRecommended, - }); + LaneDirectionDto({required this.laneShape, required this.isRecommended}); /// Shape for this lane direction. LaneShapeDto laneShape; @@ -2856,14 +2757,12 @@ class LaneDirectionDto { bool isRecommended; List _toList() { - return [ - laneShape, - isRecommended, - ]; + return [laneShape, isRecommended]; } Object encode() { - return _toList(); } + return _toList(); + } static LaneDirectionDto decode(Object result) { result as List; @@ -2887,27 +2786,23 @@ class LaneDirectionDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()) -; + int get hashCode => Object.hashAll(_toList()); } /// Single lane on the road at the end of a route step. class LaneDto { - LaneDto({ - required this.laneDirections, - }); + LaneDto({required this.laneDirections}); /// List of possible directions a driver can follow when using this lane at the end of the respective route step List laneDirections; List _toList() { - return [ - laneDirections, - ]; + return [laneDirections]; } Object encode() { - return _toList(); } + return _toList(); + } static LaneDto decode(Object result) { result as List; @@ -2930,8 +2825,7 @@ class LaneDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()) -; + int get hashCode => Object.hashAll(_toList()); } /// Information about a single step along a navigation route. @@ -3013,7 +2907,8 @@ class StepInfoDto { } Object encode() { - return _toList(); } + return _toList(); + } static StepInfoDto decode(Object result) { result as List; @@ -3048,8 +2943,7 @@ class StepInfoDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()) -; + int get hashCode => Object.hashAll(_toList()); } /// Contains information about the state of navigation, the current nav step if @@ -3122,7 +3016,8 @@ class NavInfoDto { } Object encode() { - return _toList(); } + return _toList(); + } static NavInfoDto decode(Object result) { result as List; @@ -3154,8 +3049,7 @@ class NavInfoDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()) -; + int get hashCode => Object.hashAll(_toList()); } /// UI customization parameters for the Terms and Conditions dialog. @@ -3197,7 +3091,8 @@ class TermsAndConditionsUIParamsDto { } Object encode() { - return _toList(); } + return _toList(); + } static TermsAndConditionsUIParamsDto decode(Object result) { result as List; @@ -3213,7 +3108,8 @@ class TermsAndConditionsUIParamsDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes bool operator ==(Object other) { - if (other is! TermsAndConditionsUIParamsDto || other.runtimeType != runtimeType) { + if (other is! TermsAndConditionsUIParamsDto || + other.runtimeType != runtimeType) { return false; } if (identical(this, other)) { @@ -3224,8 +3120,7 @@ class TermsAndConditionsUIParamsDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()) -; + int get hashCode => Object.hashAll(_toList()); } /// Options for step image generation in turn-by-turn navigation events. @@ -3244,14 +3139,12 @@ class StepImageGenerationOptionsDto { bool? generateLaneImages; List _toList() { - return [ - generateManeuverImages, - generateLaneImages, - ]; + return [generateManeuverImages, generateLaneImages]; } Object encode() { - return _toList(); } + return _toList(); + } static StepImageGenerationOptionsDto decode(Object result) { result as List; @@ -3264,7 +3157,8 @@ class StepImageGenerationOptionsDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes bool operator ==(Object other) { - if (other is! StepImageGenerationOptionsDto || other.runtimeType != runtimeType) { + if (other is! StepImageGenerationOptionsDto || + other.runtimeType != runtimeType) { return false; } if (identical(this, other)) { @@ -3275,11 +3169,9 @@ class StepImageGenerationOptionsDto { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()) -; + int get hashCode => Object.hashAll(_toList()); } - class _PigeonCodec extends StandardMessageCodec { const _PigeonCodec(); @override @@ -3287,229 +3179,230 @@ class _PigeonCodec extends StandardMessageCodec { if (value is int) { buffer.putUint8(4); buffer.putInt64(value); - } else if (value is MapViewTypeDto) { + } else if (value is MapViewTypeDto) { buffer.putUint8(129); writeValue(buffer, value.index); - } else if (value is NavigationUIEnabledPreferenceDto) { + } else if (value is NavigationUIEnabledPreferenceDto) { buffer.putUint8(130); writeValue(buffer, value.index); - } else if (value is MapTypeDto) { + } else if (value is MapTypeDto) { buffer.putUint8(131); writeValue(buffer, value.index); - } else if (value is MapColorSchemeDto) { + } else if (value is MapColorSchemeDto) { buffer.putUint8(132); writeValue(buffer, value.index); - } else if (value is NavigationForceNightModeDto) { + } else if (value is NavigationForceNightModeDto) { buffer.putUint8(133); writeValue(buffer, value.index); - } else if (value is CameraPerspectiveDto) { + } else if (value is CameraPerspectiveDto) { buffer.putUint8(134); writeValue(buffer, value.index); - } else if (value is RegisteredImageTypeDto) { + } else if (value is RegisteredImageTypeDto) { buffer.putUint8(135); writeValue(buffer, value.index); - } else if (value is MarkerEventTypeDto) { + } else if (value is MarkerEventTypeDto) { buffer.putUint8(136); writeValue(buffer, value.index); - } else if (value is MarkerDragEventTypeDto) { + } else if (value is MarkerDragEventTypeDto) { buffer.putUint8(137); writeValue(buffer, value.index); - } else if (value is StrokeJointTypeDto) { + } else if (value is StrokeJointTypeDto) { buffer.putUint8(138); writeValue(buffer, value.index); - } else if (value is PatternTypeDto) { + } else if (value is PatternTypeDto) { buffer.putUint8(139); writeValue(buffer, value.index); - } else if (value is CameraEventTypeDto) { + } else if (value is CameraEventTypeDto) { buffer.putUint8(140); writeValue(buffer, value.index); - } else if (value is AlternateRoutesStrategyDto) { + } else if (value is AlternateRoutesStrategyDto) { buffer.putUint8(141); writeValue(buffer, value.index); - } else if (value is RoutingStrategyDto) { + } else if (value is RoutingStrategyDto) { buffer.putUint8(142); writeValue(buffer, value.index); - } else if (value is TravelModeDto) { + } else if (value is TravelModeDto) { buffer.putUint8(143); writeValue(buffer, value.index); - } else if (value is RouteStatusDto) { + } else if (value is RouteStatusDto) { buffer.putUint8(144); writeValue(buffer, value.index); - } else if (value is TrafficDelaySeverityDto) { + } else if (value is TrafficDelaySeverityDto) { buffer.putUint8(145); writeValue(buffer, value.index); - } else if (value is AudioGuidanceTypeDto) { + } else if (value is AudioGuidanceTypeDto) { buffer.putUint8(146); writeValue(buffer, value.index); - } else if (value is SpeedAlertSeverityDto) { + } else if (value is SpeedAlertSeverityDto) { buffer.putUint8(147); writeValue(buffer, value.index); - } else if (value is RouteSegmentTrafficDataStatusDto) { + } else if (value is RouteSegmentTrafficDataStatusDto) { buffer.putUint8(148); writeValue(buffer, value.index); - } else if (value is RouteSegmentTrafficDataRoadStretchRenderingDataStyleDto) { + } else if (value + is RouteSegmentTrafficDataRoadStretchRenderingDataStyleDto) { buffer.putUint8(149); writeValue(buffer, value.index); - } else if (value is ManeuverDto) { + } else if (value is ManeuverDto) { buffer.putUint8(150); writeValue(buffer, value.index); - } else if (value is DrivingSideDto) { + } else if (value is DrivingSideDto) { buffer.putUint8(151); writeValue(buffer, value.index); - } else if (value is NavStateDto) { + } else if (value is NavStateDto) { buffer.putUint8(152); writeValue(buffer, value.index); - } else if (value is LaneShapeDto) { + } else if (value is LaneShapeDto) { buffer.putUint8(153); writeValue(buffer, value.index); - } else if (value is TaskRemovedBehaviorDto) { + } else if (value is TaskRemovedBehaviorDto) { buffer.putUint8(154); writeValue(buffer, value.index); - } else if (value is AutoMapOptionsDto) { + } else if (value is AutoMapOptionsDto) { buffer.putUint8(155); writeValue(buffer, value.encode()); - } else if (value is MapOptionsDto) { + } else if (value is MapOptionsDto) { buffer.putUint8(156); writeValue(buffer, value.encode()); - } else if (value is NavigationViewOptionsDto) { + } else if (value is NavigationViewOptionsDto) { buffer.putUint8(157); writeValue(buffer, value.encode()); - } else if (value is ViewCreationOptionsDto) { + } else if (value is ViewCreationOptionsDto) { buffer.putUint8(158); writeValue(buffer, value.encode()); - } else if (value is CameraPositionDto) { + } else if (value is CameraPositionDto) { buffer.putUint8(159); writeValue(buffer, value.encode()); - } else if (value is MarkerDto) { + } else if (value is MarkerDto) { buffer.putUint8(160); writeValue(buffer, value.encode()); - } else if (value is MarkerOptionsDto) { + } else if (value is MarkerOptionsDto) { buffer.putUint8(161); writeValue(buffer, value.encode()); - } else if (value is ImageDescriptorDto) { + } else if (value is ImageDescriptorDto) { buffer.putUint8(162); writeValue(buffer, value.encode()); - } else if (value is InfoWindowDto) { + } else if (value is InfoWindowDto) { buffer.putUint8(163); writeValue(buffer, value.encode()); - } else if (value is MarkerAnchorDto) { + } else if (value is MarkerAnchorDto) { buffer.putUint8(164); writeValue(buffer, value.encode()); - } else if (value is PointOfInterestDto) { + } else if (value is PointOfInterestDto) { buffer.putUint8(165); writeValue(buffer, value.encode()); - } else if (value is IndoorLevelDto) { + } else if (value is IndoorLevelDto) { buffer.putUint8(166); writeValue(buffer, value.encode()); - } else if (value is IndoorBuildingDto) { + } else if (value is IndoorBuildingDto) { buffer.putUint8(167); writeValue(buffer, value.encode()); - } else if (value is PolygonDto) { + } else if (value is PolygonDto) { buffer.putUint8(168); writeValue(buffer, value.encode()); - } else if (value is PolygonOptionsDto) { + } else if (value is PolygonOptionsDto) { buffer.putUint8(169); writeValue(buffer, value.encode()); - } else if (value is PolygonHoleDto) { + } else if (value is PolygonHoleDto) { buffer.putUint8(170); writeValue(buffer, value.encode()); - } else if (value is StyleSpanStrokeStyleDto) { + } else if (value is StyleSpanStrokeStyleDto) { buffer.putUint8(171); writeValue(buffer, value.encode()); - } else if (value is StyleSpanDto) { + } else if (value is StyleSpanDto) { buffer.putUint8(172); writeValue(buffer, value.encode()); - } else if (value is PolylineDto) { + } else if (value is PolylineDto) { buffer.putUint8(173); writeValue(buffer, value.encode()); - } else if (value is PatternItemDto) { + } else if (value is PatternItemDto) { buffer.putUint8(174); writeValue(buffer, value.encode()); - } else if (value is PolylineOptionsDto) { + } else if (value is PolylineOptionsDto) { buffer.putUint8(175); writeValue(buffer, value.encode()); - } else if (value is CircleDto) { + } else if (value is CircleDto) { buffer.putUint8(176); writeValue(buffer, value.encode()); - } else if (value is CircleOptionsDto) { + } else if (value is CircleOptionsDto) { buffer.putUint8(177); writeValue(buffer, value.encode()); - } else if (value is MapPaddingDto) { + } else if (value is MapPaddingDto) { buffer.putUint8(178); writeValue(buffer, value.encode()); - } else if (value is NavigationHeaderStylingOptionsDto) { + } else if (value is NavigationHeaderStylingOptionsDto) { buffer.putUint8(179); writeValue(buffer, value.encode()); - } else if (value is RouteTokenOptionsDto) { + } else if (value is RouteTokenOptionsDto) { buffer.putUint8(180); writeValue(buffer, value.encode()); - } else if (value is DestinationsDto) { + } else if (value is DestinationsDto) { buffer.putUint8(181); writeValue(buffer, value.encode()); - } else if (value is RoutingOptionsDto) { + } else if (value is RoutingOptionsDto) { buffer.putUint8(182); writeValue(buffer, value.encode()); - } else if (value is NavigationDisplayOptionsDto) { + } else if (value is NavigationDisplayOptionsDto) { buffer.putUint8(183); writeValue(buffer, value.encode()); - } else if (value is NavigationWaypointDto) { + } else if (value is NavigationWaypointDto) { buffer.putUint8(184); writeValue(buffer, value.encode()); - } else if (value is ContinueToNextDestinationResponseDto) { + } else if (value is ContinueToNextDestinationResponseDto) { buffer.putUint8(185); writeValue(buffer, value.encode()); - } else if (value is NavigationTimeAndDistanceDto) { + } else if (value is NavigationTimeAndDistanceDto) { buffer.putUint8(186); writeValue(buffer, value.encode()); - } else if (value is NavigationAudioGuidanceSettingsDto) { + } else if (value is NavigationAudioGuidanceSettingsDto) { buffer.putUint8(187); writeValue(buffer, value.encode()); - } else if (value is SimulationOptionsDto) { + } else if (value is SimulationOptionsDto) { buffer.putUint8(188); writeValue(buffer, value.encode()); - } else if (value is LatLngDto) { + } else if (value is LatLngDto) { buffer.putUint8(189); writeValue(buffer, value.encode()); - } else if (value is LatLngBoundsDto) { + } else if (value is LatLngBoundsDto) { buffer.putUint8(190); writeValue(buffer, value.encode()); - } else if (value is SpeedingUpdatedEventDto) { + } else if (value is SpeedingUpdatedEventDto) { buffer.putUint8(191); writeValue(buffer, value.encode()); - } else if (value is GpsAvailabilityChangeEventDto) { + } else if (value is GpsAvailabilityChangeEventDto) { buffer.putUint8(192); writeValue(buffer, value.encode()); - } else if (value is SpeedAlertOptionsThresholdPercentageDto) { + } else if (value is SpeedAlertOptionsThresholdPercentageDto) { buffer.putUint8(193); writeValue(buffer, value.encode()); - } else if (value is SpeedAlertOptionsDto) { + } else if (value is SpeedAlertOptionsDto) { buffer.putUint8(194); writeValue(buffer, value.encode()); - } else if (value is RouteSegmentTrafficDataRoadStretchRenderingDataDto) { + } else if (value is RouteSegmentTrafficDataRoadStretchRenderingDataDto) { buffer.putUint8(195); writeValue(buffer, value.encode()); - } else if (value is RouteSegmentTrafficDataDto) { + } else if (value is RouteSegmentTrafficDataDto) { buffer.putUint8(196); writeValue(buffer, value.encode()); - } else if (value is RouteSegmentDto) { + } else if (value is RouteSegmentDto) { buffer.putUint8(197); writeValue(buffer, value.encode()); - } else if (value is LaneDirectionDto) { + } else if (value is LaneDirectionDto) { buffer.putUint8(198); writeValue(buffer, value.encode()); - } else if (value is LaneDto) { + } else if (value is LaneDto) { buffer.putUint8(199); writeValue(buffer, value.encode()); - } else if (value is StepInfoDto) { + } else if (value is StepInfoDto) { buffer.putUint8(200); writeValue(buffer, value.encode()); - } else if (value is NavInfoDto) { + } else if (value is NavInfoDto) { buffer.putUint8(201); writeValue(buffer, value.encode()); - } else if (value is TermsAndConditionsUIParamsDto) { + } else if (value is TermsAndConditionsUIParamsDto) { buffer.putUint8(202); writeValue(buffer, value.encode()); - } else if (value is StepImageGenerationOptionsDto) { + } else if (value is StepImageGenerationOptionsDto) { buffer.putUint8(203); writeValue(buffer, value.encode()); } else { @@ -3520,181 +3413,192 @@ class _PigeonCodec extends StandardMessageCodec { @override Object? readValueOfType(int type, ReadBuffer buffer) { switch (type) { - case 129: + case 129: final int? value = readValue(buffer) as int?; return value == null ? null : MapViewTypeDto.values[value]; - case 130: + case 130: final int? value = readValue(buffer) as int?; - return value == null ? null : NavigationUIEnabledPreferenceDto.values[value]; - case 131: + return value == null + ? null + : NavigationUIEnabledPreferenceDto.values[value]; + case 131: final int? value = readValue(buffer) as int?; return value == null ? null : MapTypeDto.values[value]; - case 132: + case 132: final int? value = readValue(buffer) as int?; return value == null ? null : MapColorSchemeDto.values[value]; - case 133: + case 133: final int? value = readValue(buffer) as int?; return value == null ? null : NavigationForceNightModeDto.values[value]; - case 134: + case 134: final int? value = readValue(buffer) as int?; return value == null ? null : CameraPerspectiveDto.values[value]; - case 135: + case 135: final int? value = readValue(buffer) as int?; return value == null ? null : RegisteredImageTypeDto.values[value]; - case 136: + case 136: final int? value = readValue(buffer) as int?; return value == null ? null : MarkerEventTypeDto.values[value]; - case 137: + case 137: final int? value = readValue(buffer) as int?; return value == null ? null : MarkerDragEventTypeDto.values[value]; - case 138: + case 138: final int? value = readValue(buffer) as int?; return value == null ? null : StrokeJointTypeDto.values[value]; - case 139: + case 139: final int? value = readValue(buffer) as int?; return value == null ? null : PatternTypeDto.values[value]; - case 140: + case 140: final int? value = readValue(buffer) as int?; return value == null ? null : CameraEventTypeDto.values[value]; - case 141: + case 141: final int? value = readValue(buffer) as int?; return value == null ? null : AlternateRoutesStrategyDto.values[value]; - case 142: + case 142: final int? value = readValue(buffer) as int?; return value == null ? null : RoutingStrategyDto.values[value]; - case 143: + case 143: final int? value = readValue(buffer) as int?; return value == null ? null : TravelModeDto.values[value]; - case 144: + case 144: final int? value = readValue(buffer) as int?; return value == null ? null : RouteStatusDto.values[value]; - case 145: + case 145: final int? value = readValue(buffer) as int?; return value == null ? null : TrafficDelaySeverityDto.values[value]; - case 146: + case 146: final int? value = readValue(buffer) as int?; return value == null ? null : AudioGuidanceTypeDto.values[value]; - case 147: + case 147: final int? value = readValue(buffer) as int?; return value == null ? null : SpeedAlertSeverityDto.values[value]; - case 148: + case 148: final int? value = readValue(buffer) as int?; - return value == null ? null : RouteSegmentTrafficDataStatusDto.values[value]; - case 149: + return value == null + ? null + : RouteSegmentTrafficDataStatusDto.values[value]; + case 149: final int? value = readValue(buffer) as int?; - return value == null ? null : RouteSegmentTrafficDataRoadStretchRenderingDataStyleDto.values[value]; - case 150: + return value == null + ? null + : RouteSegmentTrafficDataRoadStretchRenderingDataStyleDto + .values[value]; + case 150: final int? value = readValue(buffer) as int?; return value == null ? null : ManeuverDto.values[value]; - case 151: + case 151: final int? value = readValue(buffer) as int?; return value == null ? null : DrivingSideDto.values[value]; - case 152: + case 152: final int? value = readValue(buffer) as int?; return value == null ? null : NavStateDto.values[value]; - case 153: + case 153: final int? value = readValue(buffer) as int?; return value == null ? null : LaneShapeDto.values[value]; - case 154: + case 154: final int? value = readValue(buffer) as int?; return value == null ? null : TaskRemovedBehaviorDto.values[value]; - case 155: + case 155: return AutoMapOptionsDto.decode(readValue(buffer)!); - case 156: + case 156: return MapOptionsDto.decode(readValue(buffer)!); - case 157: + case 157: return NavigationViewOptionsDto.decode(readValue(buffer)!); - case 158: + case 158: return ViewCreationOptionsDto.decode(readValue(buffer)!); - case 159: + case 159: return CameraPositionDto.decode(readValue(buffer)!); - case 160: + case 160: return MarkerDto.decode(readValue(buffer)!); - case 161: + case 161: return MarkerOptionsDto.decode(readValue(buffer)!); - case 162: + case 162: return ImageDescriptorDto.decode(readValue(buffer)!); - case 163: + case 163: return InfoWindowDto.decode(readValue(buffer)!); - case 164: + case 164: return MarkerAnchorDto.decode(readValue(buffer)!); - case 165: + case 165: return PointOfInterestDto.decode(readValue(buffer)!); - case 166: + case 166: return IndoorLevelDto.decode(readValue(buffer)!); - case 167: + case 167: return IndoorBuildingDto.decode(readValue(buffer)!); - case 168: + case 168: return PolygonDto.decode(readValue(buffer)!); - case 169: + case 169: return PolygonOptionsDto.decode(readValue(buffer)!); - case 170: + case 170: return PolygonHoleDto.decode(readValue(buffer)!); - case 171: + case 171: return StyleSpanStrokeStyleDto.decode(readValue(buffer)!); - case 172: + case 172: return StyleSpanDto.decode(readValue(buffer)!); - case 173: + case 173: return PolylineDto.decode(readValue(buffer)!); - case 174: + case 174: return PatternItemDto.decode(readValue(buffer)!); - case 175: + case 175: return PolylineOptionsDto.decode(readValue(buffer)!); - case 176: + case 176: return CircleDto.decode(readValue(buffer)!); - case 177: + case 177: return CircleOptionsDto.decode(readValue(buffer)!); - case 178: + case 178: return MapPaddingDto.decode(readValue(buffer)!); - case 179: + case 179: return NavigationHeaderStylingOptionsDto.decode(readValue(buffer)!); - case 180: + case 180: return RouteTokenOptionsDto.decode(readValue(buffer)!); - case 181: + case 181: return DestinationsDto.decode(readValue(buffer)!); - case 182: + case 182: return RoutingOptionsDto.decode(readValue(buffer)!); - case 183: + case 183: return NavigationDisplayOptionsDto.decode(readValue(buffer)!); - case 184: + case 184: return NavigationWaypointDto.decode(readValue(buffer)!); - case 185: + case 185: return ContinueToNextDestinationResponseDto.decode(readValue(buffer)!); - case 186: + case 186: return NavigationTimeAndDistanceDto.decode(readValue(buffer)!); - case 187: + case 187: return NavigationAudioGuidanceSettingsDto.decode(readValue(buffer)!); - case 188: + case 188: return SimulationOptionsDto.decode(readValue(buffer)!); - case 189: + case 189: return LatLngDto.decode(readValue(buffer)!); - case 190: + case 190: return LatLngBoundsDto.decode(readValue(buffer)!); - case 191: + case 191: return SpeedingUpdatedEventDto.decode(readValue(buffer)!); - case 192: + case 192: return GpsAvailabilityChangeEventDto.decode(readValue(buffer)!); - case 193: - return SpeedAlertOptionsThresholdPercentageDto.decode(readValue(buffer)!); - case 194: + case 193: + return SpeedAlertOptionsThresholdPercentageDto.decode( + readValue(buffer)!, + ); + case 194: return SpeedAlertOptionsDto.decode(readValue(buffer)!); - case 195: - return RouteSegmentTrafficDataRoadStretchRenderingDataDto.decode(readValue(buffer)!); - case 196: + case 195: + return RouteSegmentTrafficDataRoadStretchRenderingDataDto.decode( + readValue(buffer)!, + ); + case 196: return RouteSegmentTrafficDataDto.decode(readValue(buffer)!); - case 197: + case 197: return RouteSegmentDto.decode(readValue(buffer)!); - case 198: + case 198: return LaneDirectionDto.decode(readValue(buffer)!); - case 199: + case 199: return LaneDto.decode(readValue(buffer)!); - case 200: + case 200: return StepInfoDto.decode(readValue(buffer)!); - case 201: + case 201: return NavInfoDto.decode(readValue(buffer)!); - case 202: + case 202: return TermsAndConditionsUIParamsDto.decode(readValue(buffer)!); - case 203: + case 203: return StepImageGenerationOptionsDto.decode(readValue(buffer)!); default: return super.readValueOfType(type, buffer); @@ -3712,9 +3616,13 @@ class ViewCreationApi { /// Constructor for [ViewCreationApi]. The [binaryMessenger] named argument is /// available for dependency injection. If it is left null, the default /// BinaryMessenger will be used which routes to the host platform. - ViewCreationApi({BinaryMessenger? binaryMessenger, String messageChannelSuffix = ''}) - : pigeonVar_binaryMessenger = binaryMessenger, - pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; + ViewCreationApi({ + BinaryMessenger? binaryMessenger, + String messageChannelSuffix = '', + }) : pigeonVar_binaryMessenger = binaryMessenger, + pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty + ? '.$messageChannelSuffix' + : ''; final BinaryMessenger? pigeonVar_binaryMessenger; static const MessageCodec pigeonChannelCodec = _PigeonCodec(); @@ -3722,13 +3630,17 @@ class ViewCreationApi { final String pigeonVar_messageChannelSuffix; Future create(ViewCreationOptionsDto msg) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.ViewCreationApi.create$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.ViewCreationApi.create$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [msg], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([msg]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -3749,9 +3661,13 @@ class MapViewApi { /// Constructor for [MapViewApi]. The [binaryMessenger] named argument is /// available for dependency injection. If it is left null, the default /// BinaryMessenger will be used which routes to the host platform. - MapViewApi({BinaryMessenger? binaryMessenger, String messageChannelSuffix = ''}) - : pigeonVar_binaryMessenger = binaryMessenger, - pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; + MapViewApi({ + BinaryMessenger? binaryMessenger, + String messageChannelSuffix = '', + }) : pigeonVar_binaryMessenger = binaryMessenger, + pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty + ? '.$messageChannelSuffix' + : ''; final BinaryMessenger? pigeonVar_binaryMessenger; static const MessageCodec pigeonChannelCodec = _PigeonCodec(); @@ -3759,13 +3675,17 @@ class MapViewApi { final String pigeonVar_messageChannelSuffix; Future awaitMapReady(int viewId) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.awaitMapReady$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.awaitMapReady$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -3782,13 +3702,17 @@ class MapViewApi { } Future isMyLocationEnabled(int viewId) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMyLocationEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMyLocationEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -3810,13 +3734,17 @@ class MapViewApi { } Future setMyLocationEnabled(int viewId, bool enabled) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMyLocationEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMyLocationEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId, enabled], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, enabled]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -3833,13 +3761,17 @@ class MapViewApi { } Future getMyLocation(int viewId) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMyLocation$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMyLocation$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -3856,13 +3788,17 @@ class MapViewApi { } Future getMapType(int viewId) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMapType$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMapType$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -3884,13 +3820,17 @@ class MapViewApi { } Future setMapType(int viewId, MapTypeDto mapType) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapType$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapType$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId, mapType], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, mapType]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -3907,13 +3847,17 @@ class MapViewApi { } Future setMapStyle(int viewId, String styleJson) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapStyle$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapStyle$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId, styleJson], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, styleJson]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -3930,13 +3874,17 @@ class MapViewApi { } Future isNavigationTripProgressBarEnabled(int viewId) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationTripProgressBarEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationTripProgressBarEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -3957,14 +3905,21 @@ class MapViewApi { } } - Future setNavigationTripProgressBarEnabled(int viewId, bool enabled) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationTripProgressBarEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + Future setNavigationTripProgressBarEnabled( + int viewId, + bool enabled, + ) async { + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationTripProgressBarEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId, enabled], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, enabled]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -3981,13 +3936,17 @@ class MapViewApi { } Future isNavigationHeaderEnabled(int viewId) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationHeaderEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationHeaderEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -4009,13 +3968,17 @@ class MapViewApi { } Future setNavigationHeaderEnabled(int viewId, bool enabled) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationHeaderEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationHeaderEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId, enabled], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, enabled]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -4031,14 +3994,20 @@ class MapViewApi { } } - Future getNavigationHeaderStylingOptions(int viewId) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getNavigationHeaderStylingOptions$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + Future getNavigationHeaderStylingOptions( + int viewId, + ) async { + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getNavigationHeaderStylingOptions$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -4059,14 +4028,21 @@ class MapViewApi { } } - Future setNavigationHeaderStylingOptions(int viewId, NavigationHeaderStylingOptionsDto stylingOptions) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationHeaderStylingOptions$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + Future setNavigationHeaderStylingOptions( + int viewId, + NavigationHeaderStylingOptionsDto stylingOptions, + ) async { + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationHeaderStylingOptions$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId, stylingOptions], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, stylingOptions]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -4083,13 +4059,17 @@ class MapViewApi { } Future isNavigationFooterEnabled(int viewId) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationFooterEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationFooterEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -4111,13 +4091,17 @@ class MapViewApi { } Future setNavigationFooterEnabled(int viewId, bool enabled) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationFooterEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationFooterEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId, enabled], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, enabled]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -4134,13 +4118,17 @@ class MapViewApi { } Future isRecenterButtonEnabled(int viewId) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isRecenterButtonEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isRecenterButtonEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -4162,13 +4150,17 @@ class MapViewApi { } Future setRecenterButtonEnabled(int viewId, bool enabled) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setRecenterButtonEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setRecenterButtonEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId, enabled], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, enabled]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -4185,13 +4177,17 @@ class MapViewApi { } Future isSpeedLimitIconEnabled(int viewId) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isSpeedLimitIconEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isSpeedLimitIconEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -4213,13 +4209,17 @@ class MapViewApi { } Future setSpeedLimitIconEnabled(int viewId, bool enabled) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setSpeedLimitIconEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setSpeedLimitIconEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId, enabled], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, enabled]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -4236,13 +4236,17 @@ class MapViewApi { } Future isSpeedometerEnabled(int viewId) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isSpeedometerEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isSpeedometerEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -4264,13 +4268,17 @@ class MapViewApi { } Future setSpeedometerEnabled(int viewId, bool enabled) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setSpeedometerEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setSpeedometerEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId, enabled], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, enabled]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -4287,13 +4295,17 @@ class MapViewApi { } Future isNavigationUIEnabled(int viewId) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationUIEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationUIEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -4315,13 +4327,17 @@ class MapViewApi { } Future setNavigationUIEnabled(int viewId, bool enabled) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationUIEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationUIEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId, enabled], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, enabled]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -4338,13 +4354,17 @@ class MapViewApi { } Future isMyLocationButtonEnabled(int viewId) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMyLocationButtonEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMyLocationButtonEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -4366,13 +4386,17 @@ class MapViewApi { } Future setMyLocationButtonEnabled(int viewId, bool enabled) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMyLocationButtonEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMyLocationButtonEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId, enabled], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, enabled]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -4389,13 +4413,17 @@ class MapViewApi { } Future isConsumeMyLocationButtonClickEventsEnabled(int viewId) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isConsumeMyLocationButtonClickEventsEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isConsumeMyLocationButtonClickEventsEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -4416,14 +4444,21 @@ class MapViewApi { } } - Future setConsumeMyLocationButtonClickEventsEnabled(int viewId, bool enabled) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setConsumeMyLocationButtonClickEventsEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + Future setConsumeMyLocationButtonClickEventsEnabled( + int viewId, + bool enabled, + ) async { + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setConsumeMyLocationButtonClickEventsEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId, enabled], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, enabled]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -4440,13 +4475,17 @@ class MapViewApi { } Future isZoomGesturesEnabled(int viewId) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isZoomGesturesEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isZoomGesturesEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -4468,13 +4507,17 @@ class MapViewApi { } Future setZoomGesturesEnabled(int viewId, bool enabled) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setZoomGesturesEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setZoomGesturesEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId, enabled], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, enabled]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -4491,13 +4534,17 @@ class MapViewApi { } Future isZoomControlsEnabled(int viewId) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isZoomControlsEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isZoomControlsEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -4519,13 +4566,17 @@ class MapViewApi { } Future setZoomControlsEnabled(int viewId, bool enabled) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setZoomControlsEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setZoomControlsEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId, enabled], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, enabled]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -4542,13 +4593,17 @@ class MapViewApi { } Future isCompassEnabled(int viewId) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isCompassEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isCompassEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -4570,13 +4625,17 @@ class MapViewApi { } Future setCompassEnabled(int viewId, bool enabled) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setCompassEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setCompassEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId, enabled], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, enabled]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -4593,13 +4652,17 @@ class MapViewApi { } Future isRotateGesturesEnabled(int viewId) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isRotateGesturesEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isRotateGesturesEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -4621,13 +4684,17 @@ class MapViewApi { } Future setRotateGesturesEnabled(int viewId, bool enabled) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setRotateGesturesEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setRotateGesturesEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId, enabled], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, enabled]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -4644,13 +4711,17 @@ class MapViewApi { } Future isScrollGesturesEnabled(int viewId) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isScrollGesturesEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isScrollGesturesEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -4672,13 +4743,17 @@ class MapViewApi { } Future setScrollGesturesEnabled(int viewId, bool enabled) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setScrollGesturesEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setScrollGesturesEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId, enabled], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, enabled]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -4695,13 +4770,17 @@ class MapViewApi { } Future isScrollGesturesEnabledDuringRotateOrZoom(int viewId) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isScrollGesturesEnabledDuringRotateOrZoom$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isScrollGesturesEnabledDuringRotateOrZoom$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -4722,14 +4801,21 @@ class MapViewApi { } } - Future setScrollGesturesDuringRotateOrZoomEnabled(int viewId, bool enabled) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setScrollGesturesDuringRotateOrZoomEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + Future setScrollGesturesDuringRotateOrZoomEnabled( + int viewId, + bool enabled, + ) async { + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setScrollGesturesDuringRotateOrZoomEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId, enabled], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, enabled]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -4746,13 +4832,17 @@ class MapViewApi { } Future isTiltGesturesEnabled(int viewId) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTiltGesturesEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTiltGesturesEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -4774,13 +4864,17 @@ class MapViewApi { } Future setTiltGesturesEnabled(int viewId, bool enabled) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTiltGesturesEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTiltGesturesEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId, enabled], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, enabled]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -4797,13 +4891,17 @@ class MapViewApi { } Future isMapToolbarEnabled(int viewId) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMapToolbarEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMapToolbarEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -4825,13 +4923,17 @@ class MapViewApi { } Future setMapToolbarEnabled(int viewId, bool enabled) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapToolbarEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapToolbarEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId, enabled], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, enabled]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -4848,13 +4950,17 @@ class MapViewApi { } Future isTrafficEnabled(int viewId) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -4876,13 +4982,17 @@ class MapViewApi { } Future setTrafficEnabled(int viewId, bool enabled) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId, enabled], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, enabled]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -4899,13 +5009,17 @@ class MapViewApi { } Future isTrafficIncidentCardsEnabled(int viewId) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficIncidentCardsEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficIncidentCardsEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -4927,13 +5041,17 @@ class MapViewApi { } Future setTrafficIncidentCardsEnabled(int viewId, bool enabled) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficIncidentCardsEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficIncidentCardsEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId, enabled], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, enabled]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -4950,13 +5068,17 @@ class MapViewApi { } Future isTrafficPromptsEnabled(int viewId) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficPromptsEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficPromptsEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -4978,13 +5100,17 @@ class MapViewApi { } Future setTrafficPromptsEnabled(int viewId, bool enabled) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficPromptsEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficPromptsEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId, enabled], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, enabled]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -5001,13 +5127,17 @@ class MapViewApi { } Future isReportIncidentButtonEnabled(int viewId) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isReportIncidentButtonEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isReportIncidentButtonEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -5029,13 +5159,17 @@ class MapViewApi { } Future setReportIncidentButtonEnabled(int viewId, bool enabled) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setReportIncidentButtonEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setReportIncidentButtonEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId, enabled], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, enabled]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -5052,13 +5186,17 @@ class MapViewApi { } Future isIncidentReportingAvailable(int viewId) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isIncidentReportingAvailable$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isIncidentReportingAvailable$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -5080,13 +5218,17 @@ class MapViewApi { } Future showReportIncidentsPanel(int viewId) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.showReportIncidentsPanel$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.showReportIncidentsPanel$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -5103,13 +5245,17 @@ class MapViewApi { } Future isBuildingsEnabled(int viewId) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isBuildingsEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isBuildingsEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -5131,13 +5277,17 @@ class MapViewApi { } Future setBuildingsEnabled(int viewId, bool enabled) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setBuildingsEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setBuildingsEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId, enabled], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, enabled]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -5154,13 +5304,17 @@ class MapViewApi { } Future isIndoorEnabled(int viewId) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isIndoorEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isIndoorEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -5182,13 +5336,17 @@ class MapViewApi { } Future setIndoorEnabled(int viewId, bool enabled) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setIndoorEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setIndoorEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId, enabled], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, enabled]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -5205,13 +5363,17 @@ class MapViewApi { } Future isIndoorLevelPickerEnabled(int viewId) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isIndoorLevelPickerEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isIndoorLevelPickerEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -5233,13 +5395,17 @@ class MapViewApi { } Future setIndoorLevelPickerEnabled(int viewId, bool enabled) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setIndoorLevelPickerEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setIndoorLevelPickerEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId, enabled], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, enabled]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -5256,13 +5422,17 @@ class MapViewApi { } Future getFocusedIndoorBuilding(int viewId) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getFocusedIndoorBuilding$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getFocusedIndoorBuilding$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -5282,13 +5452,17 @@ class MapViewApi { /// indoor building. Throws if no building is focused or the index is out of /// range. Future activateIndoorLevel(int viewId, int levelIndex) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.activateIndoorLevel$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.activateIndoorLevel$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId, levelIndex], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, levelIndex]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -5305,13 +5479,17 @@ class MapViewApi { } Future getCameraPosition(int viewId) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getCameraPosition$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getCameraPosition$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -5333,13 +5511,17 @@ class MapViewApi { } Future getVisibleRegion(int viewId) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getVisibleRegion$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getVisibleRegion$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -5360,14 +5542,22 @@ class MapViewApi { } } - Future followMyLocation(int viewId, CameraPerspectiveDto perspective, double? zoomLevel) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.followMyLocation$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + Future followMyLocation( + int viewId, + CameraPerspectiveDto perspective, + double? zoomLevel, + ) async { + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.followMyLocation$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId, perspective, zoomLevel], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, perspective, zoomLevel]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -5383,14 +5573,22 @@ class MapViewApi { } } - Future animateCameraToCameraPosition(int viewId, CameraPositionDto cameraPosition, int? duration) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToCameraPosition$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + Future animateCameraToCameraPosition( + int viewId, + CameraPositionDto cameraPosition, + int? duration, + ) async { + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToCameraPosition$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId, cameraPosition, duration], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, cameraPosition, duration]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -5411,14 +5609,22 @@ class MapViewApi { } } - Future animateCameraToLatLng(int viewId, LatLngDto point, int? duration) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLng$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + Future animateCameraToLatLng( + int viewId, + LatLngDto point, + int? duration, + ) async { + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLng$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId, point, duration], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, point, duration]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -5439,14 +5645,23 @@ class MapViewApi { } } - Future animateCameraToLatLngBounds(int viewId, LatLngBoundsDto bounds, double padding, int? duration) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLngBounds$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + Future animateCameraToLatLngBounds( + int viewId, + LatLngBoundsDto bounds, + double padding, + int? duration, + ) async { + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLngBounds$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId, bounds, padding, duration], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, bounds, padding, duration]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -5467,14 +5682,23 @@ class MapViewApi { } } - Future animateCameraToLatLngZoom(int viewId, LatLngDto point, double zoom, int? duration) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLngZoom$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + Future animateCameraToLatLngZoom( + int viewId, + LatLngDto point, + double zoom, + int? duration, + ) async { + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLngZoom$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId, point, zoom, duration], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, point, zoom, duration]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -5495,14 +5719,23 @@ class MapViewApi { } } - Future animateCameraByScroll(int viewId, double scrollByDx, double scrollByDy, int? duration) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraByScroll$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + Future animateCameraByScroll( + int viewId, + double scrollByDx, + double scrollByDy, + int? duration, + ) async { + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraByScroll$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId, scrollByDx, scrollByDy, duration], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, scrollByDx, scrollByDy, duration]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -5523,14 +5756,24 @@ class MapViewApi { } } - Future animateCameraByZoom(int viewId, double zoomBy, double? focusDx, double? focusDy, int? duration) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraByZoom$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + Future animateCameraByZoom( + int viewId, + double zoomBy, + double? focusDx, + double? focusDy, + int? duration, + ) async { + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraByZoom$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId, zoomBy, focusDx, focusDy, duration], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, zoomBy, focusDx, focusDy, duration]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -5551,14 +5794,22 @@ class MapViewApi { } } - Future animateCameraToZoom(int viewId, double zoom, int? duration) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToZoom$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + Future animateCameraToZoom( + int viewId, + double zoom, + int? duration, + ) async { + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToZoom$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId, zoom, duration], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, zoom, duration]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -5579,14 +5830,21 @@ class MapViewApi { } } - Future moveCameraToCameraPosition(int viewId, CameraPositionDto cameraPosition) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToCameraPosition$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + Future moveCameraToCameraPosition( + int viewId, + CameraPositionDto cameraPosition, + ) async { + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToCameraPosition$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId, cameraPosition], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, cameraPosition]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -5603,13 +5861,17 @@ class MapViewApi { } Future moveCameraToLatLng(int viewId, LatLngDto point) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLng$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLng$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId, point], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, point]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -5625,14 +5887,22 @@ class MapViewApi { } } - Future moveCameraToLatLngBounds(int viewId, LatLngBoundsDto bounds, double padding) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLngBounds$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + Future moveCameraToLatLngBounds( + int viewId, + LatLngBoundsDto bounds, + double padding, + ) async { + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLngBounds$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId, bounds, padding], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, bounds, padding]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -5648,14 +5918,22 @@ class MapViewApi { } } - Future moveCameraToLatLngZoom(int viewId, LatLngDto point, double zoom) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLngZoom$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + Future moveCameraToLatLngZoom( + int viewId, + LatLngDto point, + double zoom, + ) async { + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLngZoom$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId, point, zoom], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, point, zoom]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -5671,14 +5949,22 @@ class MapViewApi { } } - Future moveCameraByScroll(int viewId, double scrollByDx, double scrollByDy) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraByScroll$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + Future moveCameraByScroll( + int viewId, + double scrollByDx, + double scrollByDy, + ) async { + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraByScroll$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId, scrollByDx, scrollByDy], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, scrollByDx, scrollByDy]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -5694,14 +5980,23 @@ class MapViewApi { } } - Future moveCameraByZoom(int viewId, double zoomBy, double? focusDx, double? focusDy) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraByZoom$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + Future moveCameraByZoom( + int viewId, + double zoomBy, + double? focusDx, + double? focusDy, + ) async { + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraByZoom$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId, zoomBy, focusDx, focusDy], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, zoomBy, focusDx, focusDy]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -5718,13 +6013,17 @@ class MapViewApi { } Future moveCameraToZoom(int viewId, double zoom) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToZoom$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToZoom$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId, zoom], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, zoom]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -5741,13 +6040,17 @@ class MapViewApi { } Future showRouteOverview(int viewId) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.showRouteOverview$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.showRouteOverview$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -5764,13 +6067,17 @@ class MapViewApi { } Future getMinZoomPreference(int viewId) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMinZoomPreference$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMinZoomPreference$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -5792,13 +6099,17 @@ class MapViewApi { } Future getMaxZoomPreference(int viewId) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMaxZoomPreference$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMaxZoomPreference$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -5820,13 +6131,17 @@ class MapViewApi { } Future resetMinMaxZoomPreference(int viewId) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.resetMinMaxZoomPreference$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.resetMinMaxZoomPreference$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -5842,14 +6157,21 @@ class MapViewApi { } } - Future setMinZoomPreference(int viewId, double minZoomPreference) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMinZoomPreference$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + Future setMinZoomPreference( + int viewId, + double minZoomPreference, + ) async { + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMinZoomPreference$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId, minZoomPreference], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, minZoomPreference]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -5865,14 +6187,21 @@ class MapViewApi { } } - Future setMaxZoomPreference(int viewId, double maxZoomPreference) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMaxZoomPreference$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + Future setMaxZoomPreference( + int viewId, + double maxZoomPreference, + ) async { + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMaxZoomPreference$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId, maxZoomPreference], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, maxZoomPreference]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -5889,13 +6218,17 @@ class MapViewApi { } Future> getMarkers(int viewId) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMarkers$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMarkers$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -5916,14 +6249,21 @@ class MapViewApi { } } - Future> addMarkers(int viewId, List markers) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addMarkers$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + Future> addMarkers( + int viewId, + List markers, + ) async { + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addMarkers$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId, markers], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, markers]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -5944,14 +6284,21 @@ class MapViewApi { } } - Future> updateMarkers(int viewId, List markers) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updateMarkers$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + Future> updateMarkers( + int viewId, + List markers, + ) async { + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updateMarkers$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId, markers], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, markers]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -5973,13 +6320,17 @@ class MapViewApi { } Future removeMarkers(int viewId, List markers) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removeMarkers$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removeMarkers$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId, markers], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, markers]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -5996,13 +6347,17 @@ class MapViewApi { } Future clearMarkers(int viewId) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearMarkers$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearMarkers$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -6019,13 +6374,17 @@ class MapViewApi { } Future clear(int viewId) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clear$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clear$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -6042,13 +6401,17 @@ class MapViewApi { } Future> getPolygons(int viewId) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPolygons$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPolygons$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -6069,14 +6432,21 @@ class MapViewApi { } } - Future> addPolygons(int viewId, List polygons) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addPolygons$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + Future> addPolygons( + int viewId, + List polygons, + ) async { + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addPolygons$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId, polygons], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, polygons]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -6097,14 +6467,21 @@ class MapViewApi { } } - Future> updatePolygons(int viewId, List polygons) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updatePolygons$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + Future> updatePolygons( + int viewId, + List polygons, + ) async { + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updatePolygons$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId, polygons], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, polygons]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -6126,13 +6503,17 @@ class MapViewApi { } Future removePolygons(int viewId, List polygons) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removePolygons$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removePolygons$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId, polygons], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, polygons]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -6149,13 +6530,17 @@ class MapViewApi { } Future clearPolygons(int viewId) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearPolygons$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearPolygons$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -6172,13 +6557,17 @@ class MapViewApi { } Future> getPolylines(int viewId) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPolylines$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPolylines$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -6199,14 +6588,21 @@ class MapViewApi { } } - Future> addPolylines(int viewId, List polylines) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addPolylines$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + Future> addPolylines( + int viewId, + List polylines, + ) async { + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addPolylines$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId, polylines], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, polylines]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -6227,14 +6623,21 @@ class MapViewApi { } } - Future> updatePolylines(int viewId, List polylines) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updatePolylines$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + Future> updatePolylines( + int viewId, + List polylines, + ) async { + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updatePolylines$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId, polylines], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, polylines]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -6256,13 +6659,17 @@ class MapViewApi { } Future removePolylines(int viewId, List polylines) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removePolylines$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removePolylines$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId, polylines], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, polylines]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -6279,13 +6686,17 @@ class MapViewApi { } Future clearPolylines(int viewId) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearPolylines$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearPolylines$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -6302,13 +6713,17 @@ class MapViewApi { } Future> getCircles(int viewId) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getCircles$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getCircles$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -6329,14 +6744,21 @@ class MapViewApi { } } - Future> addCircles(int viewId, List circles) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addCircles$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + Future> addCircles( + int viewId, + List circles, + ) async { + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addCircles$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId, circles], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, circles]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -6357,14 +6779,21 @@ class MapViewApi { } } - Future> updateCircles(int viewId, List circles) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updateCircles$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + Future> updateCircles( + int viewId, + List circles, + ) async { + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updateCircles$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId, circles], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, circles]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -6386,13 +6815,17 @@ class MapViewApi { } Future removeCircles(int viewId, List circles) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removeCircles$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removeCircles$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId, circles], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, circles]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -6409,13 +6842,17 @@ class MapViewApi { } Future clearCircles(int viewId) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearCircles$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearCircles$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -6432,13 +6869,17 @@ class MapViewApi { } Future enableOnCameraChangedEvents(int viewId) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.enableOnCameraChangedEvents$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.enableOnCameraChangedEvents$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -6455,13 +6896,17 @@ class MapViewApi { } Future setPadding(int viewId, MapPaddingDto padding) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setPadding$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setPadding$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId, padding], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, padding]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -6478,13 +6923,17 @@ class MapViewApi { } Future getPadding(int viewId) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPadding$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPadding$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -6506,13 +6955,17 @@ class MapViewApi { } Future getMapColorScheme(int viewId) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMapColorScheme$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMapColorScheme$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -6533,14 +6986,21 @@ class MapViewApi { } } - Future setMapColorScheme(int viewId, MapColorSchemeDto mapColorScheme) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapColorScheme$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + Future setMapColorScheme( + int viewId, + MapColorSchemeDto mapColorScheme, + ) async { + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapColorScheme$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId, mapColorScheme], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, mapColorScheme]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -6557,13 +7017,17 @@ class MapViewApi { } Future getForceNightMode(int viewId) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getForceNightMode$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getForceNightMode$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -6584,14 +7048,21 @@ class MapViewApi { } } - Future setForceNightMode(int viewId, NavigationForceNightModeDto forceNightMode) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setForceNightMode$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + Future setForceNightMode( + int viewId, + NavigationForceNightModeDto forceNightMode, + ) async { + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setForceNightMode$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId, forceNightMode], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId, forceNightMode]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -6612,23 +7083,37 @@ class ImageRegistryApi { /// Constructor for [ImageRegistryApi]. The [binaryMessenger] named argument is /// available for dependency injection. If it is left null, the default /// BinaryMessenger will be used which routes to the host platform. - ImageRegistryApi({BinaryMessenger? binaryMessenger, String messageChannelSuffix = ''}) - : pigeonVar_binaryMessenger = binaryMessenger, - pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; + ImageRegistryApi({ + BinaryMessenger? binaryMessenger, + String messageChannelSuffix = '', + }) : pigeonVar_binaryMessenger = binaryMessenger, + pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty + ? '.$messageChannelSuffix' + : ''; final BinaryMessenger? pigeonVar_binaryMessenger; static const MessageCodec pigeonChannelCodec = _PigeonCodec(); final String pigeonVar_messageChannelSuffix; - Future registerBitmapImage(String imageId, Uint8List bytes, double imagePixelRatio, double? width, double? height) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.registerBitmapImage$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + Future registerBitmapImage( + String imageId, + Uint8List bytes, + double imagePixelRatio, + double? width, + double? height, + ) async { + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.registerBitmapImage$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [imageId, bytes, imagePixelRatio, width, height], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([imageId, bytes, imagePixelRatio, width, height]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -6650,13 +7135,17 @@ class ImageRegistryApi { } Future unregisterImage(ImageDescriptorDto imageDescriptor) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.unregisterImage$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.unregisterImage$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [imageDescriptor], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([imageDescriptor]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -6673,12 +7162,14 @@ class ImageRegistryApi { } Future> getRegisteredImages() async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.getRegisteredImages$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.getRegisteredImages$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -6696,18 +7187,23 @@ class ImageRegistryApi { message: 'Host platform returned null value for non-null return value.', ); } else { - return (pigeonVar_replyList[0] as List?)!.cast(); + return (pigeonVar_replyList[0] as List?)! + .cast(); } } Future clearRegisteredImages(RegisteredImageTypeDto? filter) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.clearRegisteredImages$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.clearRegisteredImages$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [filter], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([filter]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -6723,14 +7219,20 @@ class ImageRegistryApi { } } - Future getRegisteredImageData(ImageDescriptorDto imageDescriptor) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.getRegisteredImageData$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + Future getRegisteredImageData( + ImageDescriptorDto imageDescriptor, + ) async { + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.getRegisteredImageData$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [imageDescriptor], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([imageDescriptor]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -6758,7 +7260,12 @@ abstract class ViewEventApi { void onMarkerEvent(int viewId, String markerId, MarkerEventTypeDto eventType); - void onMarkerDragEvent(int viewId, String markerId, MarkerDragEventTypeDto eventType, LatLngDto position); + void onMarkerDragEvent( + int viewId, + String markerId, + MarkerDragEventTypeDto eventType, + LatLngDto position, + ); void onPolygonClicked(int viewId, String polygonId); @@ -6780,453 +7287,652 @@ abstract class ViewEventApi { void onIndoorActiveLevelChanged(int viewId, IndoorBuildingDto? building); - void onCameraChanged(int viewId, CameraEventTypeDto eventType, CameraPositionDto position); + void onCameraChanged( + int viewId, + CameraEventTypeDto eventType, + CameraPositionDto position, + ); - static void setUp(ViewEventApi? api, {BinaryMessenger? binaryMessenger, String messageChannelSuffix = '',}) { - messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; + static void setUp( + ViewEventApi? api, { + BinaryMessenger? binaryMessenger, + String messageChannelSuffix = '', + }) { + messageChannelSuffix = messageChannelSuffix.isNotEmpty + ? '.$messageChannelSuffix' + : ''; { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMapClickEvent$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMapClickEvent$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMapClickEvent was null.'); + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMapClickEvent was null.', + ); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMapClickEvent was null, expected non-null int.'); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMapClickEvent was null, expected non-null int.', + ); final LatLngDto? arg_latLng = (args[1] as LatLngDto?); - assert(arg_latLng != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMapClickEvent was null, expected non-null LatLngDto.'); + assert( + arg_latLng != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMapClickEvent was null, expected non-null LatLngDto.', + ); try { api.onMapClickEvent(arg_viewId!, arg_latLng!); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } } { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMapLongClickEvent$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMapLongClickEvent$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMapLongClickEvent was null.'); + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMapLongClickEvent was null.', + ); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMapLongClickEvent was null, expected non-null int.'); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMapLongClickEvent was null, expected non-null int.', + ); final LatLngDto? arg_latLng = (args[1] as LatLngDto?); - assert(arg_latLng != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMapLongClickEvent was null, expected non-null LatLngDto.'); + assert( + arg_latLng != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMapLongClickEvent was null, expected non-null LatLngDto.', + ); try { api.onMapLongClickEvent(arg_viewId!, arg_latLng!); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } } { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onRecenterButtonClicked$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onRecenterButtonClicked$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onRecenterButtonClicked was null.'); + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onRecenterButtonClicked was null.', + ); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onRecenterButtonClicked was null, expected non-null int.'); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onRecenterButtonClicked was null, expected non-null int.', + ); try { api.onRecenterButtonClicked(arg_viewId!); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } } { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMarkerEvent$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMarkerEvent$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMarkerEvent was null.'); + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMarkerEvent was null.', + ); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMarkerEvent was null, expected non-null int.'); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMarkerEvent was null, expected non-null int.', + ); final String? arg_markerId = (args[1] as String?); - assert(arg_markerId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMarkerEvent was null, expected non-null String.'); - final MarkerEventTypeDto? arg_eventType = (args[2] as MarkerEventTypeDto?); - assert(arg_eventType != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMarkerEvent was null, expected non-null MarkerEventTypeDto.'); + assert( + arg_markerId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMarkerEvent was null, expected non-null String.', + ); + final MarkerEventTypeDto? arg_eventType = + (args[2] as MarkerEventTypeDto?); + assert( + arg_eventType != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMarkerEvent was null, expected non-null MarkerEventTypeDto.', + ); try { api.onMarkerEvent(arg_viewId!, arg_markerId!, arg_eventType!); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } } { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMarkerDragEvent$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMarkerDragEvent$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMarkerDragEvent was null.'); + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMarkerDragEvent was null.', + ); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMarkerDragEvent was null, expected non-null int.'); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMarkerDragEvent was null, expected non-null int.', + ); final String? arg_markerId = (args[1] as String?); - assert(arg_markerId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMarkerDragEvent was null, expected non-null String.'); - final MarkerDragEventTypeDto? arg_eventType = (args[2] as MarkerDragEventTypeDto?); - assert(arg_eventType != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMarkerDragEvent was null, expected non-null MarkerDragEventTypeDto.'); + assert( + arg_markerId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMarkerDragEvent was null, expected non-null String.', + ); + final MarkerDragEventTypeDto? arg_eventType = + (args[2] as MarkerDragEventTypeDto?); + assert( + arg_eventType != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMarkerDragEvent was null, expected non-null MarkerDragEventTypeDto.', + ); final LatLngDto? arg_position = (args[3] as LatLngDto?); - assert(arg_position != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMarkerDragEvent was null, expected non-null LatLngDto.'); + assert( + arg_position != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMarkerDragEvent was null, expected non-null LatLngDto.', + ); try { - api.onMarkerDragEvent(arg_viewId!, arg_markerId!, arg_eventType!, arg_position!); + api.onMarkerDragEvent( + arg_viewId!, + arg_markerId!, + arg_eventType!, + arg_position!, + ); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } } { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPolygonClicked$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPolygonClicked$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPolygonClicked was null.'); + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPolygonClicked was null.', + ); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPolygonClicked was null, expected non-null int.'); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPolygonClicked was null, expected non-null int.', + ); final String? arg_polygonId = (args[1] as String?); - assert(arg_polygonId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPolygonClicked was null, expected non-null String.'); + assert( + arg_polygonId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPolygonClicked was null, expected non-null String.', + ); try { api.onPolygonClicked(arg_viewId!, arg_polygonId!); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } } { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPolylineClicked$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPolylineClicked$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPolylineClicked was null.'); + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPolylineClicked was null.', + ); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPolylineClicked was null, expected non-null int.'); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPolylineClicked was null, expected non-null int.', + ); final String? arg_polylineId = (args[1] as String?); - assert(arg_polylineId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPolylineClicked was null, expected non-null String.'); + assert( + arg_polylineId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPolylineClicked was null, expected non-null String.', + ); try { api.onPolylineClicked(arg_viewId!, arg_polylineId!); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } } { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onCircleClicked$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onCircleClicked$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onCircleClicked was null.'); + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onCircleClicked was null.', + ); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onCircleClicked was null, expected non-null int.'); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onCircleClicked was null, expected non-null int.', + ); final String? arg_circleId = (args[1] as String?); - assert(arg_circleId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onCircleClicked was null, expected non-null String.'); + assert( + arg_circleId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onCircleClicked was null, expected non-null String.', + ); try { api.onCircleClicked(arg_viewId!, arg_circleId!); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } } { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPoiClick$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPoiClick$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPoiClick was null.'); + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPoiClick was null.', + ); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPoiClick was null, expected non-null int.'); - final PointOfInterestDto? arg_pointOfInterest = (args[1] as PointOfInterestDto?); - assert(arg_pointOfInterest != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPoiClick was null, expected non-null PointOfInterestDto.'); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPoiClick was null, expected non-null int.', + ); + final PointOfInterestDto? arg_pointOfInterest = + (args[1] as PointOfInterestDto?); + assert( + arg_pointOfInterest != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPoiClick was null, expected non-null PointOfInterestDto.', + ); try { api.onPoiClick(arg_viewId!, arg_pointOfInterest!); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } } { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onNavigationUIEnabledChanged$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onNavigationUIEnabledChanged$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onNavigationUIEnabledChanged was null.'); + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onNavigationUIEnabledChanged was null.', + ); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onNavigationUIEnabledChanged was null, expected non-null int.'); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onNavigationUIEnabledChanged was null, expected non-null int.', + ); final bool? arg_navigationUIEnabled = (args[1] as bool?); - assert(arg_navigationUIEnabled != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onNavigationUIEnabledChanged was null, expected non-null bool.'); + assert( + arg_navigationUIEnabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onNavigationUIEnabledChanged was null, expected non-null bool.', + ); try { - api.onNavigationUIEnabledChanged(arg_viewId!, arg_navigationUIEnabled!); + api.onNavigationUIEnabledChanged( + arg_viewId!, + arg_navigationUIEnabled!, + ); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } } { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPromptVisibilityChanged$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPromptVisibilityChanged$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPromptVisibilityChanged was null.'); + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPromptVisibilityChanged was null.', + ); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPromptVisibilityChanged was null, expected non-null int.'); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPromptVisibilityChanged was null, expected non-null int.', + ); final bool? arg_promptVisible = (args[1] as bool?); - assert(arg_promptVisible != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPromptVisibilityChanged was null, expected non-null bool.'); + assert( + arg_promptVisible != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPromptVisibilityChanged was null, expected non-null bool.', + ); try { api.onPromptVisibilityChanged(arg_viewId!, arg_promptVisible!); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } } { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMyLocationClicked$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMyLocationClicked$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMyLocationClicked was null.'); + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMyLocationClicked was null.', + ); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMyLocationClicked was null, expected non-null int.'); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMyLocationClicked was null, expected non-null int.', + ); try { api.onMyLocationClicked(arg_viewId!); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } } { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMyLocationButtonClicked$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMyLocationButtonClicked$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMyLocationButtonClicked was null.'); + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMyLocationButtonClicked was null.', + ); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMyLocationButtonClicked was null, expected non-null int.'); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMyLocationButtonClicked was null, expected non-null int.', + ); try { api.onMyLocationButtonClicked(arg_viewId!); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } } { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onIndoorFocusedBuildingChanged$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onIndoorFocusedBuildingChanged$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onIndoorFocusedBuildingChanged was null.'); + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onIndoorFocusedBuildingChanged was null.', + ); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onIndoorFocusedBuildingChanged was null, expected non-null int.'); - final IndoorBuildingDto? arg_building = (args[1] as IndoorBuildingDto?); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onIndoorFocusedBuildingChanged was null, expected non-null int.', + ); + final IndoorBuildingDto? arg_building = + (args[1] as IndoorBuildingDto?); try { api.onIndoorFocusedBuildingChanged(arg_viewId!, arg_building); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } } { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onIndoorActiveLevelChanged$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onIndoorActiveLevelChanged$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onIndoorActiveLevelChanged was null.'); + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onIndoorActiveLevelChanged was null.', + ); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onIndoorActiveLevelChanged was null, expected non-null int.'); - final IndoorBuildingDto? arg_building = (args[1] as IndoorBuildingDto?); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onIndoorActiveLevelChanged was null, expected non-null int.', + ); + final IndoorBuildingDto? arg_building = + (args[1] as IndoorBuildingDto?); try { api.onIndoorActiveLevelChanged(arg_viewId!, arg_building); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } } { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onCameraChanged$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onCameraChanged$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onCameraChanged was null.'); + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onCameraChanged was null.', + ); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onCameraChanged was null, expected non-null int.'); - final CameraEventTypeDto? arg_eventType = (args[1] as CameraEventTypeDto?); - assert(arg_eventType != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onCameraChanged was null, expected non-null CameraEventTypeDto.'); - final CameraPositionDto? arg_position = (args[2] as CameraPositionDto?); - assert(arg_position != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onCameraChanged was null, expected non-null CameraPositionDto.'); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onCameraChanged was null, expected non-null int.', + ); + final CameraEventTypeDto? arg_eventType = + (args[1] as CameraEventTypeDto?); + assert( + arg_eventType != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onCameraChanged was null, expected non-null CameraEventTypeDto.', + ); + final CameraPositionDto? arg_position = + (args[2] as CameraPositionDto?); + assert( + arg_position != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onCameraChanged was null, expected non-null CameraPositionDto.', + ); try { api.onCameraChanged(arg_viewId!, arg_eventType!, arg_position!); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } @@ -7238,23 +7944,34 @@ class NavigationSessionApi { /// Constructor for [NavigationSessionApi]. The [binaryMessenger] named argument is /// available for dependency injection. If it is left null, the default /// BinaryMessenger will be used which routes to the host platform. - NavigationSessionApi({BinaryMessenger? binaryMessenger, String messageChannelSuffix = ''}) - : pigeonVar_binaryMessenger = binaryMessenger, - pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; + NavigationSessionApi({ + BinaryMessenger? binaryMessenger, + String messageChannelSuffix = '', + }) : pigeonVar_binaryMessenger = binaryMessenger, + pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty + ? '.$messageChannelSuffix' + : ''; final BinaryMessenger? pigeonVar_binaryMessenger; static const MessageCodec pigeonChannelCodec = _PigeonCodec(); final String pigeonVar_messageChannelSuffix; - Future createNavigationSession(bool abnormalTerminationReportingEnabled, TaskRemovedBehaviorDto behavior) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.createNavigationSession$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + Future createNavigationSession( + bool abnormalTerminationReportingEnabled, + TaskRemovedBehaviorDto behavior, + ) async { + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.createNavigationSession$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [abnormalTerminationReportingEnabled, behavior], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([abnormalTerminationReportingEnabled, behavior]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -7271,12 +7988,14 @@ class NavigationSessionApi { } Future isInitialized() async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.isInitialized$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.isInitialized$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -7299,13 +8018,17 @@ class NavigationSessionApi { } Future cleanup(bool resetSession) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.cleanup$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.cleanup$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [resetSession], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([resetSession]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -7321,14 +8044,28 @@ class NavigationSessionApi { } } - Future showTermsAndConditionsDialog(String title, String companyName, bool shouldOnlyShowDriverAwarenessDisclaimer, TermsAndConditionsUIParamsDto? uiParams) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.showTermsAndConditionsDialog$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + Future showTermsAndConditionsDialog( + String title, + String companyName, + bool shouldOnlyShowDriverAwarenessDisclaimer, + TermsAndConditionsUIParamsDto? uiParams, + ) async { + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.showTermsAndConditionsDialog$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [ + title, + companyName, + shouldOnlyShowDriverAwarenessDisclaimer, + uiParams, + ], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([title, companyName, shouldOnlyShowDriverAwarenessDisclaimer, uiParams]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -7350,12 +8087,14 @@ class NavigationSessionApi { } Future areTermsAccepted() async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.areTermsAccepted$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.areTermsAccepted$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -7378,12 +8117,14 @@ class NavigationSessionApi { } Future resetTermsAccepted() async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.resetTermsAccepted$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.resetTermsAccepted$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -7401,12 +8142,14 @@ class NavigationSessionApi { } Future getNavSDKVersion() async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getNavSDKVersion$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getNavSDKVersion$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -7429,12 +8172,14 @@ class NavigationSessionApi { } Future isGuidanceRunning() async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.isGuidanceRunning$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.isGuidanceRunning$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -7457,12 +8202,14 @@ class NavigationSessionApi { } Future startGuidance() async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.startGuidance$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.startGuidance$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -7480,12 +8227,14 @@ class NavigationSessionApi { } Future stopGuidance() async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.stopGuidance$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.stopGuidance$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -7503,13 +8252,17 @@ class NavigationSessionApi { } Future setDestinations(DestinationsDto destinations) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setDestinations$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setDestinations$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [destinations], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([destinations]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -7531,12 +8284,14 @@ class NavigationSessionApi { } Future clearDestinations() async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.clearDestinations$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.clearDestinations$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -7553,13 +8308,16 @@ class NavigationSessionApi { } } - Future continueToNextDestination() async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.continueToNextDestination$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + Future + continueToNextDestination() async { + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.continueToNextDestination$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -7582,12 +8340,14 @@ class NavigationSessionApi { } Future getCurrentTimeAndDistance() async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getCurrentTimeAndDistance$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getCurrentTimeAndDistance$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -7609,14 +8369,20 @@ class NavigationSessionApi { } } - Future setAudioGuidance(NavigationAudioGuidanceSettingsDto settings) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setAudioGuidance$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + Future setAudioGuidance( + NavigationAudioGuidanceSettingsDto settings, + ) async { + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setAudioGuidance$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [settings], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([settings]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -7633,13 +8399,17 @@ class NavigationSessionApi { } Future setSpeedAlertOptions(SpeedAlertOptionsDto options) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setSpeedAlertOptions$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setSpeedAlertOptions$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [options], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([options]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -7656,12 +8426,14 @@ class NavigationSessionApi { } Future> getRouteSegments() async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getRouteSegments$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getRouteSegments$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -7679,17 +8451,20 @@ class NavigationSessionApi { message: 'Host platform returned null value for non-null return value.', ); } else { - return (pigeonVar_replyList[0] as List?)!.cast(); + return (pigeonVar_replyList[0] as List?)! + .cast(); } } Future> getTraveledRoute() async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getTraveledRoute$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getTraveledRoute$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -7712,12 +8487,14 @@ class NavigationSessionApi { } Future getCurrentRouteSegment() async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getCurrentRouteSegment$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getCurrentRouteSegment$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -7735,13 +8512,17 @@ class NavigationSessionApi { } Future setUserLocation(LatLngDto location) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setUserLocation$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setUserLocation$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [location], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([location]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -7758,12 +8539,14 @@ class NavigationSessionApi { } Future removeUserLocation() async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.removeUserLocation$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.removeUserLocation$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -7781,12 +8564,14 @@ class NavigationSessionApi { } Future simulateLocationsAlongExistingRoute() async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongExistingRoute$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongExistingRoute$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -7803,14 +8588,20 @@ class NavigationSessionApi { } } - Future simulateLocationsAlongExistingRouteWithOptions(SimulationOptionsDto options) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongExistingRouteWithOptions$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + Future simulateLocationsAlongExistingRouteWithOptions( + SimulationOptionsDto options, + ) async { + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongExistingRouteWithOptions$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [options], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([options]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -7826,14 +8617,20 @@ class NavigationSessionApi { } } - Future simulateLocationsAlongNewRoute(List waypoints) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRoute$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + Future simulateLocationsAlongNewRoute( + List waypoints, + ) async { + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRoute$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [waypoints], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([waypoints]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -7854,14 +8651,21 @@ class NavigationSessionApi { } } - Future simulateLocationsAlongNewRouteWithRoutingOptions(List waypoints, RoutingOptionsDto routingOptions) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRouteWithRoutingOptions$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + Future simulateLocationsAlongNewRouteWithRoutingOptions( + List waypoints, + RoutingOptionsDto routingOptions, + ) async { + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRouteWithRoutingOptions$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [waypoints, routingOptions], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([waypoints, routingOptions]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -7882,14 +8686,23 @@ class NavigationSessionApi { } } - Future simulateLocationsAlongNewRouteWithRoutingAndSimulationOptions(List waypoints, RoutingOptionsDto routingOptions, SimulationOptionsDto simulationOptions) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRouteWithRoutingAndSimulationOptions$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + Future + simulateLocationsAlongNewRouteWithRoutingAndSimulationOptions( + List waypoints, + RoutingOptionsDto routingOptions, + SimulationOptionsDto simulationOptions, + ) async { + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRouteWithRoutingAndSimulationOptions$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [waypoints, routingOptions, simulationOptions], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([waypoints, routingOptions, simulationOptions]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -7911,12 +8724,14 @@ class NavigationSessionApi { } Future pauseSimulation() async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.pauseSimulation$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.pauseSimulation$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -7934,12 +8749,14 @@ class NavigationSessionApi { } Future resumeSimulation() async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.resumeSimulation$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.resumeSimulation$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -7958,13 +8775,17 @@ class NavigationSessionApi { /// iOS-only method. Future allowBackgroundLocationUpdates(bool allow) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.allowBackgroundLocationUpdates$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.allowBackgroundLocationUpdates$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [allow], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([allow]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -7981,12 +8802,14 @@ class NavigationSessionApi { } Future enableRoadSnappedLocationUpdates() async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.enableRoadSnappedLocationUpdates$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.enableRoadSnappedLocationUpdates$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -8004,12 +8827,14 @@ class NavigationSessionApi { } Future disableRoadSnappedLocationUpdates() async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.disableRoadSnappedLocationUpdates$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.disableRoadSnappedLocationUpdates$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -8026,14 +8851,21 @@ class NavigationSessionApi { } } - Future enableTurnByTurnNavigationEvents(int? numNextStepsToPreview, StepImageGenerationOptionsDto? options) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.enableTurnByTurnNavigationEvents$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + Future enableTurnByTurnNavigationEvents( + int? numNextStepsToPreview, + StepImageGenerationOptionsDto? options, + ) async { + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.enableTurnByTurnNavigationEvents$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [numNextStepsToPreview, options], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([numNextStepsToPreview, options]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -8050,12 +8882,14 @@ class NavigationSessionApi { } Future disableTurnByTurnNavigationEvents() async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.disableTurnByTurnNavigationEvents$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.disableTurnByTurnNavigationEvents$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -8072,14 +8906,24 @@ class NavigationSessionApi { } } - Future registerRemainingTimeOrDistanceChangedListener(int remainingTimeThresholdSeconds, int remainingDistanceThresholdMeters) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.registerRemainingTimeOrDistanceChangedListener$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + Future registerRemainingTimeOrDistanceChangedListener( + int remainingTimeThresholdSeconds, + int remainingDistanceThresholdMeters, + ) async { + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.registerRemainingTimeOrDistanceChangedListener$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [ + remainingTimeThresholdSeconds, + remainingDistanceThresholdMeters, + ], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([remainingTimeThresholdSeconds, remainingDistanceThresholdMeters]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -8109,7 +8953,11 @@ abstract class NavigationSessionEventApi { void onRouteChanged(); - void onRemainingTimeOrDistanceChanged(double remainingTime, double remainingDistance, TrafficDelaySeverityDto delaySeverity); + void onRemainingTimeOrDistanceChanged( + double remainingTime, + double remainingDistance, + TrafficDelaySeverityDto delaySeverity, + ); /// Android-only event. void onTrafficUpdated(); @@ -8130,112 +8978,159 @@ abstract class NavigationSessionEventApi { /// session starts with active guidance. void onNewNavigationSession(); - static void setUp(NavigationSessionEventApi? api, {BinaryMessenger? binaryMessenger, String messageChannelSuffix = '',}) { - messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; + static void setUp( + NavigationSessionEventApi? api, { + BinaryMessenger? binaryMessenger, + String messageChannelSuffix = '', + }) { + messageChannelSuffix = messageChannelSuffix.isNotEmpty + ? '.$messageChannelSuffix' + : ''; { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onSpeedingUpdated$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onSpeedingUpdated$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onSpeedingUpdated was null.'); + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onSpeedingUpdated was null.', + ); final List args = (message as List?)!; - final SpeedingUpdatedEventDto? arg_msg = (args[0] as SpeedingUpdatedEventDto?); - assert(arg_msg != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onSpeedingUpdated was null, expected non-null SpeedingUpdatedEventDto.'); + final SpeedingUpdatedEventDto? arg_msg = + (args[0] as SpeedingUpdatedEventDto?); + assert( + arg_msg != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onSpeedingUpdated was null, expected non-null SpeedingUpdatedEventDto.', + ); try { api.onSpeedingUpdated(arg_msg!); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } } { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRoadSnappedLocationUpdated$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRoadSnappedLocationUpdated$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRoadSnappedLocationUpdated was null.'); + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRoadSnappedLocationUpdated was null.', + ); final List args = (message as List?)!; final LatLngDto? arg_location = (args[0] as LatLngDto?); - assert(arg_location != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRoadSnappedLocationUpdated was null, expected non-null LatLngDto.'); + assert( + arg_location != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRoadSnappedLocationUpdated was null, expected non-null LatLngDto.', + ); try { api.onRoadSnappedLocationUpdated(arg_location!); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } } { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRoadSnappedRawLocationUpdated$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRoadSnappedRawLocationUpdated$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRoadSnappedRawLocationUpdated was null.'); + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRoadSnappedRawLocationUpdated was null.', + ); final List args = (message as List?)!; final LatLngDto? arg_location = (args[0] as LatLngDto?); - assert(arg_location != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRoadSnappedRawLocationUpdated was null, expected non-null LatLngDto.'); + assert( + arg_location != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRoadSnappedRawLocationUpdated was null, expected non-null LatLngDto.', + ); try { api.onRoadSnappedRawLocationUpdated(arg_location!); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } } { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onArrival$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onArrival$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onArrival was null.'); + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onArrival was null.', + ); final List args = (message as List?)!; - final NavigationWaypointDto? arg_waypoint = (args[0] as NavigationWaypointDto?); - assert(arg_waypoint != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onArrival was null, expected non-null NavigationWaypointDto.'); + final NavigationWaypointDto? arg_waypoint = + (args[0] as NavigationWaypointDto?); + assert( + arg_waypoint != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onArrival was null, expected non-null NavigationWaypointDto.', + ); try { api.onArrival(arg_waypoint!); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } } { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRouteChanged$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRouteChanged$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { @@ -8245,47 +9140,70 @@ abstract class NavigationSessionEventApi { return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } } { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRemainingTimeOrDistanceChanged$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRemainingTimeOrDistanceChanged$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRemainingTimeOrDistanceChanged was null.'); + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRemainingTimeOrDistanceChanged was null.', + ); final List args = (message as List?)!; final double? arg_remainingTime = (args[0] as double?); - assert(arg_remainingTime != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRemainingTimeOrDistanceChanged was null, expected non-null double.'); + assert( + arg_remainingTime != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRemainingTimeOrDistanceChanged was null, expected non-null double.', + ); final double? arg_remainingDistance = (args[1] as double?); - assert(arg_remainingDistance != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRemainingTimeOrDistanceChanged was null, expected non-null double.'); - final TrafficDelaySeverityDto? arg_delaySeverity = (args[2] as TrafficDelaySeverityDto?); - assert(arg_delaySeverity != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRemainingTimeOrDistanceChanged was null, expected non-null TrafficDelaySeverityDto.'); + assert( + arg_remainingDistance != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRemainingTimeOrDistanceChanged was null, expected non-null double.', + ); + final TrafficDelaySeverityDto? arg_delaySeverity = + (args[2] as TrafficDelaySeverityDto?); + assert( + arg_delaySeverity != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRemainingTimeOrDistanceChanged was null, expected non-null TrafficDelaySeverityDto.', + ); try { - api.onRemainingTimeOrDistanceChanged(arg_remainingTime!, arg_remainingDistance!, arg_delaySeverity!); + api.onRemainingTimeOrDistanceChanged( + arg_remainingTime!, + arg_remainingDistance!, + arg_delaySeverity!, + ); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } } { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onTrafficUpdated$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onTrafficUpdated$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { @@ -8295,16 +9213,21 @@ abstract class NavigationSessionEventApi { return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } } { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRerouting$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRerouting$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { @@ -8314,91 +9237,124 @@ abstract class NavigationSessionEventApi { return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } } { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onGpsAvailabilityUpdate$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onGpsAvailabilityUpdate$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onGpsAvailabilityUpdate was null.'); + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onGpsAvailabilityUpdate was null.', + ); final List args = (message as List?)!; final bool? arg_available = (args[0] as bool?); - assert(arg_available != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onGpsAvailabilityUpdate was null, expected non-null bool.'); + assert( + arg_available != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onGpsAvailabilityUpdate was null, expected non-null bool.', + ); try { api.onGpsAvailabilityUpdate(arg_available!); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } } { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onGpsAvailabilityChange$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onGpsAvailabilityChange$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onGpsAvailabilityChange was null.'); + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onGpsAvailabilityChange was null.', + ); final List args = (message as List?)!; - final GpsAvailabilityChangeEventDto? arg_event = (args[0] as GpsAvailabilityChangeEventDto?); - assert(arg_event != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onGpsAvailabilityChange was null, expected non-null GpsAvailabilityChangeEventDto.'); + final GpsAvailabilityChangeEventDto? arg_event = + (args[0] as GpsAvailabilityChangeEventDto?); + assert( + arg_event != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onGpsAvailabilityChange was null, expected non-null GpsAvailabilityChangeEventDto.', + ); try { api.onGpsAvailabilityChange(arg_event!); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } } { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onNavInfo$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onNavInfo$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onNavInfo was null.'); + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onNavInfo was null.', + ); final List args = (message as List?)!; final NavInfoDto? arg_navInfo = (args[0] as NavInfoDto?); - assert(arg_navInfo != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onNavInfo was null, expected non-null NavInfoDto.'); + assert( + arg_navInfo != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onNavInfo was null, expected non-null NavInfoDto.', + ); try { api.onNavInfo(arg_navInfo!); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } } { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onNewNavigationSession$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onNewNavigationSession$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { @@ -8408,8 +9364,10 @@ abstract class NavigationSessionEventApi { return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } @@ -8421,9 +9379,13 @@ class AutoMapViewApi { /// Constructor for [AutoMapViewApi]. The [binaryMessenger] named argument is /// available for dependency injection. If it is left null, the default /// BinaryMessenger will be used which routes to the host platform. - AutoMapViewApi({BinaryMessenger? binaryMessenger, String messageChannelSuffix = ''}) - : pigeonVar_binaryMessenger = binaryMessenger, - pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; + AutoMapViewApi({ + BinaryMessenger? binaryMessenger, + String messageChannelSuffix = '', + }) : pigeonVar_binaryMessenger = binaryMessenger, + pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty + ? '.$messageChannelSuffix' + : ''; final BinaryMessenger? pigeonVar_binaryMessenger; static const MessageCodec pigeonChannelCodec = _PigeonCodec(); @@ -8434,13 +9396,17 @@ class AutoMapViewApi { /// Should be called before the Auto/CarPlay screen is created. /// This allows customization of mapId and basic map settings. Future setAutoMapOptions(AutoMapOptionsDto mapOptions) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setAutoMapOptions$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setAutoMapOptions$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [mapOptions], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([mapOptions]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -8457,12 +9423,14 @@ class AutoMapViewApi { } Future isMyLocationEnabled() async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isMyLocationEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isMyLocationEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -8485,13 +9453,17 @@ class AutoMapViewApi { } Future setMyLocationEnabled(bool enabled) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMyLocationEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMyLocationEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [enabled], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([enabled]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -8508,12 +9480,14 @@ class AutoMapViewApi { } Future getMyLocation() async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMyLocation$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMyLocation$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -8531,12 +9505,14 @@ class AutoMapViewApi { } Future getMapType() async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMapType$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMapType$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -8559,13 +9535,17 @@ class AutoMapViewApi { } Future setMapType(MapTypeDto mapType) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapType$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapType$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [mapType], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([mapType]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -8582,13 +9562,17 @@ class AutoMapViewApi { } Future setMapStyle(String styleJson) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapStyle$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapStyle$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [styleJson], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([styleJson]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -8605,12 +9589,14 @@ class AutoMapViewApi { } Future getCameraPosition() async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getCameraPosition$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getCameraPosition$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -8633,12 +9619,14 @@ class AutoMapViewApi { } Future getVisibleRegion() async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getVisibleRegion$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getVisibleRegion$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -8660,14 +9648,21 @@ class AutoMapViewApi { } } - Future followMyLocation(CameraPerspectiveDto perspective, double? zoomLevel) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.followMyLocation$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + Future followMyLocation( + CameraPerspectiveDto perspective, + double? zoomLevel, + ) async { + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.followMyLocation$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [perspective, zoomLevel], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([perspective, zoomLevel]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -8683,14 +9678,21 @@ class AutoMapViewApi { } } - Future animateCameraToCameraPosition(CameraPositionDto cameraPosition, int? duration) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToCameraPosition$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + Future animateCameraToCameraPosition( + CameraPositionDto cameraPosition, + int? duration, + ) async { + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToCameraPosition$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [cameraPosition, duration], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([cameraPosition, duration]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -8712,13 +9714,17 @@ class AutoMapViewApi { } Future animateCameraToLatLng(LatLngDto point, int? duration) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLng$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLng$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [point, duration], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([point, duration]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -8739,14 +9745,22 @@ class AutoMapViewApi { } } - Future animateCameraToLatLngBounds(LatLngBoundsDto bounds, double padding, int? duration) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLngBounds$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + Future animateCameraToLatLngBounds( + LatLngBoundsDto bounds, + double padding, + int? duration, + ) async { + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLngBounds$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [bounds, padding, duration], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([bounds, padding, duration]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -8767,14 +9781,22 @@ class AutoMapViewApi { } } - Future animateCameraToLatLngZoom(LatLngDto point, double zoom, int? duration) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLngZoom$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + Future animateCameraToLatLngZoom( + LatLngDto point, + double zoom, + int? duration, + ) async { + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLngZoom$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [point, zoom, duration], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([point, zoom, duration]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -8795,14 +9817,22 @@ class AutoMapViewApi { } } - Future animateCameraByScroll(double scrollByDx, double scrollByDy, int? duration) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraByScroll$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + Future animateCameraByScroll( + double scrollByDx, + double scrollByDy, + int? duration, + ) async { + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraByScroll$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [scrollByDx, scrollByDy, duration], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([scrollByDx, scrollByDy, duration]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -8823,14 +9853,23 @@ class AutoMapViewApi { } } - Future animateCameraByZoom(double zoomBy, double? focusDx, double? focusDy, int? duration) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraByZoom$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + Future animateCameraByZoom( + double zoomBy, + double? focusDx, + double? focusDy, + int? duration, + ) async { + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraByZoom$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [zoomBy, focusDx, focusDy, duration], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([zoomBy, focusDx, focusDy, duration]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -8852,13 +9891,17 @@ class AutoMapViewApi { } Future animateCameraToZoom(double zoom, int? duration) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToZoom$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToZoom$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [zoom, duration], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([zoom, duration]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -8879,14 +9922,20 @@ class AutoMapViewApi { } } - Future moveCameraToCameraPosition(CameraPositionDto cameraPosition) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToCameraPosition$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + Future moveCameraToCameraPosition( + CameraPositionDto cameraPosition, + ) async { + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToCameraPosition$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [cameraPosition], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([cameraPosition]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -8903,13 +9952,17 @@ class AutoMapViewApi { } Future moveCameraToLatLng(LatLngDto point) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLng$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLng$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [point], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([point]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -8925,14 +9978,21 @@ class AutoMapViewApi { } } - Future moveCameraToLatLngBounds(LatLngBoundsDto bounds, double padding) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLngBounds$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + Future moveCameraToLatLngBounds( + LatLngBoundsDto bounds, + double padding, + ) async { + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLngBounds$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [bounds, padding], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([bounds, padding]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -8949,13 +10009,17 @@ class AutoMapViewApi { } Future moveCameraToLatLngZoom(LatLngDto point, double zoom) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLngZoom$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLngZoom$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [point, zoom], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([point, zoom]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -8972,13 +10036,17 @@ class AutoMapViewApi { } Future moveCameraByScroll(double scrollByDx, double scrollByDy) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraByScroll$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraByScroll$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [scrollByDx, scrollByDy], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([scrollByDx, scrollByDy]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -8994,14 +10062,22 @@ class AutoMapViewApi { } } - Future moveCameraByZoom(double zoomBy, double? focusDx, double? focusDy) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraByZoom$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + Future moveCameraByZoom( + double zoomBy, + double? focusDx, + double? focusDy, + ) async { + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraByZoom$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [zoomBy, focusDx, focusDy], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([zoomBy, focusDx, focusDy]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -9018,13 +10094,17 @@ class AutoMapViewApi { } Future moveCameraToZoom(double zoom) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToZoom$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToZoom$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [zoom], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([zoom]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -9041,12 +10121,14 @@ class AutoMapViewApi { } Future getMinZoomPreference() async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMinZoomPreference$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMinZoomPreference$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -9069,12 +10151,14 @@ class AutoMapViewApi { } Future getMaxZoomPreference() async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMaxZoomPreference$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMaxZoomPreference$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -9097,12 +10181,14 @@ class AutoMapViewApi { } Future resetMinMaxZoomPreference() async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.resetMinMaxZoomPreference$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.resetMinMaxZoomPreference$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -9120,13 +10206,17 @@ class AutoMapViewApi { } Future setMinZoomPreference(double minZoomPreference) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMinZoomPreference$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMinZoomPreference$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [minZoomPreference], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([minZoomPreference]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -9143,13 +10233,17 @@ class AutoMapViewApi { } Future setMaxZoomPreference(double maxZoomPreference) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMaxZoomPreference$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMaxZoomPreference$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [maxZoomPreference], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([maxZoomPreference]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -9166,13 +10260,17 @@ class AutoMapViewApi { } Future setMyLocationButtonEnabled(bool enabled) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMyLocationButtonEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMyLocationButtonEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [enabled], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([enabled]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -9188,14 +10286,20 @@ class AutoMapViewApi { } } - Future setConsumeMyLocationButtonClickEventsEnabled(bool enabled) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setConsumeMyLocationButtonClickEventsEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + Future setConsumeMyLocationButtonClickEventsEnabled( + bool enabled, + ) async { + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setConsumeMyLocationButtonClickEventsEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [enabled], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([enabled]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -9212,13 +10316,17 @@ class AutoMapViewApi { } Future setZoomGesturesEnabled(bool enabled) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setZoomGesturesEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setZoomGesturesEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [enabled], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([enabled]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -9235,13 +10343,17 @@ class AutoMapViewApi { } Future setZoomControlsEnabled(bool enabled) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setZoomControlsEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setZoomControlsEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [enabled], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([enabled]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -9258,13 +10370,17 @@ class AutoMapViewApi { } Future setCompassEnabled(bool enabled) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setCompassEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setCompassEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [enabled], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([enabled]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -9281,13 +10397,17 @@ class AutoMapViewApi { } Future setRotateGesturesEnabled(bool enabled) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setRotateGesturesEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setRotateGesturesEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [enabled], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([enabled]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -9304,13 +10424,17 @@ class AutoMapViewApi { } Future setScrollGesturesEnabled(bool enabled) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setScrollGesturesEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setScrollGesturesEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [enabled], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([enabled]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -9327,13 +10451,17 @@ class AutoMapViewApi { } Future setScrollGesturesDuringRotateOrZoomEnabled(bool enabled) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setScrollGesturesDuringRotateOrZoomEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setScrollGesturesDuringRotateOrZoomEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [enabled], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([enabled]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -9350,13 +10478,17 @@ class AutoMapViewApi { } Future setTiltGesturesEnabled(bool enabled) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTiltGesturesEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTiltGesturesEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [enabled], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([enabled]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -9373,13 +10505,17 @@ class AutoMapViewApi { } Future setMapToolbarEnabled(bool enabled) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapToolbarEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapToolbarEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [enabled], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([enabled]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -9396,13 +10532,17 @@ class AutoMapViewApi { } Future setTrafficEnabled(bool enabled) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [enabled], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([enabled]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -9419,13 +10559,17 @@ class AutoMapViewApi { } Future setTrafficPromptsEnabled(bool enabled) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficPromptsEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficPromptsEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [enabled], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([enabled]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -9442,13 +10586,17 @@ class AutoMapViewApi { } Future setTrafficIncidentCardsEnabled(bool enabled) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficIncidentCardsEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficIncidentCardsEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [enabled], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([enabled]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -9465,13 +10613,17 @@ class AutoMapViewApi { } Future setNavigationTripProgressBarEnabled(bool enabled) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setNavigationTripProgressBarEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setNavigationTripProgressBarEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [enabled], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([enabled]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -9488,13 +10640,17 @@ class AutoMapViewApi { } Future setSpeedLimitIconEnabled(bool enabled) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setSpeedLimitIconEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setSpeedLimitIconEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [enabled], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([enabled]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -9511,13 +10667,17 @@ class AutoMapViewApi { } Future setSpeedometerEnabled(bool enabled) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setSpeedometerEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setSpeedometerEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [enabled], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([enabled]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -9534,13 +10694,17 @@ class AutoMapViewApi { } Future setNavigationUIEnabled(bool enabled) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setNavigationUIEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setNavigationUIEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [enabled], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([enabled]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -9557,12 +10721,14 @@ class AutoMapViewApi { } Future isMyLocationButtonEnabled() async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isMyLocationButtonEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isMyLocationButtonEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -9585,12 +10751,14 @@ class AutoMapViewApi { } Future isConsumeMyLocationButtonClickEventsEnabled() async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isConsumeMyLocationButtonClickEventsEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isConsumeMyLocationButtonClickEventsEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -9613,12 +10781,14 @@ class AutoMapViewApi { } Future isZoomGesturesEnabled() async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isZoomGesturesEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isZoomGesturesEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -9641,12 +10811,14 @@ class AutoMapViewApi { } Future isZoomControlsEnabled() async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isZoomControlsEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isZoomControlsEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -9669,12 +10841,14 @@ class AutoMapViewApi { } Future isCompassEnabled() async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isCompassEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isCompassEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -9697,12 +10871,14 @@ class AutoMapViewApi { } Future isRotateGesturesEnabled() async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isRotateGesturesEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isRotateGesturesEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -9725,12 +10901,14 @@ class AutoMapViewApi { } Future isScrollGesturesEnabled() async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isScrollGesturesEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isScrollGesturesEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -9753,12 +10931,14 @@ class AutoMapViewApi { } Future isScrollGesturesEnabledDuringRotateOrZoom() async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isScrollGesturesEnabledDuringRotateOrZoom$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isScrollGesturesEnabledDuringRotateOrZoom$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -9781,12 +10961,14 @@ class AutoMapViewApi { } Future isTiltGesturesEnabled() async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTiltGesturesEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTiltGesturesEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -9809,12 +10991,14 @@ class AutoMapViewApi { } Future isMapToolbarEnabled() async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isMapToolbarEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isMapToolbarEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -9837,12 +11021,14 @@ class AutoMapViewApi { } Future isTrafficEnabled() async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTrafficEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTrafficEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -9865,12 +11051,14 @@ class AutoMapViewApi { } Future isTrafficPromptsEnabled() async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTrafficPromptsEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTrafficPromptsEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -9893,12 +11081,14 @@ class AutoMapViewApi { } Future isTrafficIncidentCardsEnabled() async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTrafficIncidentCardsEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTrafficIncidentCardsEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -9921,12 +11111,14 @@ class AutoMapViewApi { } Future isNavigationTripProgressBarEnabled() async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isNavigationTripProgressBarEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isNavigationTripProgressBarEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -9949,12 +11141,14 @@ class AutoMapViewApi { } Future isSpeedLimitIconEnabled() async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isSpeedLimitIconEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isSpeedLimitIconEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -9977,12 +11171,14 @@ class AutoMapViewApi { } Future isSpeedometerEnabled() async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isSpeedometerEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isSpeedometerEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -10005,12 +11201,14 @@ class AutoMapViewApi { } Future isNavigationUIEnabled() async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isNavigationUIEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isNavigationUIEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -10033,12 +11231,14 @@ class AutoMapViewApi { } Future isIndoorEnabled() async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isIndoorEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isIndoorEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -10061,13 +11261,17 @@ class AutoMapViewApi { } Future setIndoorEnabled(bool enabled) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setIndoorEnabled$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setIndoorEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [enabled], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([enabled]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -10084,12 +11288,14 @@ class AutoMapViewApi { } Future getFocusedIndoorBuilding() async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getFocusedIndoorBuilding$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getFocusedIndoorBuilding$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -10107,13 +11313,17 @@ class AutoMapViewApi { } Future activateIndoorLevel(int levelIndex) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.activateIndoorLevel$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.activateIndoorLevel$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [levelIndex], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([levelIndex]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -10130,12 +11340,14 @@ class AutoMapViewApi { } Future showRouteOverview() async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.showRouteOverview$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.showRouteOverview$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -10153,12 +11365,14 @@ class AutoMapViewApi { } Future> getMarkers() async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMarkers$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMarkers$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -10181,13 +11395,17 @@ class AutoMapViewApi { } Future> addMarkers(List markers) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addMarkers$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addMarkers$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [markers], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([markers]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -10209,13 +11427,17 @@ class AutoMapViewApi { } Future> updateMarkers(List markers) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updateMarkers$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updateMarkers$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [markers], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([markers]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -10237,13 +11459,17 @@ class AutoMapViewApi { } Future removeMarkers(List markers) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removeMarkers$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removeMarkers$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [markers], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([markers]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -10260,12 +11486,14 @@ class AutoMapViewApi { } Future clearMarkers() async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearMarkers$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearMarkers$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -10283,12 +11511,14 @@ class AutoMapViewApi { } Future clear() async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clear$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clear$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -10306,12 +11536,14 @@ class AutoMapViewApi { } Future> getPolygons() async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getPolygons$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getPolygons$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -10334,13 +11566,17 @@ class AutoMapViewApi { } Future> addPolygons(List polygons) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addPolygons$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addPolygons$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [polygons], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([polygons]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -10362,13 +11598,17 @@ class AutoMapViewApi { } Future> updatePolygons(List polygons) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updatePolygons$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updatePolygons$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [polygons], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([polygons]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -10390,13 +11630,17 @@ class AutoMapViewApi { } Future removePolygons(List polygons) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removePolygons$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removePolygons$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [polygons], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([polygons]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -10413,12 +11657,14 @@ class AutoMapViewApi { } Future clearPolygons() async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearPolygons$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearPolygons$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -10436,12 +11682,14 @@ class AutoMapViewApi { } Future> getPolylines() async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getPolylines$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getPolylines$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -10464,13 +11712,17 @@ class AutoMapViewApi { } Future> addPolylines(List polylines) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addPolylines$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addPolylines$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [polylines], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([polylines]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -10492,13 +11744,17 @@ class AutoMapViewApi { } Future> updatePolylines(List polylines) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updatePolylines$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updatePolylines$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [polylines], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([polylines]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -10520,13 +11776,17 @@ class AutoMapViewApi { } Future removePolylines(List polylines) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removePolylines$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removePolylines$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [polylines], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([polylines]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -10543,12 +11803,14 @@ class AutoMapViewApi { } Future clearPolylines() async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearPolylines$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearPolylines$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -10566,12 +11828,14 @@ class AutoMapViewApi { } Future> getCircles() async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getCircles$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getCircles$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -10594,13 +11858,17 @@ class AutoMapViewApi { } Future> addCircles(List circles) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addCircles$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addCircles$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [circles], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([circles]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -10622,13 +11890,17 @@ class AutoMapViewApi { } Future> updateCircles(List circles) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updateCircles$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updateCircles$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [circles], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([circles]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -10650,13 +11922,17 @@ class AutoMapViewApi { } Future removeCircles(List circles) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removeCircles$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removeCircles$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [circles], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([circles]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -10673,12 +11949,14 @@ class AutoMapViewApi { } Future clearCircles() async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearCircles$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearCircles$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -10696,12 +11974,14 @@ class AutoMapViewApi { } Future enableOnCameraChangedEvents() async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.enableOnCameraChangedEvents$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.enableOnCameraChangedEvents$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -10719,12 +11999,14 @@ class AutoMapViewApi { } Future isAutoScreenAvailable() async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isAutoScreenAvailable$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isAutoScreenAvailable$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -10747,13 +12029,17 @@ class AutoMapViewApi { } Future setPadding(MapPaddingDto padding) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setPadding$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setPadding$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [padding], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([padding]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -10770,12 +12056,14 @@ class AutoMapViewApi { } Future getPadding() async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getPadding$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getPadding$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -10798,12 +12086,14 @@ class AutoMapViewApi { } Future getMapColorScheme() async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMapColorScheme$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMapColorScheme$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -10826,13 +12116,17 @@ class AutoMapViewApi { } Future setMapColorScheme(MapColorSchemeDto mapColorScheme) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapColorScheme$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapColorScheme$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [mapColorScheme], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([mapColorScheme]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -10849,12 +12143,14 @@ class AutoMapViewApi { } Future getForceNightMode() async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getForceNightMode$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getForceNightMode$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; @@ -10876,14 +12172,20 @@ class AutoMapViewApi { } } - Future setForceNightMode(NavigationForceNightModeDto forceNightMode) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setForceNightMode$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + Future setForceNightMode( + NavigationForceNightModeDto forceNightMode, + ) async { + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setForceNightMode$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [forceNightMode], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([forceNightMode]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -10900,13 +12202,17 @@ class AutoMapViewApi { } Future sendCustomNavigationAutoEvent(String event, Object data) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.sendCustomNavigationAutoEvent$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.sendCustomNavigationAutoEvent$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [event, data], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([event, data]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -10938,153 +12244,213 @@ abstract class AutoViewEventApi { void onIndoorActiveLevelChanged(IndoorBuildingDto? building); - static void setUp(AutoViewEventApi? api, {BinaryMessenger? binaryMessenger, String messageChannelSuffix = '',}) { - messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; + static void setUp( + AutoViewEventApi? api, { + BinaryMessenger? binaryMessenger, + String messageChannelSuffix = '', + }) { + messageChannelSuffix = messageChannelSuffix.isNotEmpty + ? '.$messageChannelSuffix' + : ''; { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onCustomNavigationAutoEvent$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onCustomNavigationAutoEvent$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onCustomNavigationAutoEvent was null.'); + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onCustomNavigationAutoEvent was null.', + ); final List args = (message as List?)!; final String? arg_event = (args[0] as String?); - assert(arg_event != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onCustomNavigationAutoEvent was null, expected non-null String.'); + assert( + arg_event != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onCustomNavigationAutoEvent was null, expected non-null String.', + ); final Object? arg_data = (args[1] as Object?); - assert(arg_data != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onCustomNavigationAutoEvent was null, expected non-null Object.'); + assert( + arg_data != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onCustomNavigationAutoEvent was null, expected non-null Object.', + ); try { api.onCustomNavigationAutoEvent(arg_event!, arg_data!); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } } { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onAutoScreenAvailabilityChanged$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onAutoScreenAvailabilityChanged$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onAutoScreenAvailabilityChanged was null.'); + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onAutoScreenAvailabilityChanged was null.', + ); final List args = (message as List?)!; final bool? arg_isAvailable = (args[0] as bool?); - assert(arg_isAvailable != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onAutoScreenAvailabilityChanged was null, expected non-null bool.'); + assert( + arg_isAvailable != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onAutoScreenAvailabilityChanged was null, expected non-null bool.', + ); try { api.onAutoScreenAvailabilityChanged(arg_isAvailable!); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } } { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onPromptVisibilityChanged$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onPromptVisibilityChanged$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onPromptVisibilityChanged was null.'); + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onPromptVisibilityChanged was null.', + ); final List args = (message as List?)!; final bool? arg_promptVisible = (args[0] as bool?); - assert(arg_promptVisible != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onPromptVisibilityChanged was null, expected non-null bool.'); + assert( + arg_promptVisible != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onPromptVisibilityChanged was null, expected non-null bool.', + ); try { api.onPromptVisibilityChanged(arg_promptVisible!); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } } { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onNavigationUIEnabledChanged$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onNavigationUIEnabledChanged$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onNavigationUIEnabledChanged was null.'); + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onNavigationUIEnabledChanged was null.', + ); final List args = (message as List?)!; final bool? arg_navigationUIEnabled = (args[0] as bool?); - assert(arg_navigationUIEnabled != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onNavigationUIEnabledChanged was null, expected non-null bool.'); + assert( + arg_navigationUIEnabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onNavigationUIEnabledChanged was null, expected non-null bool.', + ); try { api.onNavigationUIEnabledChanged(arg_navigationUIEnabled!); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } } { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onIndoorFocusedBuildingChanged$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onIndoorFocusedBuildingChanged$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onIndoorFocusedBuildingChanged was null.'); + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onIndoorFocusedBuildingChanged was null.', + ); final List args = (message as List?)!; - final IndoorBuildingDto? arg_building = (args[0] as IndoorBuildingDto?); + final IndoorBuildingDto? arg_building = + (args[0] as IndoorBuildingDto?); try { api.onIndoorFocusedBuildingChanged(arg_building); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } } { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onIndoorActiveLevelChanged$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onIndoorActiveLevelChanged$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onIndoorActiveLevelChanged was null.'); + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onIndoorActiveLevelChanged was null.', + ); final List args = (message as List?)!; - final IndoorBuildingDto? arg_building = (args[0] as IndoorBuildingDto?); + final IndoorBuildingDto? arg_building = + (args[0] as IndoorBuildingDto?); try { api.onIndoorActiveLevelChanged(arg_building); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } @@ -11096,9 +12462,13 @@ class NavigationInspector { /// Constructor for [NavigationInspector]. The [binaryMessenger] named argument is /// available for dependency injection. If it is left null, the default /// BinaryMessenger will be used which routes to the host platform. - NavigationInspector({BinaryMessenger? binaryMessenger, String messageChannelSuffix = ''}) - : pigeonVar_binaryMessenger = binaryMessenger, - pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; + NavigationInspector({ + BinaryMessenger? binaryMessenger, + String messageChannelSuffix = '', + }) : pigeonVar_binaryMessenger = binaryMessenger, + pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty + ? '.$messageChannelSuffix' + : ''; final BinaryMessenger? pigeonVar_binaryMessenger; static const MessageCodec pigeonChannelCodec = _PigeonCodec(); @@ -11106,13 +12476,17 @@ class NavigationInspector { final String pigeonVar_messageChannelSuffix; Future isViewAttachedToSession(int viewId) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.NavigationInspector.isViewAttachedToSession$pigeonVar_messageChannelSuffix'; - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.NavigationInspector.isViewAttachedToSession$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [viewId], ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([viewId]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { diff --git a/test/google_navigation_flutter_test.dart b/test/google_navigation_flutter_test.dart index a0c83a9f..dbac265e 100644 --- a/test/google_navigation_flutter_test.dart +++ b/test/google_navigation_flutter_test.dart @@ -689,8 +689,12 @@ void main() { isUnderground: false, ), ); - when(viewMockApi.isNavigationHeaderEnabled(any)).thenReturn(true); - when(viewMockApi.getNavigationHeaderStylingOptions(any)).thenReturn( + when( + viewMockApi.isNavigationHeaderEnabled(any as int), + ).thenReturn(true); + when( + viewMockApi.getNavigationHeaderStylingOptions(any as int), + ).thenReturn( NavigationHeaderStylingOptionsDto( primaryDayModeBackgroundColor: Colors.blue.toARGB32(), secondaryDayModeBackgroundColor: Colors.red.toARGB32(), @@ -766,8 +770,10 @@ void main() { verify(viewMockApi.isIndoorLevelPickerEnabled(captureAny)); verify(viewMockApi.getFocusedIndoorBuilding(captureAny)); verify(viewMockApi.activateIndoorLevel(captureAny, captureAny)); - verify(viewMockApi.isNavigationHeaderEnabled(captureAny)); - verify(viewMockApi.getNavigationHeaderStylingOptions(captureAny)); + verify(viewMockApi.isNavigationHeaderEnabled(captureAny as int)); + verify( + viewMockApi.getNavigationHeaderStylingOptions(captureAny as int), + ); verify(viewMockApi.isNavigationFooterEnabled(captureAny)); verify(viewMockApi.isSpeedLimitIconEnabled(captureAny)); verify(viewMockApi.isSpeedometerEnabled(captureAny)); @@ -898,8 +904,8 @@ void main() { ); final VerificationResult headerStylingResult = verify( viewMockApi.setNavigationHeaderStylingOptions( - captureAny, - captureAny, + captureAny as int, + captureAny as NavigationHeaderStylingOptionsDto, ), ); final NavigationHeaderStylingOptionsDto headerStylingOut = diff --git a/test/messages_test.g.dart b/test/messages_test.g.dart index e3e70235..7a905b66 100644 --- a/test/messages_test.g.dart +++ b/test/messages_test.g.dart @@ -24,7 +24,6 @@ import 'package:flutter_test/flutter_test.dart'; import 'package:google_navigation_flutter/src/method_channel/messages.g.dart'; - class _PigeonCodec extends StandardMessageCodec { const _PigeonCodec(); @override @@ -32,229 +31,230 @@ class _PigeonCodec extends StandardMessageCodec { if (value is int) { buffer.putUint8(4); buffer.putInt64(value); - } else if (value is MapViewTypeDto) { + } else if (value is MapViewTypeDto) { buffer.putUint8(129); writeValue(buffer, value.index); - } else if (value is NavigationUIEnabledPreferenceDto) { + } else if (value is NavigationUIEnabledPreferenceDto) { buffer.putUint8(130); writeValue(buffer, value.index); - } else if (value is MapTypeDto) { + } else if (value is MapTypeDto) { buffer.putUint8(131); writeValue(buffer, value.index); - } else if (value is MapColorSchemeDto) { + } else if (value is MapColorSchemeDto) { buffer.putUint8(132); writeValue(buffer, value.index); - } else if (value is NavigationForceNightModeDto) { + } else if (value is NavigationForceNightModeDto) { buffer.putUint8(133); writeValue(buffer, value.index); - } else if (value is CameraPerspectiveDto) { + } else if (value is CameraPerspectiveDto) { buffer.putUint8(134); writeValue(buffer, value.index); - } else if (value is RegisteredImageTypeDto) { + } else if (value is RegisteredImageTypeDto) { buffer.putUint8(135); writeValue(buffer, value.index); - } else if (value is MarkerEventTypeDto) { + } else if (value is MarkerEventTypeDto) { buffer.putUint8(136); writeValue(buffer, value.index); - } else if (value is MarkerDragEventTypeDto) { + } else if (value is MarkerDragEventTypeDto) { buffer.putUint8(137); writeValue(buffer, value.index); - } else if (value is StrokeJointTypeDto) { + } else if (value is StrokeJointTypeDto) { buffer.putUint8(138); writeValue(buffer, value.index); - } else if (value is PatternTypeDto) { + } else if (value is PatternTypeDto) { buffer.putUint8(139); writeValue(buffer, value.index); - } else if (value is CameraEventTypeDto) { + } else if (value is CameraEventTypeDto) { buffer.putUint8(140); writeValue(buffer, value.index); - } else if (value is AlternateRoutesStrategyDto) { + } else if (value is AlternateRoutesStrategyDto) { buffer.putUint8(141); writeValue(buffer, value.index); - } else if (value is RoutingStrategyDto) { + } else if (value is RoutingStrategyDto) { buffer.putUint8(142); writeValue(buffer, value.index); - } else if (value is TravelModeDto) { + } else if (value is TravelModeDto) { buffer.putUint8(143); writeValue(buffer, value.index); - } else if (value is RouteStatusDto) { + } else if (value is RouteStatusDto) { buffer.putUint8(144); writeValue(buffer, value.index); - } else if (value is TrafficDelaySeverityDto) { + } else if (value is TrafficDelaySeverityDto) { buffer.putUint8(145); writeValue(buffer, value.index); - } else if (value is AudioGuidanceTypeDto) { + } else if (value is AudioGuidanceTypeDto) { buffer.putUint8(146); writeValue(buffer, value.index); - } else if (value is SpeedAlertSeverityDto) { + } else if (value is SpeedAlertSeverityDto) { buffer.putUint8(147); writeValue(buffer, value.index); - } else if (value is RouteSegmentTrafficDataStatusDto) { + } else if (value is RouteSegmentTrafficDataStatusDto) { buffer.putUint8(148); writeValue(buffer, value.index); - } else if (value is RouteSegmentTrafficDataRoadStretchRenderingDataStyleDto) { + } else if (value + is RouteSegmentTrafficDataRoadStretchRenderingDataStyleDto) { buffer.putUint8(149); writeValue(buffer, value.index); - } else if (value is ManeuverDto) { + } else if (value is ManeuverDto) { buffer.putUint8(150); writeValue(buffer, value.index); - } else if (value is DrivingSideDto) { + } else if (value is DrivingSideDto) { buffer.putUint8(151); writeValue(buffer, value.index); - } else if (value is NavStateDto) { + } else if (value is NavStateDto) { buffer.putUint8(152); writeValue(buffer, value.index); - } else if (value is LaneShapeDto) { + } else if (value is LaneShapeDto) { buffer.putUint8(153); writeValue(buffer, value.index); - } else if (value is TaskRemovedBehaviorDto) { + } else if (value is TaskRemovedBehaviorDto) { buffer.putUint8(154); writeValue(buffer, value.index); - } else if (value is AutoMapOptionsDto) { + } else if (value is AutoMapOptionsDto) { buffer.putUint8(155); writeValue(buffer, value.encode()); - } else if (value is MapOptionsDto) { + } else if (value is MapOptionsDto) { buffer.putUint8(156); writeValue(buffer, value.encode()); - } else if (value is NavigationViewOptionsDto) { + } else if (value is NavigationViewOptionsDto) { buffer.putUint8(157); writeValue(buffer, value.encode()); - } else if (value is ViewCreationOptionsDto) { + } else if (value is ViewCreationOptionsDto) { buffer.putUint8(158); writeValue(buffer, value.encode()); - } else if (value is CameraPositionDto) { + } else if (value is CameraPositionDto) { buffer.putUint8(159); writeValue(buffer, value.encode()); - } else if (value is MarkerDto) { + } else if (value is MarkerDto) { buffer.putUint8(160); writeValue(buffer, value.encode()); - } else if (value is MarkerOptionsDto) { + } else if (value is MarkerOptionsDto) { buffer.putUint8(161); writeValue(buffer, value.encode()); - } else if (value is ImageDescriptorDto) { + } else if (value is ImageDescriptorDto) { buffer.putUint8(162); writeValue(buffer, value.encode()); - } else if (value is InfoWindowDto) { + } else if (value is InfoWindowDto) { buffer.putUint8(163); writeValue(buffer, value.encode()); - } else if (value is MarkerAnchorDto) { + } else if (value is MarkerAnchorDto) { buffer.putUint8(164); writeValue(buffer, value.encode()); - } else if (value is PointOfInterestDto) { + } else if (value is PointOfInterestDto) { buffer.putUint8(165); writeValue(buffer, value.encode()); - } else if (value is IndoorLevelDto) { + } else if (value is IndoorLevelDto) { buffer.putUint8(166); writeValue(buffer, value.encode()); - } else if (value is IndoorBuildingDto) { + } else if (value is IndoorBuildingDto) { buffer.putUint8(167); writeValue(buffer, value.encode()); - } else if (value is PolygonDto) { + } else if (value is PolygonDto) { buffer.putUint8(168); writeValue(buffer, value.encode()); - } else if (value is PolygonOptionsDto) { + } else if (value is PolygonOptionsDto) { buffer.putUint8(169); writeValue(buffer, value.encode()); - } else if (value is PolygonHoleDto) { + } else if (value is PolygonHoleDto) { buffer.putUint8(170); writeValue(buffer, value.encode()); - } else if (value is StyleSpanStrokeStyleDto) { + } else if (value is StyleSpanStrokeStyleDto) { buffer.putUint8(171); writeValue(buffer, value.encode()); - } else if (value is StyleSpanDto) { + } else if (value is StyleSpanDto) { buffer.putUint8(172); writeValue(buffer, value.encode()); - } else if (value is PolylineDto) { + } else if (value is PolylineDto) { buffer.putUint8(173); writeValue(buffer, value.encode()); - } else if (value is PatternItemDto) { + } else if (value is PatternItemDto) { buffer.putUint8(174); writeValue(buffer, value.encode()); - } else if (value is PolylineOptionsDto) { + } else if (value is PolylineOptionsDto) { buffer.putUint8(175); writeValue(buffer, value.encode()); - } else if (value is CircleDto) { + } else if (value is CircleDto) { buffer.putUint8(176); writeValue(buffer, value.encode()); - } else if (value is CircleOptionsDto) { + } else if (value is CircleOptionsDto) { buffer.putUint8(177); writeValue(buffer, value.encode()); - } else if (value is MapPaddingDto) { + } else if (value is MapPaddingDto) { buffer.putUint8(178); writeValue(buffer, value.encode()); - } else if (value is NavigationHeaderStylingOptionsDto) { + } else if (value is NavigationHeaderStylingOptionsDto) { buffer.putUint8(179); writeValue(buffer, value.encode()); - } else if (value is RouteTokenOptionsDto) { + } else if (value is RouteTokenOptionsDto) { buffer.putUint8(180); writeValue(buffer, value.encode()); - } else if (value is DestinationsDto) { + } else if (value is DestinationsDto) { buffer.putUint8(181); writeValue(buffer, value.encode()); - } else if (value is RoutingOptionsDto) { + } else if (value is RoutingOptionsDto) { buffer.putUint8(182); writeValue(buffer, value.encode()); - } else if (value is NavigationDisplayOptionsDto) { + } else if (value is NavigationDisplayOptionsDto) { buffer.putUint8(183); writeValue(buffer, value.encode()); - } else if (value is NavigationWaypointDto) { + } else if (value is NavigationWaypointDto) { buffer.putUint8(184); writeValue(buffer, value.encode()); - } else if (value is ContinueToNextDestinationResponseDto) { + } else if (value is ContinueToNextDestinationResponseDto) { buffer.putUint8(185); writeValue(buffer, value.encode()); - } else if (value is NavigationTimeAndDistanceDto) { + } else if (value is NavigationTimeAndDistanceDto) { buffer.putUint8(186); writeValue(buffer, value.encode()); - } else if (value is NavigationAudioGuidanceSettingsDto) { + } else if (value is NavigationAudioGuidanceSettingsDto) { buffer.putUint8(187); writeValue(buffer, value.encode()); - } else if (value is SimulationOptionsDto) { + } else if (value is SimulationOptionsDto) { buffer.putUint8(188); writeValue(buffer, value.encode()); - } else if (value is LatLngDto) { + } else if (value is LatLngDto) { buffer.putUint8(189); writeValue(buffer, value.encode()); - } else if (value is LatLngBoundsDto) { + } else if (value is LatLngBoundsDto) { buffer.putUint8(190); writeValue(buffer, value.encode()); - } else if (value is SpeedingUpdatedEventDto) { + } else if (value is SpeedingUpdatedEventDto) { buffer.putUint8(191); writeValue(buffer, value.encode()); - } else if (value is GpsAvailabilityChangeEventDto) { + } else if (value is GpsAvailabilityChangeEventDto) { buffer.putUint8(192); writeValue(buffer, value.encode()); - } else if (value is SpeedAlertOptionsThresholdPercentageDto) { + } else if (value is SpeedAlertOptionsThresholdPercentageDto) { buffer.putUint8(193); writeValue(buffer, value.encode()); - } else if (value is SpeedAlertOptionsDto) { + } else if (value is SpeedAlertOptionsDto) { buffer.putUint8(194); writeValue(buffer, value.encode()); - } else if (value is RouteSegmentTrafficDataRoadStretchRenderingDataDto) { + } else if (value is RouteSegmentTrafficDataRoadStretchRenderingDataDto) { buffer.putUint8(195); writeValue(buffer, value.encode()); - } else if (value is RouteSegmentTrafficDataDto) { + } else if (value is RouteSegmentTrafficDataDto) { buffer.putUint8(196); writeValue(buffer, value.encode()); - } else if (value is RouteSegmentDto) { + } else if (value is RouteSegmentDto) { buffer.putUint8(197); writeValue(buffer, value.encode()); - } else if (value is LaneDirectionDto) { + } else if (value is LaneDirectionDto) { buffer.putUint8(198); writeValue(buffer, value.encode()); - } else if (value is LaneDto) { + } else if (value is LaneDto) { buffer.putUint8(199); writeValue(buffer, value.encode()); - } else if (value is StepInfoDto) { + } else if (value is StepInfoDto) { buffer.putUint8(200); writeValue(buffer, value.encode()); - } else if (value is NavInfoDto) { + } else if (value is NavInfoDto) { buffer.putUint8(201); writeValue(buffer, value.encode()); - } else if (value is TermsAndConditionsUIParamsDto) { + } else if (value is TermsAndConditionsUIParamsDto) { buffer.putUint8(202); writeValue(buffer, value.encode()); - } else if (value is StepImageGenerationOptionsDto) { + } else if (value is StepImageGenerationOptionsDto) { buffer.putUint8(203); writeValue(buffer, value.encode()); } else { @@ -265,181 +265,192 @@ class _PigeonCodec extends StandardMessageCodec { @override Object? readValueOfType(int type, ReadBuffer buffer) { switch (type) { - case 129: + case 129: final int? value = readValue(buffer) as int?; return value == null ? null : MapViewTypeDto.values[value]; - case 130: + case 130: final int? value = readValue(buffer) as int?; - return value == null ? null : NavigationUIEnabledPreferenceDto.values[value]; - case 131: + return value == null + ? null + : NavigationUIEnabledPreferenceDto.values[value]; + case 131: final int? value = readValue(buffer) as int?; return value == null ? null : MapTypeDto.values[value]; - case 132: + case 132: final int? value = readValue(buffer) as int?; return value == null ? null : MapColorSchemeDto.values[value]; - case 133: + case 133: final int? value = readValue(buffer) as int?; return value == null ? null : NavigationForceNightModeDto.values[value]; - case 134: + case 134: final int? value = readValue(buffer) as int?; return value == null ? null : CameraPerspectiveDto.values[value]; - case 135: + case 135: final int? value = readValue(buffer) as int?; return value == null ? null : RegisteredImageTypeDto.values[value]; - case 136: + case 136: final int? value = readValue(buffer) as int?; return value == null ? null : MarkerEventTypeDto.values[value]; - case 137: + case 137: final int? value = readValue(buffer) as int?; return value == null ? null : MarkerDragEventTypeDto.values[value]; - case 138: + case 138: final int? value = readValue(buffer) as int?; return value == null ? null : StrokeJointTypeDto.values[value]; - case 139: + case 139: final int? value = readValue(buffer) as int?; return value == null ? null : PatternTypeDto.values[value]; - case 140: + case 140: final int? value = readValue(buffer) as int?; return value == null ? null : CameraEventTypeDto.values[value]; - case 141: + case 141: final int? value = readValue(buffer) as int?; return value == null ? null : AlternateRoutesStrategyDto.values[value]; - case 142: + case 142: final int? value = readValue(buffer) as int?; return value == null ? null : RoutingStrategyDto.values[value]; - case 143: + case 143: final int? value = readValue(buffer) as int?; return value == null ? null : TravelModeDto.values[value]; - case 144: + case 144: final int? value = readValue(buffer) as int?; return value == null ? null : RouteStatusDto.values[value]; - case 145: + case 145: final int? value = readValue(buffer) as int?; return value == null ? null : TrafficDelaySeverityDto.values[value]; - case 146: + case 146: final int? value = readValue(buffer) as int?; return value == null ? null : AudioGuidanceTypeDto.values[value]; - case 147: + case 147: final int? value = readValue(buffer) as int?; return value == null ? null : SpeedAlertSeverityDto.values[value]; - case 148: + case 148: final int? value = readValue(buffer) as int?; - return value == null ? null : RouteSegmentTrafficDataStatusDto.values[value]; - case 149: + return value == null + ? null + : RouteSegmentTrafficDataStatusDto.values[value]; + case 149: final int? value = readValue(buffer) as int?; - return value == null ? null : RouteSegmentTrafficDataRoadStretchRenderingDataStyleDto.values[value]; - case 150: + return value == null + ? null + : RouteSegmentTrafficDataRoadStretchRenderingDataStyleDto + .values[value]; + case 150: final int? value = readValue(buffer) as int?; return value == null ? null : ManeuverDto.values[value]; - case 151: + case 151: final int? value = readValue(buffer) as int?; return value == null ? null : DrivingSideDto.values[value]; - case 152: + case 152: final int? value = readValue(buffer) as int?; return value == null ? null : NavStateDto.values[value]; - case 153: + case 153: final int? value = readValue(buffer) as int?; return value == null ? null : LaneShapeDto.values[value]; - case 154: + case 154: final int? value = readValue(buffer) as int?; return value == null ? null : TaskRemovedBehaviorDto.values[value]; - case 155: + case 155: return AutoMapOptionsDto.decode(readValue(buffer)!); - case 156: + case 156: return MapOptionsDto.decode(readValue(buffer)!); - case 157: + case 157: return NavigationViewOptionsDto.decode(readValue(buffer)!); - case 158: + case 158: return ViewCreationOptionsDto.decode(readValue(buffer)!); - case 159: + case 159: return CameraPositionDto.decode(readValue(buffer)!); - case 160: + case 160: return MarkerDto.decode(readValue(buffer)!); - case 161: + case 161: return MarkerOptionsDto.decode(readValue(buffer)!); - case 162: + case 162: return ImageDescriptorDto.decode(readValue(buffer)!); - case 163: + case 163: return InfoWindowDto.decode(readValue(buffer)!); - case 164: + case 164: return MarkerAnchorDto.decode(readValue(buffer)!); - case 165: + case 165: return PointOfInterestDto.decode(readValue(buffer)!); - case 166: + case 166: return IndoorLevelDto.decode(readValue(buffer)!); - case 167: + case 167: return IndoorBuildingDto.decode(readValue(buffer)!); - case 168: + case 168: return PolygonDto.decode(readValue(buffer)!); - case 169: + case 169: return PolygonOptionsDto.decode(readValue(buffer)!); - case 170: + case 170: return PolygonHoleDto.decode(readValue(buffer)!); - case 171: + case 171: return StyleSpanStrokeStyleDto.decode(readValue(buffer)!); - case 172: + case 172: return StyleSpanDto.decode(readValue(buffer)!); - case 173: + case 173: return PolylineDto.decode(readValue(buffer)!); - case 174: + case 174: return PatternItemDto.decode(readValue(buffer)!); - case 175: + case 175: return PolylineOptionsDto.decode(readValue(buffer)!); - case 176: + case 176: return CircleDto.decode(readValue(buffer)!); - case 177: + case 177: return CircleOptionsDto.decode(readValue(buffer)!); - case 178: + case 178: return MapPaddingDto.decode(readValue(buffer)!); - case 179: + case 179: return NavigationHeaderStylingOptionsDto.decode(readValue(buffer)!); - case 180: + case 180: return RouteTokenOptionsDto.decode(readValue(buffer)!); - case 181: + case 181: return DestinationsDto.decode(readValue(buffer)!); - case 182: + case 182: return RoutingOptionsDto.decode(readValue(buffer)!); - case 183: + case 183: return NavigationDisplayOptionsDto.decode(readValue(buffer)!); - case 184: + case 184: return NavigationWaypointDto.decode(readValue(buffer)!); - case 185: + case 185: return ContinueToNextDestinationResponseDto.decode(readValue(buffer)!); - case 186: + case 186: return NavigationTimeAndDistanceDto.decode(readValue(buffer)!); - case 187: + case 187: return NavigationAudioGuidanceSettingsDto.decode(readValue(buffer)!); - case 188: + case 188: return SimulationOptionsDto.decode(readValue(buffer)!); - case 189: + case 189: return LatLngDto.decode(readValue(buffer)!); - case 190: + case 190: return LatLngBoundsDto.decode(readValue(buffer)!); - case 191: + case 191: return SpeedingUpdatedEventDto.decode(readValue(buffer)!); - case 192: + case 192: return GpsAvailabilityChangeEventDto.decode(readValue(buffer)!); - case 193: - return SpeedAlertOptionsThresholdPercentageDto.decode(readValue(buffer)!); - case 194: + case 193: + return SpeedAlertOptionsThresholdPercentageDto.decode( + readValue(buffer)!, + ); + case 194: return SpeedAlertOptionsDto.decode(readValue(buffer)!); - case 195: - return RouteSegmentTrafficDataRoadStretchRenderingDataDto.decode(readValue(buffer)!); - case 196: + case 195: + return RouteSegmentTrafficDataRoadStretchRenderingDataDto.decode( + readValue(buffer)!, + ); + case 196: return RouteSegmentTrafficDataDto.decode(readValue(buffer)!); - case 197: + case 197: return RouteSegmentDto.decode(readValue(buffer)!); - case 198: + case 198: return LaneDirectionDto.decode(readValue(buffer)!); - case 199: + case 199: return LaneDto.decode(readValue(buffer)!); - case 200: + case 200: return StepInfoDto.decode(readValue(buffer)!); - case 201: + case 201: return NavInfoDto.decode(readValue(buffer)!); - case 202: + case 202: return TermsAndConditionsUIParamsDto.decode(readValue(buffer)!); - case 203: + case 203: return StepImageGenerationOptionsDto.decode(readValue(buffer)!); default: return super.readValueOfType(type, buffer); @@ -448,7 +459,8 @@ class _PigeonCodec extends StandardMessageCodec { } abstract class TestMapViewApi { - static TestDefaultBinaryMessengerBinding? get _testBinaryMessengerBinding => TestDefaultBinaryMessengerBinding.instance; + static TestDefaultBinaryMessengerBinding? get _testBinaryMessengerBinding => + TestDefaultBinaryMessengerBinding.instance; static const MessageCodec pigeonChannelCodec = _PigeonCodec(); Future awaitMapReady(int viewId); @@ -473,9 +485,14 @@ abstract class TestMapViewApi { void setNavigationHeaderEnabled(int viewId, bool enabled); - NavigationHeaderStylingOptionsDto getNavigationHeaderStylingOptions(int viewId); + NavigationHeaderStylingOptionsDto getNavigationHeaderStylingOptions( + int viewId, + ); - void setNavigationHeaderStylingOptions(int viewId, NavigationHeaderStylingOptionsDto stylingOptions); + void setNavigationHeaderStylingOptions( + int viewId, + NavigationHeaderStylingOptionsDto stylingOptions, + ); bool isNavigationFooterEnabled(int viewId); @@ -580,19 +597,52 @@ abstract class TestMapViewApi { LatLngBoundsDto getVisibleRegion(int viewId); - void followMyLocation(int viewId, CameraPerspectiveDto perspective, double? zoomLevel); - - Future animateCameraToCameraPosition(int viewId, CameraPositionDto cameraPosition, int? duration); - - Future animateCameraToLatLng(int viewId, LatLngDto point, int? duration); - - Future animateCameraToLatLngBounds(int viewId, LatLngBoundsDto bounds, double padding, int? duration); - - Future animateCameraToLatLngZoom(int viewId, LatLngDto point, double zoom, int? duration); - - Future animateCameraByScroll(int viewId, double scrollByDx, double scrollByDy, int? duration); - - Future animateCameraByZoom(int viewId, double zoomBy, double? focusDx, double? focusDy, int? duration); + void followMyLocation( + int viewId, + CameraPerspectiveDto perspective, + double? zoomLevel, + ); + + Future animateCameraToCameraPosition( + int viewId, + CameraPositionDto cameraPosition, + int? duration, + ); + + Future animateCameraToLatLng( + int viewId, + LatLngDto point, + int? duration, + ); + + Future animateCameraToLatLngBounds( + int viewId, + LatLngBoundsDto bounds, + double padding, + int? duration, + ); + + Future animateCameraToLatLngZoom( + int viewId, + LatLngDto point, + double zoom, + int? duration, + ); + + Future animateCameraByScroll( + int viewId, + double scrollByDx, + double scrollByDy, + int? duration, + ); + + Future animateCameraByZoom( + int viewId, + double zoomBy, + double? focusDx, + double? focusDy, + int? duration, + ); Future animateCameraToZoom(int viewId, double zoom, int? duration); @@ -600,13 +650,22 @@ abstract class TestMapViewApi { void moveCameraToLatLng(int viewId, LatLngDto point); - void moveCameraToLatLngBounds(int viewId, LatLngBoundsDto bounds, double padding); + void moveCameraToLatLngBounds( + int viewId, + LatLngBoundsDto bounds, + double padding, + ); void moveCameraToLatLngZoom(int viewId, LatLngDto point, double zoom); void moveCameraByScroll(int viewId, double scrollByDx, double scrollByDy); - void moveCameraByZoom(int viewId, double zoomBy, double? focusDx, double? focusDy); + void moveCameraByZoom( + int viewId, + double zoomBy, + double? focusDx, + double? focusDy, + ); void moveCameraToZoom(int viewId, double zoom); @@ -676,6431 +735,10339 @@ abstract class TestMapViewApi { NavigationForceNightModeDto getForceNightMode(int viewId); - void setForceNightMode(int viewId, NavigationForceNightModeDto forceNightMode); - - static void setUp(TestMapViewApi? api, {BinaryMessenger? binaryMessenger, String messageChannelSuffix = '',}) { - messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.awaitMapReady$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.awaitMapReady was null.'); + void setForceNightMode( + int viewId, + NavigationForceNightModeDto forceNightMode, + ); + + static void setUp( + TestMapViewApi? api, { + BinaryMessenger? binaryMessenger, + String messageChannelSuffix = '', + }) { + messageChannelSuffix = messageChannelSuffix.isNotEmpty + ? '.$messageChannelSuffix' + : ''; + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.awaitMapReady$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.awaitMapReady was null.', + ); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.awaitMapReady was null, expected non-null int.', + ); + try { + await api.awaitMapReady(arg_viewId!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMyLocationEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMyLocationEnabled was null.', + ); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMyLocationEnabled was null, expected non-null int.', + ); + try { + final bool output = api.isMyLocationEnabled(arg_viewId!); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMyLocationEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< + Object? + >(pigeonVar_channel, (Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMyLocationEnabled was null.', + ); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.awaitMapReady was null, expected non-null int.'); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMyLocationEnabled was null, expected non-null int.', + ); + final bool? arg_enabled = (args[1] as bool?); + assert( + arg_enabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMyLocationEnabled was null, expected non-null bool.', + ); try { - await api.awaitMapReady(arg_viewId!); + api.setMyLocationEnabled(arg_viewId!, arg_enabled!); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMyLocationEnabled$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMyLocationEnabled was null.'); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMyLocation$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMyLocation was null.', + ); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMyLocation was null, expected non-null int.', + ); + try { + final LatLngDto? output = api.getMyLocation(arg_viewId!); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMapType$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMapType was null.', + ); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMapType was null, expected non-null int.', + ); + try { + final MapTypeDto output = api.getMapType(arg_viewId!); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapType$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< + Object? + >(pigeonVar_channel, (Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapType was null.', + ); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMyLocationEnabled was null, expected non-null int.'); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapType was null, expected non-null int.', + ); + final MapTypeDto? arg_mapType = (args[1] as MapTypeDto?); + assert( + arg_mapType != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapType was null, expected non-null MapTypeDto.', + ); try { - final bool output = api.isMyLocationEnabled(arg_viewId!); - return [output]; + api.setMapType(arg_viewId!, arg_mapType!); + return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } } { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMyLocationEnabled$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapStyle$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMyLocationEnabled was null.'); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< + Object? + >(pigeonVar_channel, (Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapStyle was null.', + ); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMyLocationEnabled was null, expected non-null int.'); - final bool? arg_enabled = (args[1] as bool?); - assert(arg_enabled != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMyLocationEnabled was null, expected non-null bool.'); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapStyle was null, expected non-null int.', + ); + final String? arg_styleJson = (args[1] as String?); + assert( + arg_styleJson != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapStyle was null, expected non-null String.', + ); try { - api.setMyLocationEnabled(arg_viewId!, arg_enabled!); + api.setMapStyle(arg_viewId!, arg_styleJson!); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMyLocation$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMyLocation was null.'); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationTripProgressBarEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationTripProgressBarEnabled was null.', + ); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationTripProgressBarEnabled was null, expected non-null int.', + ); + try { + final bool output = api.isNavigationTripProgressBarEnabled( + arg_viewId!, + ); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationTripProgressBarEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< + Object? + >(pigeonVar_channel, (Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationTripProgressBarEnabled was null.', + ); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMyLocation was null, expected non-null int.'); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationTripProgressBarEnabled was null, expected non-null int.', + ); + final bool? arg_enabled = (args[1] as bool?); + assert( + arg_enabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationTripProgressBarEnabled was null, expected non-null bool.', + ); try { - final LatLngDto? output = api.getMyLocation(arg_viewId!); - return [output]; + api.setNavigationTripProgressBarEnabled(arg_viewId!, arg_enabled!); + return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMapType$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMapType was null.'); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationHeaderEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationHeaderEnabled was null.', + ); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationHeaderEnabled was null, expected non-null int.', + ); + try { + final bool output = api.isNavigationHeaderEnabled(arg_viewId!); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationHeaderEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< + Object? + >(pigeonVar_channel, (Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationHeaderEnabled was null.', + ); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMapType was null, expected non-null int.'); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationHeaderEnabled was null, expected non-null int.', + ); + final bool? arg_enabled = (args[1] as bool?); + assert( + arg_enabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationHeaderEnabled was null, expected non-null bool.', + ); try { - final MapTypeDto output = api.getMapType(arg_viewId!); - return [output]; + api.setNavigationHeaderEnabled(arg_viewId!, arg_enabled!); + return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapType$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapType was null.'); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getNavigationHeaderStylingOptions$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getNavigationHeaderStylingOptions was null.', + ); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getNavigationHeaderStylingOptions was null, expected non-null int.', + ); + try { + final NavigationHeaderStylingOptionsDto output = api + .getNavigationHeaderStylingOptions(arg_viewId!); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationHeaderStylingOptions$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< + Object? + >(pigeonVar_channel, (Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationHeaderStylingOptions was null.', + ); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapType was null, expected non-null int.'); - final MapTypeDto? arg_mapType = (args[1] as MapTypeDto?); - assert(arg_mapType != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapType was null, expected non-null MapTypeDto.'); - try { - api.setMapType(arg_viewId!, arg_mapType!); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationHeaderStylingOptions was null, expected non-null int.', + ); + final NavigationHeaderStylingOptionsDto? arg_stylingOptions = + (args[1] as NavigationHeaderStylingOptionsDto?); + assert( + arg_stylingOptions != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationHeaderStylingOptions was null, expected non-null NavigationHeaderStylingOptionsDto.', + ); + try { + api.setNavigationHeaderStylingOptions( + arg_viewId!, + arg_stylingOptions!, + ); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapStyle$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapStyle was null.'); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationFooterEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationFooterEnabled was null.', + ); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationFooterEnabled was null, expected non-null int.', + ); + try { + final bool output = api.isNavigationFooterEnabled(arg_viewId!); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationFooterEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< + Object? + >(pigeonVar_channel, (Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationFooterEnabled was null.', + ); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapStyle was null, expected non-null int.'); - final String? arg_styleJson = (args[1] as String?); - assert(arg_styleJson != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapStyle was null, expected non-null String.'); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationFooterEnabled was null, expected non-null int.', + ); + final bool? arg_enabled = (args[1] as bool?); + assert( + arg_enabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationFooterEnabled was null, expected non-null bool.', + ); try { - api.setMapStyle(arg_viewId!, arg_styleJson!); + api.setNavigationFooterEnabled(arg_viewId!, arg_enabled!); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationTripProgressBarEnabled$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationTripProgressBarEnabled was null.'); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isRecenterButtonEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isRecenterButtonEnabled was null.', + ); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isRecenterButtonEnabled was null, expected non-null int.', + ); + try { + final bool output = api.isRecenterButtonEnabled(arg_viewId!); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setRecenterButtonEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< + Object? + >(pigeonVar_channel, (Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setRecenterButtonEnabled was null.', + ); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationTripProgressBarEnabled was null, expected non-null int.'); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setRecenterButtonEnabled was null, expected non-null int.', + ); + final bool? arg_enabled = (args[1] as bool?); + assert( + arg_enabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setRecenterButtonEnabled was null, expected non-null bool.', + ); try { - final bool output = api.isNavigationTripProgressBarEnabled(arg_viewId!); - return [output]; + api.setRecenterButtonEnabled(arg_viewId!, arg_enabled!); + return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationTripProgressBarEnabled$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationTripProgressBarEnabled was null.'); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isSpeedLimitIconEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isSpeedLimitIconEnabled was null.', + ); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isSpeedLimitIconEnabled was null, expected non-null int.', + ); + try { + final bool output = api.isSpeedLimitIconEnabled(arg_viewId!); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setSpeedLimitIconEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< + Object? + >(pigeonVar_channel, (Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setSpeedLimitIconEnabled was null.', + ); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationTripProgressBarEnabled was null, expected non-null int.'); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setSpeedLimitIconEnabled was null, expected non-null int.', + ); final bool? arg_enabled = (args[1] as bool?); - assert(arg_enabled != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationTripProgressBarEnabled was null, expected non-null bool.'); + assert( + arg_enabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setSpeedLimitIconEnabled was null, expected non-null bool.', + ); try { - api.setNavigationTripProgressBarEnabled(arg_viewId!, arg_enabled!); + api.setSpeedLimitIconEnabled(arg_viewId!, arg_enabled!); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationHeaderEnabled$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationHeaderEnabled was null.'); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isSpeedometerEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isSpeedometerEnabled was null.', + ); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isSpeedometerEnabled was null, expected non-null int.', + ); + try { + final bool output = api.isSpeedometerEnabled(arg_viewId!); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setSpeedometerEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< + Object? + >(pigeonVar_channel, (Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setSpeedometerEnabled was null.', + ); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationHeaderEnabled was null, expected non-null int.'); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setSpeedometerEnabled was null, expected non-null int.', + ); + final bool? arg_enabled = (args[1] as bool?); + assert( + arg_enabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setSpeedometerEnabled was null, expected non-null bool.', + ); try { - final bool output = api.isNavigationHeaderEnabled(arg_viewId!); - return [output]; + api.setSpeedometerEnabled(arg_viewId!, arg_enabled!); + return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationHeaderEnabled$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationHeaderEnabled was null.'); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationUIEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationUIEnabled was null.', + ); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationUIEnabled was null, expected non-null int.', + ); + try { + final bool output = api.isNavigationUIEnabled(arg_viewId!); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationUIEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< + Object? + >(pigeonVar_channel, (Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationUIEnabled was null.', + ); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationHeaderEnabled was null, expected non-null int.'); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationUIEnabled was null, expected non-null int.', + ); final bool? arg_enabled = (args[1] as bool?); - assert(arg_enabled != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationHeaderEnabled was null, expected non-null bool.'); + assert( + arg_enabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationUIEnabled was null, expected non-null bool.', + ); try { - api.setNavigationHeaderEnabled(arg_viewId!, arg_enabled!); + api.setNavigationUIEnabled(arg_viewId!, arg_enabled!); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getNavigationHeaderStylingOptions$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getNavigationHeaderStylingOptions was null.'); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMyLocationButtonEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMyLocationButtonEnabled was null.', + ); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMyLocationButtonEnabled was null, expected non-null int.', + ); + try { + final bool output = api.isMyLocationButtonEnabled(arg_viewId!); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMyLocationButtonEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< + Object? + >(pigeonVar_channel, (Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMyLocationButtonEnabled was null.', + ); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getNavigationHeaderStylingOptions was null, expected non-null int.'); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMyLocationButtonEnabled was null, expected non-null int.', + ); + final bool? arg_enabled = (args[1] as bool?); + assert( + arg_enabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMyLocationButtonEnabled was null, expected non-null bool.', + ); try { - final NavigationHeaderStylingOptionsDto output = api.getNavigationHeaderStylingOptions(arg_viewId!); - return [output]; + api.setMyLocationButtonEnabled(arg_viewId!, arg_enabled!); + return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationHeaderStylingOptions$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationHeaderStylingOptions was null.'); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isConsumeMyLocationButtonClickEventsEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isConsumeMyLocationButtonClickEventsEnabled was null.', + ); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isConsumeMyLocationButtonClickEventsEnabled was null, expected non-null int.', + ); + try { + final bool output = api + .isConsumeMyLocationButtonClickEventsEnabled(arg_viewId!); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setConsumeMyLocationButtonClickEventsEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< + Object? + >(pigeonVar_channel, (Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setConsumeMyLocationButtonClickEventsEnabled was null.', + ); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationHeaderStylingOptions was null, expected non-null int.'); - final NavigationHeaderStylingOptionsDto? arg_stylingOptions = (args[1] as NavigationHeaderStylingOptionsDto?); - assert(arg_stylingOptions != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationHeaderStylingOptions was null, expected non-null NavigationHeaderStylingOptionsDto.'); - try { - api.setNavigationHeaderStylingOptions(arg_viewId!, arg_stylingOptions!); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setConsumeMyLocationButtonClickEventsEnabled was null, expected non-null int.', + ); + final bool? arg_enabled = (args[1] as bool?); + assert( + arg_enabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setConsumeMyLocationButtonClickEventsEnabled was null, expected non-null bool.', + ); + try { + api.setConsumeMyLocationButtonClickEventsEnabled( + arg_viewId!, + arg_enabled!, + ); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationFooterEnabled$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationFooterEnabled was null.'); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isZoomGesturesEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isZoomGesturesEnabled was null.', + ); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isZoomGesturesEnabled was null, expected non-null int.', + ); + try { + final bool output = api.isZoomGesturesEnabled(arg_viewId!); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setZoomGesturesEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< + Object? + >(pigeonVar_channel, (Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setZoomGesturesEnabled was null.', + ); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationFooterEnabled was null, expected non-null int.'); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setZoomGesturesEnabled was null, expected non-null int.', + ); + final bool? arg_enabled = (args[1] as bool?); + assert( + arg_enabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setZoomGesturesEnabled was null, expected non-null bool.', + ); try { - final bool output = api.isNavigationFooterEnabled(arg_viewId!); - return [output]; + api.setZoomGesturesEnabled(arg_viewId!, arg_enabled!); + return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationFooterEnabled$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationFooterEnabled was null.'); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isZoomControlsEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isZoomControlsEnabled was null.', + ); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isZoomControlsEnabled was null, expected non-null int.', + ); + try { + final bool output = api.isZoomControlsEnabled(arg_viewId!); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setZoomControlsEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< + Object? + >(pigeonVar_channel, (Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setZoomControlsEnabled was null.', + ); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationFooterEnabled was null, expected non-null int.'); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setZoomControlsEnabled was null, expected non-null int.', + ); final bool? arg_enabled = (args[1] as bool?); - assert(arg_enabled != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationFooterEnabled was null, expected non-null bool.'); + assert( + arg_enabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setZoomControlsEnabled was null, expected non-null bool.', + ); try { - api.setNavigationFooterEnabled(arg_viewId!, arg_enabled!); + api.setZoomControlsEnabled(arg_viewId!, arg_enabled!); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isRecenterButtonEnabled$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isRecenterButtonEnabled was null.'); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isCompassEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isCompassEnabled was null.', + ); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isCompassEnabled was null, expected non-null int.', + ); + try { + final bool output = api.isCompassEnabled(arg_viewId!); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setCompassEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< + Object? + >(pigeonVar_channel, (Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setCompassEnabled was null.', + ); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isRecenterButtonEnabled was null, expected non-null int.'); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setCompassEnabled was null, expected non-null int.', + ); + final bool? arg_enabled = (args[1] as bool?); + assert( + arg_enabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setCompassEnabled was null, expected non-null bool.', + ); try { - final bool output = api.isRecenterButtonEnabled(arg_viewId!); - return [output]; + api.setCompassEnabled(arg_viewId!, arg_enabled!); + return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setRecenterButtonEnabled$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setRecenterButtonEnabled was null.'); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isRotateGesturesEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isRotateGesturesEnabled was null.', + ); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isRotateGesturesEnabled was null, expected non-null int.', + ); + try { + final bool output = api.isRotateGesturesEnabled(arg_viewId!); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setRotateGesturesEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< + Object? + >(pigeonVar_channel, (Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setRotateGesturesEnabled was null.', + ); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setRecenterButtonEnabled was null, expected non-null int.'); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setRotateGesturesEnabled was null, expected non-null int.', + ); final bool? arg_enabled = (args[1] as bool?); - assert(arg_enabled != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setRecenterButtonEnabled was null, expected non-null bool.'); + assert( + arg_enabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setRotateGesturesEnabled was null, expected non-null bool.', + ); try { - api.setRecenterButtonEnabled(arg_viewId!, arg_enabled!); + api.setRotateGesturesEnabled(arg_viewId!, arg_enabled!); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isSpeedLimitIconEnabled$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isSpeedLimitIconEnabled was null.'); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isScrollGesturesEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isScrollGesturesEnabled was null.', + ); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isScrollGesturesEnabled was null, expected non-null int.', + ); + try { + final bool output = api.isScrollGesturesEnabled(arg_viewId!); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setScrollGesturesEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< + Object? + >(pigeonVar_channel, (Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setScrollGesturesEnabled was null.', + ); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isSpeedLimitIconEnabled was null, expected non-null int.'); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setScrollGesturesEnabled was null, expected non-null int.', + ); + final bool? arg_enabled = (args[1] as bool?); + assert( + arg_enabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setScrollGesturesEnabled was null, expected non-null bool.', + ); try { - final bool output = api.isSpeedLimitIconEnabled(arg_viewId!); - return [output]; + api.setScrollGesturesEnabled(arg_viewId!, arg_enabled!); + return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setSpeedLimitIconEnabled$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setSpeedLimitIconEnabled was null.'); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isScrollGesturesEnabledDuringRotateOrZoom$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isScrollGesturesEnabledDuringRotateOrZoom was null.', + ); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isScrollGesturesEnabledDuringRotateOrZoom was null, expected non-null int.', + ); + try { + final bool output = api + .isScrollGesturesEnabledDuringRotateOrZoom(arg_viewId!); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setScrollGesturesDuringRotateOrZoomEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< + Object? + >(pigeonVar_channel, (Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setScrollGesturesDuringRotateOrZoomEnabled was null.', + ); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setSpeedLimitIconEnabled was null, expected non-null int.'); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setScrollGesturesDuringRotateOrZoomEnabled was null, expected non-null int.', + ); final bool? arg_enabled = (args[1] as bool?); - assert(arg_enabled != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setSpeedLimitIconEnabled was null, expected non-null bool.'); - try { - api.setSpeedLimitIconEnabled(arg_viewId!, arg_enabled!); + assert( + arg_enabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setScrollGesturesDuringRotateOrZoomEnabled was null, expected non-null bool.', + ); + try { + api.setScrollGesturesDuringRotateOrZoomEnabled( + arg_viewId!, + arg_enabled!, + ); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isSpeedometerEnabled$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isSpeedometerEnabled was null.'); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTiltGesturesEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTiltGesturesEnabled was null.', + ); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTiltGesturesEnabled was null, expected non-null int.', + ); + try { + final bool output = api.isTiltGesturesEnabled(arg_viewId!); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTiltGesturesEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< + Object? + >(pigeonVar_channel, (Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTiltGesturesEnabled was null.', + ); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isSpeedometerEnabled was null, expected non-null int.'); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTiltGesturesEnabled was null, expected non-null int.', + ); + final bool? arg_enabled = (args[1] as bool?); + assert( + arg_enabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTiltGesturesEnabled was null, expected non-null bool.', + ); try { - final bool output = api.isSpeedometerEnabled(arg_viewId!); - return [output]; + api.setTiltGesturesEnabled(arg_viewId!, arg_enabled!); + return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setSpeedometerEnabled$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setSpeedometerEnabled was null.'); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMapToolbarEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMapToolbarEnabled was null.', + ); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMapToolbarEnabled was null, expected non-null int.', + ); + try { + final bool output = api.isMapToolbarEnabled(arg_viewId!); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapToolbarEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< + Object? + >(pigeonVar_channel, (Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapToolbarEnabled was null.', + ); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setSpeedometerEnabled was null, expected non-null int.'); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapToolbarEnabled was null, expected non-null int.', + ); final bool? arg_enabled = (args[1] as bool?); - assert(arg_enabled != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setSpeedometerEnabled was null, expected non-null bool.'); + assert( + arg_enabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapToolbarEnabled was null, expected non-null bool.', + ); try { - api.setSpeedometerEnabled(arg_viewId!, arg_enabled!); + api.setMapToolbarEnabled(arg_viewId!, arg_enabled!); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationUIEnabled$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationUIEnabled was null.'); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficEnabled was null.', + ); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficEnabled was null, expected non-null int.', + ); + try { + final bool output = api.isTrafficEnabled(arg_viewId!); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< + Object? + >(pigeonVar_channel, (Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficEnabled was null.', + ); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationUIEnabled was null, expected non-null int.'); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficEnabled was null, expected non-null int.', + ); + final bool? arg_enabled = (args[1] as bool?); + assert( + arg_enabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficEnabled was null, expected non-null bool.', + ); try { - final bool output = api.isNavigationUIEnabled(arg_viewId!); - return [output]; + api.setTrafficEnabled(arg_viewId!, arg_enabled!); + return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationUIEnabled$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationUIEnabled was null.'); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficIncidentCardsEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficIncidentCardsEnabled was null.', + ); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficIncidentCardsEnabled was null, expected non-null int.', + ); + try { + final bool output = api.isTrafficIncidentCardsEnabled( + arg_viewId!, + ); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficIncidentCardsEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< + Object? + >(pigeonVar_channel, (Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficIncidentCardsEnabled was null.', + ); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationUIEnabled was null, expected non-null int.'); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficIncidentCardsEnabled was null, expected non-null int.', + ); final bool? arg_enabled = (args[1] as bool?); - assert(arg_enabled != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationUIEnabled was null, expected non-null bool.'); + assert( + arg_enabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficIncidentCardsEnabled was null, expected non-null bool.', + ); try { - api.setNavigationUIEnabled(arg_viewId!, arg_enabled!); + api.setTrafficIncidentCardsEnabled(arg_viewId!, arg_enabled!); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMyLocationButtonEnabled$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMyLocationButtonEnabled was null.'); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficPromptsEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficPromptsEnabled was null.', + ); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficPromptsEnabled was null, expected non-null int.', + ); + try { + final bool output = api.isTrafficPromptsEnabled(arg_viewId!); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficPromptsEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< + Object? + >(pigeonVar_channel, (Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficPromptsEnabled was null.', + ); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMyLocationButtonEnabled was null, expected non-null int.'); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficPromptsEnabled was null, expected non-null int.', + ); + final bool? arg_enabled = (args[1] as bool?); + assert( + arg_enabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficPromptsEnabled was null, expected non-null bool.', + ); try { - final bool output = api.isMyLocationButtonEnabled(arg_viewId!); - return [output]; + api.setTrafficPromptsEnabled(arg_viewId!, arg_enabled!); + return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMyLocationButtonEnabled$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMyLocationButtonEnabled was null.'); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isReportIncidentButtonEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isReportIncidentButtonEnabled was null.', + ); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isReportIncidentButtonEnabled was null, expected non-null int.', + ); + try { + final bool output = api.isReportIncidentButtonEnabled( + arg_viewId!, + ); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setReportIncidentButtonEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< + Object? + >(pigeonVar_channel, (Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setReportIncidentButtonEnabled was null.', + ); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMyLocationButtonEnabled was null, expected non-null int.'); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setReportIncidentButtonEnabled was null, expected non-null int.', + ); final bool? arg_enabled = (args[1] as bool?); - assert(arg_enabled != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMyLocationButtonEnabled was null, expected non-null bool.'); + assert( + arg_enabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setReportIncidentButtonEnabled was null, expected non-null bool.', + ); try { - api.setMyLocationButtonEnabled(arg_viewId!, arg_enabled!); + api.setReportIncidentButtonEnabled(arg_viewId!, arg_enabled!); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isConsumeMyLocationButtonClickEventsEnabled$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isConsumeMyLocationButtonClickEventsEnabled was null.'); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isConsumeMyLocationButtonClickEventsEnabled was null, expected non-null int.'); - try { - final bool output = api.isConsumeMyLocationButtonClickEventsEnabled(arg_viewId!); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setConsumeMyLocationButtonClickEventsEnabled$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setConsumeMyLocationButtonClickEventsEnabled was null.'); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isIncidentReportingAvailable$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isIncidentReportingAvailable was null.', + ); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isIncidentReportingAvailable was null, expected non-null int.', + ); + try { + final bool output = api.isIncidentReportingAvailable( + arg_viewId!, + ); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.showReportIncidentsPanel$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.showReportIncidentsPanel was null.', + ); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.showReportIncidentsPanel was null, expected non-null int.', + ); + try { + api.showReportIncidentsPanel(arg_viewId!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isBuildingsEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isBuildingsEnabled was null.', + ); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isBuildingsEnabled was null, expected non-null int.', + ); + try { + final bool output = api.isBuildingsEnabled(arg_viewId!); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setBuildingsEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< + Object? + >(pigeonVar_channel, (Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setBuildingsEnabled was null.', + ); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setConsumeMyLocationButtonClickEventsEnabled was null, expected non-null int.'); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setBuildingsEnabled was null, expected non-null int.', + ); final bool? arg_enabled = (args[1] as bool?); - assert(arg_enabled != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setConsumeMyLocationButtonClickEventsEnabled was null, expected non-null bool.'); + assert( + arg_enabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setBuildingsEnabled was null, expected non-null bool.', + ); try { - api.setConsumeMyLocationButtonClickEventsEnabled(arg_viewId!, arg_enabled!); + api.setBuildingsEnabled(arg_viewId!, arg_enabled!); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isZoomGesturesEnabled$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isZoomGesturesEnabled was null.'); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isIndoorEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isIndoorEnabled was null.', + ); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isIndoorEnabled was null, expected non-null int.', + ); + try { + final bool output = api.isIndoorEnabled(arg_viewId!); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setIndoorEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< + Object? + >(pigeonVar_channel, (Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setIndoorEnabled was null.', + ); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isZoomGesturesEnabled was null, expected non-null int.'); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setIndoorEnabled was null, expected non-null int.', + ); + final bool? arg_enabled = (args[1] as bool?); + assert( + arg_enabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setIndoorEnabled was null, expected non-null bool.', + ); try { - final bool output = api.isZoomGesturesEnabled(arg_viewId!); - return [output]; + api.setIndoorEnabled(arg_viewId!, arg_enabled!); + return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setZoomGesturesEnabled$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setZoomGesturesEnabled was null.'); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isIndoorLevelPickerEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isIndoorLevelPickerEnabled was null.', + ); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isIndoorLevelPickerEnabled was null, expected non-null int.', + ); + try { + final bool output = api.isIndoorLevelPickerEnabled(arg_viewId!); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setIndoorLevelPickerEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< + Object? + >(pigeonVar_channel, (Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setIndoorLevelPickerEnabled was null.', + ); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setZoomGesturesEnabled was null, expected non-null int.'); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setIndoorLevelPickerEnabled was null, expected non-null int.', + ); final bool? arg_enabled = (args[1] as bool?); - assert(arg_enabled != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setZoomGesturesEnabled was null, expected non-null bool.'); + assert( + arg_enabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setIndoorLevelPickerEnabled was null, expected non-null bool.', + ); try { - api.setZoomGesturesEnabled(arg_viewId!, arg_enabled!); + api.setIndoorLevelPickerEnabled(arg_viewId!, arg_enabled!); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isZoomControlsEnabled$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isZoomControlsEnabled was null.'); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getFocusedIndoorBuilding$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getFocusedIndoorBuilding was null.', + ); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getFocusedIndoorBuilding was null, expected non-null int.', + ); + try { + final IndoorBuildingDto? output = api.getFocusedIndoorBuilding( + arg_viewId!, + ); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.activateIndoorLevel$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< + Object? + >(pigeonVar_channel, (Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.activateIndoorLevel was null.', + ); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isZoomControlsEnabled was null, expected non-null int.'); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.activateIndoorLevel was null, expected non-null int.', + ); + final int? arg_levelIndex = (args[1] as int?); + assert( + arg_levelIndex != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.activateIndoorLevel was null, expected non-null int.', + ); try { - final bool output = api.isZoomControlsEnabled(arg_viewId!); - return [output]; + api.activateIndoorLevel(arg_viewId!, arg_levelIndex!); + return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setZoomControlsEnabled$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setZoomControlsEnabled was null.'); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getCameraPosition$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getCameraPosition was null.', + ); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getCameraPosition was null, expected non-null int.', + ); + try { + final CameraPositionDto output = api.getCameraPosition( + arg_viewId!, + ); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getVisibleRegion$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getVisibleRegion was null.', + ); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getVisibleRegion was null, expected non-null int.', + ); + try { + final LatLngBoundsDto output = api.getVisibleRegion( + arg_viewId!, + ); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.followMyLocation$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< + Object? + >(pigeonVar_channel, (Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.followMyLocation was null.', + ); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setZoomControlsEnabled was null, expected non-null int.'); - final bool? arg_enabled = (args[1] as bool?); - assert(arg_enabled != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setZoomControlsEnabled was null, expected non-null bool.'); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.followMyLocation was null, expected non-null int.', + ); + final CameraPerspectiveDto? arg_perspective = + (args[1] as CameraPerspectiveDto?); + assert( + arg_perspective != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.followMyLocation was null, expected non-null CameraPerspectiveDto.', + ); + final double? arg_zoomLevel = (args[2] as double?); try { - api.setZoomControlsEnabled(arg_viewId!, arg_enabled!); + api.followMyLocation(arg_viewId!, arg_perspective!, arg_zoomLevel); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } } { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isCompassEnabled$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToCameraPosition$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isCompassEnabled was null.'); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< + Object? + >(pigeonVar_channel, (Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToCameraPosition was null.', + ); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isCompassEnabled was null, expected non-null int.'); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToCameraPosition was null, expected non-null int.', + ); + final CameraPositionDto? arg_cameraPosition = + (args[1] as CameraPositionDto?); + assert( + arg_cameraPosition != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToCameraPosition was null, expected non-null CameraPositionDto.', + ); + final int? arg_duration = (args[2] as int?); try { - final bool output = api.isCompassEnabled(arg_viewId!); + final bool output = await api.animateCameraToCameraPosition( + arg_viewId!, + arg_cameraPosition!, + arg_duration, + ); return [output]; } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } } { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setCompassEnabled$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLng$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setCompassEnabled was null.'); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< + Object? + >(pigeonVar_channel, (Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLng was null.', + ); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setCompassEnabled was null, expected non-null int.'); - final bool? arg_enabled = (args[1] as bool?); - assert(arg_enabled != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setCompassEnabled was null, expected non-null bool.'); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLng was null, expected non-null int.', + ); + final LatLngDto? arg_point = (args[1] as LatLngDto?); + assert( + arg_point != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLng was null, expected non-null LatLngDto.', + ); + final int? arg_duration = (args[2] as int?); try { - api.setCompassEnabled(arg_viewId!, arg_enabled!); - return wrapResponse(empty: true); + final bool output = await api.animateCameraToLatLng( + arg_viewId!, + arg_point!, + arg_duration, + ); + return [output]; } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } } { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isRotateGesturesEnabled$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLngBounds$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isRotateGesturesEnabled was null.'); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< + Object? + >(pigeonVar_channel, (Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLngBounds was null.', + ); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isRotateGesturesEnabled was null, expected non-null int.'); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLngBounds was null, expected non-null int.', + ); + final LatLngBoundsDto? arg_bounds = (args[1] as LatLngBoundsDto?); + assert( + arg_bounds != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLngBounds was null, expected non-null LatLngBoundsDto.', + ); + final double? arg_padding = (args[2] as double?); + assert( + arg_padding != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLngBounds was null, expected non-null double.', + ); + final int? arg_duration = (args[3] as int?); try { - final bool output = api.isRotateGesturesEnabled(arg_viewId!); + final bool output = await api.animateCameraToLatLngBounds( + arg_viewId!, + arg_bounds!, + arg_padding!, + arg_duration, + ); return [output]; } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } } { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setRotateGesturesEnabled$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLngZoom$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setRotateGesturesEnabled was null.'); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< + Object? + >(pigeonVar_channel, (Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLngZoom was null.', + ); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setRotateGesturesEnabled was null, expected non-null int.'); - final bool? arg_enabled = (args[1] as bool?); - assert(arg_enabled != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setRotateGesturesEnabled was null, expected non-null bool.'); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLngZoom was null, expected non-null int.', + ); + final LatLngDto? arg_point = (args[1] as LatLngDto?); + assert( + arg_point != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLngZoom was null, expected non-null LatLngDto.', + ); + final double? arg_zoom = (args[2] as double?); + assert( + arg_zoom != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLngZoom was null, expected non-null double.', + ); + final int? arg_duration = (args[3] as int?); try { - api.setRotateGesturesEnabled(arg_viewId!, arg_enabled!); - return wrapResponse(empty: true); + final bool output = await api.animateCameraToLatLngZoom( + arg_viewId!, + arg_point!, + arg_zoom!, + arg_duration, + ); + return [output]; } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } } { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isScrollGesturesEnabled$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraByScroll$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isScrollGesturesEnabled was null.'); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< + Object? + >(pigeonVar_channel, (Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraByScroll was null.', + ); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isScrollGesturesEnabled was null, expected non-null int.'); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraByScroll was null, expected non-null int.', + ); + final double? arg_scrollByDx = (args[1] as double?); + assert( + arg_scrollByDx != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraByScroll was null, expected non-null double.', + ); + final double? arg_scrollByDy = (args[2] as double?); + assert( + arg_scrollByDy != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraByScroll was null, expected non-null double.', + ); + final int? arg_duration = (args[3] as int?); try { - final bool output = api.isScrollGesturesEnabled(arg_viewId!); + final bool output = await api.animateCameraByScroll( + arg_viewId!, + arg_scrollByDx!, + arg_scrollByDy!, + arg_duration, + ); return [output]; } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } } { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setScrollGesturesEnabled$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraByZoom$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setScrollGesturesEnabled was null.'); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< + Object? + >(pigeonVar_channel, (Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraByZoom was null.', + ); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setScrollGesturesEnabled was null, expected non-null int.'); - final bool? arg_enabled = (args[1] as bool?); - assert(arg_enabled != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setScrollGesturesEnabled was null, expected non-null bool.'); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraByZoom was null, expected non-null int.', + ); + final double? arg_zoomBy = (args[1] as double?); + assert( + arg_zoomBy != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraByZoom was null, expected non-null double.', + ); + final double? arg_focusDx = (args[2] as double?); + final double? arg_focusDy = (args[3] as double?); + final int? arg_duration = (args[4] as int?); try { - api.setScrollGesturesEnabled(arg_viewId!, arg_enabled!); - return wrapResponse(empty: true); + final bool output = await api.animateCameraByZoom( + arg_viewId!, + arg_zoomBy!, + arg_focusDx, + arg_focusDy, + arg_duration, + ); + return [output]; } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } } { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isScrollGesturesEnabledDuringRotateOrZoom$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToZoom$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isScrollGesturesEnabledDuringRotateOrZoom was null.'); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< + Object? + >(pigeonVar_channel, (Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToZoom was null.', + ); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isScrollGesturesEnabledDuringRotateOrZoom was null, expected non-null int.'); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToZoom was null, expected non-null int.', + ); + final double? arg_zoom = (args[1] as double?); + assert( + arg_zoom != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToZoom was null, expected non-null double.', + ); + final int? arg_duration = (args[2] as int?); try { - final bool output = api.isScrollGesturesEnabledDuringRotateOrZoom(arg_viewId!); + final bool output = await api.animateCameraToZoom( + arg_viewId!, + arg_zoom!, + arg_duration, + ); return [output]; } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } } { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setScrollGesturesDuringRotateOrZoomEnabled$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToCameraPosition$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setScrollGesturesDuringRotateOrZoomEnabled was null.'); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< + Object? + >(pigeonVar_channel, (Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToCameraPosition was null.', + ); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setScrollGesturesDuringRotateOrZoomEnabled was null, expected non-null int.'); - final bool? arg_enabled = (args[1] as bool?); - assert(arg_enabled != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setScrollGesturesDuringRotateOrZoomEnabled was null, expected non-null bool.'); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToCameraPosition was null, expected non-null int.', + ); + final CameraPositionDto? arg_cameraPosition = + (args[1] as CameraPositionDto?); + assert( + arg_cameraPosition != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToCameraPosition was null, expected non-null CameraPositionDto.', + ); try { - api.setScrollGesturesDuringRotateOrZoomEnabled(arg_viewId!, arg_enabled!); + api.moveCameraToCameraPosition(arg_viewId!, arg_cameraPosition!); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } } { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTiltGesturesEnabled$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLng$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTiltGesturesEnabled was null.'); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< + Object? + >(pigeonVar_channel, (Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLng was null.', + ); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTiltGesturesEnabled was null, expected non-null int.'); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLng was null, expected non-null int.', + ); + final LatLngDto? arg_point = (args[1] as LatLngDto?); + assert( + arg_point != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLng was null, expected non-null LatLngDto.', + ); try { - final bool output = api.isTiltGesturesEnabled(arg_viewId!); - return [output]; + api.moveCameraToLatLng(arg_viewId!, arg_point!); + return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } } { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTiltGesturesEnabled$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLngBounds$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTiltGesturesEnabled was null.'); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< + Object? + >(pigeonVar_channel, (Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLngBounds was null.', + ); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTiltGesturesEnabled was null, expected non-null int.'); - final bool? arg_enabled = (args[1] as bool?); - assert(arg_enabled != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTiltGesturesEnabled was null, expected non-null bool.'); - try { - api.setTiltGesturesEnabled(arg_viewId!, arg_enabled!); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLngBounds was null, expected non-null int.', + ); + final LatLngBoundsDto? arg_bounds = (args[1] as LatLngBoundsDto?); + assert( + arg_bounds != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLngBounds was null, expected non-null LatLngBoundsDto.', + ); + final double? arg_padding = (args[2] as double?); + assert( + arg_padding != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLngBounds was null, expected non-null double.', + ); + try { + api.moveCameraToLatLngBounds( + arg_viewId!, + arg_bounds!, + arg_padding!, + ); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } } { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMapToolbarEnabled$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLngZoom$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMapToolbarEnabled was null.'); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< + Object? + >(pigeonVar_channel, (Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLngZoom was null.', + ); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMapToolbarEnabled was null, expected non-null int.'); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLngZoom was null, expected non-null int.', + ); + final LatLngDto? arg_point = (args[1] as LatLngDto?); + assert( + arg_point != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLngZoom was null, expected non-null LatLngDto.', + ); + final double? arg_zoom = (args[2] as double?); + assert( + arg_zoom != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLngZoom was null, expected non-null double.', + ); try { - final bool output = api.isMapToolbarEnabled(arg_viewId!); - return [output]; + api.moveCameraToLatLngZoom(arg_viewId!, arg_point!, arg_zoom!); + return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } } { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapToolbarEnabled$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraByScroll$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapToolbarEnabled was null.'); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< + Object? + >(pigeonVar_channel, (Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraByScroll was null.', + ); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapToolbarEnabled was null, expected non-null int.'); - final bool? arg_enabled = (args[1] as bool?); - assert(arg_enabled != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapToolbarEnabled was null, expected non-null bool.'); - try { - api.setMapToolbarEnabled(arg_viewId!, arg_enabled!); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraByScroll was null, expected non-null int.', + ); + final double? arg_scrollByDx = (args[1] as double?); + assert( + arg_scrollByDx != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraByScroll was null, expected non-null double.', + ); + final double? arg_scrollByDy = (args[2] as double?); + assert( + arg_scrollByDy != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraByScroll was null, expected non-null double.', + ); + try { + api.moveCameraByScroll( + arg_viewId!, + arg_scrollByDx!, + arg_scrollByDy!, + ); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } } { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficEnabled$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraByZoom$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficEnabled was null.'); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< + Object? + >(pigeonVar_channel, (Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraByZoom was null.', + ); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficEnabled was null, expected non-null int.'); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraByZoom was null, expected non-null int.', + ); + final double? arg_zoomBy = (args[1] as double?); + assert( + arg_zoomBy != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraByZoom was null, expected non-null double.', + ); + final double? arg_focusDx = (args[2] as double?); + final double? arg_focusDy = (args[3] as double?); try { - final bool output = api.isTrafficEnabled(arg_viewId!); - return [output]; + api.moveCameraByZoom( + arg_viewId!, + arg_zoomBy!, + arg_focusDx, + arg_focusDy, + ); + return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } } { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficEnabled$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToZoom$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficEnabled was null.'); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< + Object? + >(pigeonVar_channel, (Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToZoom was null.', + ); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficEnabled was null, expected non-null int.'); - final bool? arg_enabled = (args[1] as bool?); - assert(arg_enabled != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficEnabled was null, expected non-null bool.'); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToZoom was null, expected non-null int.', + ); + final double? arg_zoom = (args[1] as double?); + assert( + arg_zoom != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToZoom was null, expected non-null double.', + ); try { - api.setTrafficEnabled(arg_viewId!, arg_enabled!); + api.moveCameraToZoom(arg_viewId!, arg_zoom!); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficIncidentCardsEnabled$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficIncidentCardsEnabled was null.'); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.showRouteOverview$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.showRouteOverview was null.', + ); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.showRouteOverview was null, expected non-null int.', + ); + try { + api.showRouteOverview(arg_viewId!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMinZoomPreference$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMinZoomPreference was null.', + ); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMinZoomPreference was null, expected non-null int.', + ); + try { + final double output = api.getMinZoomPreference(arg_viewId!); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMaxZoomPreference$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMaxZoomPreference was null.', + ); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMaxZoomPreference was null, expected non-null int.', + ); + try { + final double output = api.getMaxZoomPreference(arg_viewId!); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.resetMinMaxZoomPreference$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.resetMinMaxZoomPreference was null.', + ); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.resetMinMaxZoomPreference was null, expected non-null int.', + ); + try { + api.resetMinMaxZoomPreference(arg_viewId!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMinZoomPreference$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< + Object? + >(pigeonVar_channel, (Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMinZoomPreference was null.', + ); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficIncidentCardsEnabled was null, expected non-null int.'); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMinZoomPreference was null, expected non-null int.', + ); + final double? arg_minZoomPreference = (args[1] as double?); + assert( + arg_minZoomPreference != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMinZoomPreference was null, expected non-null double.', + ); try { - final bool output = api.isTrafficIncidentCardsEnabled(arg_viewId!); - return [output]; + api.setMinZoomPreference(arg_viewId!, arg_minZoomPreference!); + return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } } { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficIncidentCardsEnabled$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMaxZoomPreference$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficIncidentCardsEnabled was null.'); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< + Object? + >(pigeonVar_channel, (Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMaxZoomPreference was null.', + ); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficIncidentCardsEnabled was null, expected non-null int.'); - final bool? arg_enabled = (args[1] as bool?); - assert(arg_enabled != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficIncidentCardsEnabled was null, expected non-null bool.'); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMaxZoomPreference was null, expected non-null int.', + ); + final double? arg_maxZoomPreference = (args[1] as double?); + assert( + arg_maxZoomPreference != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMaxZoomPreference was null, expected non-null double.', + ); try { - api.setTrafficIncidentCardsEnabled(arg_viewId!, arg_enabled!); + api.setMaxZoomPreference(arg_viewId!, arg_maxZoomPreference!); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficPromptsEnabled$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficPromptsEnabled was null.'); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMarkers$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMarkers was null.', + ); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMarkers was null, expected non-null int.', + ); + try { + final List output = api.getMarkers(arg_viewId!); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addMarkers$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< + Object? + >(pigeonVar_channel, (Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addMarkers was null.', + ); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficPromptsEnabled was null, expected non-null int.'); - try { - final bool output = api.isTrafficPromptsEnabled(arg_viewId!); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addMarkers was null, expected non-null int.', + ); + final List? arg_markers = (args[1] as List?) + ?.cast(); + assert( + arg_markers != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addMarkers was null, expected non-null List.', + ); + try { + final List output = api.addMarkers( + arg_viewId!, + arg_markers!, + ); return [output]; } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } } { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficPromptsEnabled$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updateMarkers$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficPromptsEnabled was null.'); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< + Object? + >(pigeonVar_channel, (Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updateMarkers was null.', + ); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficPromptsEnabled was null, expected non-null int.'); - final bool? arg_enabled = (args[1] as bool?); - assert(arg_enabled != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficPromptsEnabled was null, expected non-null bool.'); - try { - api.setTrafficPromptsEnabled(arg_viewId!, arg_enabled!); - return wrapResponse(empty: true); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updateMarkers was null, expected non-null int.', + ); + final List? arg_markers = (args[1] as List?) + ?.cast(); + assert( + arg_markers != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updateMarkers was null, expected non-null List.', + ); + try { + final List output = api.updateMarkers( + arg_viewId!, + arg_markers!, + ); + return [output]; } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } } { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isReportIncidentButtonEnabled$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removeMarkers$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isReportIncidentButtonEnabled was null.'); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< + Object? + >(pigeonVar_channel, (Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removeMarkers was null.', + ); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isReportIncidentButtonEnabled was null, expected non-null int.'); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removeMarkers was null, expected non-null int.', + ); + final List? arg_markers = (args[1] as List?) + ?.cast(); + assert( + arg_markers != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removeMarkers was null, expected non-null List.', + ); try { - final bool output = api.isReportIncidentButtonEnabled(arg_viewId!); - return [output]; + api.removeMarkers(arg_viewId!, arg_markers!); + return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setReportIncidentButtonEnabled$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setReportIncidentButtonEnabled was null.'); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearMarkers$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearMarkers was null.', + ); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearMarkers was null, expected non-null int.', + ); + try { + api.clearMarkers(arg_viewId!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clear$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clear was null.', + ); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clear was null, expected non-null int.', + ); + try { + api.clear(arg_viewId!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPolygons$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPolygons was null.', + ); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPolygons was null, expected non-null int.', + ); + try { + final List output = api.getPolygons(arg_viewId!); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addPolygons$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< + Object? + >(pigeonVar_channel, (Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addPolygons was null.', + ); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setReportIncidentButtonEnabled was null, expected non-null int.'); - final bool? arg_enabled = (args[1] as bool?); - assert(arg_enabled != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setReportIncidentButtonEnabled was null, expected non-null bool.'); - try { - api.setReportIncidentButtonEnabled(arg_viewId!, arg_enabled!); - return wrapResponse(empty: true); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addPolygons was null, expected non-null int.', + ); + final List? arg_polygons = (args[1] as List?) + ?.cast(); + assert( + arg_polygons != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addPolygons was null, expected non-null List.', + ); + try { + final List output = api.addPolygons( + arg_viewId!, + arg_polygons!, + ); + return [output]; } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } } { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isIncidentReportingAvailable$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updatePolygons$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isIncidentReportingAvailable was null.'); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< + Object? + >(pigeonVar_channel, (Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updatePolygons was null.', + ); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isIncidentReportingAvailable was null, expected non-null int.'); - try { - final bool output = api.isIncidentReportingAvailable(arg_viewId!); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updatePolygons was null, expected non-null int.', + ); + final List? arg_polygons = (args[1] as List?) + ?.cast(); + assert( + arg_polygons != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updatePolygons was null, expected non-null List.', + ); + try { + final List output = api.updatePolygons( + arg_viewId!, + arg_polygons!, + ); return [output]; } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } } { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.showReportIncidentsPanel$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removePolygons$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.showReportIncidentsPanel was null.'); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< + Object? + >(pigeonVar_channel, (Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removePolygons was null.', + ); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.showReportIncidentsPanel was null, expected non-null int.'); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removePolygons was null, expected non-null int.', + ); + final List? arg_polygons = (args[1] as List?) + ?.cast(); + assert( + arg_polygons != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removePolygons was null, expected non-null List.', + ); try { - api.showReportIncidentsPanel(arg_viewId!); + api.removePolygons(arg_viewId!, arg_polygons!); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isBuildingsEnabled$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isBuildingsEnabled was null.'); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearPolygons$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearPolygons was null.', + ); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearPolygons was null, expected non-null int.', + ); + try { + api.clearPolygons(arg_viewId!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPolylines$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPolylines was null.', + ); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPolylines was null, expected non-null int.', + ); + try { + final List output = api.getPolylines(arg_viewId!); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addPolylines$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< + Object? + >(pigeonVar_channel, (Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addPolylines was null.', + ); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isBuildingsEnabled was null, expected non-null int.'); - try { - final bool output = api.isBuildingsEnabled(arg_viewId!); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addPolylines was null, expected non-null int.', + ); + final List? arg_polylines = (args[1] as List?) + ?.cast(); + assert( + arg_polylines != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addPolylines was null, expected non-null List.', + ); + try { + final List output = api.addPolylines( + arg_viewId!, + arg_polylines!, + ); return [output]; } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } } { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setBuildingsEnabled$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updatePolylines$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setBuildingsEnabled was null.'); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< + Object? + >(pigeonVar_channel, (Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updatePolylines was null.', + ); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setBuildingsEnabled was null, expected non-null int.'); - final bool? arg_enabled = (args[1] as bool?); - assert(arg_enabled != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setBuildingsEnabled was null, expected non-null bool.'); - try { - api.setBuildingsEnabled(arg_viewId!, arg_enabled!); - return wrapResponse(empty: true); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updatePolylines was null, expected non-null int.', + ); + final List? arg_polylines = (args[1] as List?) + ?.cast(); + assert( + arg_polylines != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updatePolylines was null, expected non-null List.', + ); + try { + final List output = api.updatePolylines( + arg_viewId!, + arg_polylines!, + ); + return [output]; } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } } { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isIndoorEnabled$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removePolylines$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isIndoorEnabled was null.'); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< + Object? + >(pigeonVar_channel, (Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removePolylines was null.', + ); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isIndoorEnabled was null, expected non-null int.'); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removePolylines was null, expected non-null int.', + ); + final List? arg_polylines = (args[1] as List?) + ?.cast(); + assert( + arg_polylines != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removePolylines was null, expected non-null List.', + ); try { - final bool output = api.isIndoorEnabled(arg_viewId!); - return [output]; + api.removePolylines(arg_viewId!, arg_polylines!); + return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setIndoorEnabled$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setIndoorEnabled was null.'); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearPolylines$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearPolylines was null.', + ); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearPolylines was null, expected non-null int.', + ); + try { + api.clearPolylines(arg_viewId!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getCircles$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getCircles was null.', + ); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getCircles was null, expected non-null int.', + ); + try { + final List output = api.getCircles(arg_viewId!); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addCircles$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< + Object? + >(pigeonVar_channel, (Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addCircles was null.', + ); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setIndoorEnabled was null, expected non-null int.'); - final bool? arg_enabled = (args[1] as bool?); - assert(arg_enabled != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setIndoorEnabled was null, expected non-null bool.'); - try { - api.setIndoorEnabled(arg_viewId!, arg_enabled!); - return wrapResponse(empty: true); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addCircles was null, expected non-null int.', + ); + final List? arg_circles = (args[1] as List?) + ?.cast(); + assert( + arg_circles != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addCircles was null, expected non-null List.', + ); + try { + final List output = api.addCircles( + arg_viewId!, + arg_circles!, + ); + return [output]; } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } } { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isIndoorLevelPickerEnabled$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updateCircles$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isIndoorLevelPickerEnabled was null.'); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< + Object? + >(pigeonVar_channel, (Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updateCircles was null.', + ); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isIndoorLevelPickerEnabled was null, expected non-null int.'); - try { - final bool output = api.isIndoorLevelPickerEnabled(arg_viewId!); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updateCircles was null, expected non-null int.', + ); + final List? arg_circles = (args[1] as List?) + ?.cast(); + assert( + arg_circles != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updateCircles was null, expected non-null List.', + ); + try { + final List output = api.updateCircles( + arg_viewId!, + arg_circles!, + ); return [output]; } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } } { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setIndoorLevelPickerEnabled$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removeCircles$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setIndoorLevelPickerEnabled was null.'); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< + Object? + >(pigeonVar_channel, (Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removeCircles was null.', + ); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setIndoorLevelPickerEnabled was null, expected non-null int.'); - final bool? arg_enabled = (args[1] as bool?); - assert(arg_enabled != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setIndoorLevelPickerEnabled was null, expected non-null bool.'); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removeCircles was null, expected non-null int.', + ); + final List? arg_circles = (args[1] as List?) + ?.cast(); + assert( + arg_circles != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removeCircles was null, expected non-null List.', + ); try { - api.setIndoorLevelPickerEnabled(arg_viewId!, arg_enabled!); + api.removeCircles(arg_viewId!, arg_circles!); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getFocusedIndoorBuilding$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getFocusedIndoorBuilding was null.'); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearCircles$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearCircles was null.', + ); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearCircles was null, expected non-null int.', + ); + try { + api.clearCircles(arg_viewId!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.enableOnCameraChangedEvents$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.enableOnCameraChangedEvents was null.', + ); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.enableOnCameraChangedEvents was null, expected non-null int.', + ); + try { + api.enableOnCameraChangedEvents(arg_viewId!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setPadding$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< + Object? + >(pigeonVar_channel, (Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setPadding was null.', + ); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getFocusedIndoorBuilding was null, expected non-null int.'); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setPadding was null, expected non-null int.', + ); + final MapPaddingDto? arg_padding = (args[1] as MapPaddingDto?); + assert( + arg_padding != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setPadding was null, expected non-null MapPaddingDto.', + ); try { - final IndoorBuildingDto? output = api.getFocusedIndoorBuilding(arg_viewId!); - return [output]; + api.setPadding(arg_viewId!, arg_padding!); + return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.activateIndoorLevel$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.activateIndoorLevel was null.'); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPadding$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPadding was null.', + ); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPadding was null, expected non-null int.', + ); + try { + final MapPaddingDto output = api.getPadding(arg_viewId!); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMapColorScheme$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMapColorScheme was null.', + ); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMapColorScheme was null, expected non-null int.', + ); + try { + final MapColorSchemeDto output = api.getMapColorScheme( + arg_viewId!, + ); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapColorScheme$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< + Object? + >(pigeonVar_channel, (Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapColorScheme was null.', + ); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.activateIndoorLevel was null, expected non-null int.'); - final int? arg_levelIndex = (args[1] as int?); - assert(arg_levelIndex != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.activateIndoorLevel was null, expected non-null int.'); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapColorScheme was null, expected non-null int.', + ); + final MapColorSchemeDto? arg_mapColorScheme = + (args[1] as MapColorSchemeDto?); + assert( + arg_mapColorScheme != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapColorScheme was null, expected non-null MapColorSchemeDto.', + ); try { - api.activateIndoorLevel(arg_viewId!, arg_levelIndex!); + api.setMapColorScheme(arg_viewId!, arg_mapColorScheme!); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getCameraPosition$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getCameraPosition was null.'); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getForceNightMode$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getForceNightMode was null.', + ); + final List args = (message as List?)!; + final int? arg_viewId = (args[0] as int?); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getForceNightMode was null, expected non-null int.', + ); + try { + final NavigationForceNightModeDto output = api + .getForceNightMode(arg_viewId!); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setForceNightMode$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< + Object? + >(pigeonVar_channel, (Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setForceNightMode was null.', + ); final List args = (message as List?)!; final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getCameraPosition was null, expected non-null int.'); + assert( + arg_viewId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setForceNightMode was null, expected non-null int.', + ); + final NavigationForceNightModeDto? arg_forceNightMode = + (args[1] as NavigationForceNightModeDto?); + assert( + arg_forceNightMode != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setForceNightMode was null, expected non-null NavigationForceNightModeDto.', + ); try { - final CameraPositionDto output = api.getCameraPosition(arg_viewId!); - return [output]; + api.setForceNightMode(arg_viewId!, arg_forceNightMode!); + return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getVisibleRegion$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getVisibleRegion was null.'); + } +} + +abstract class TestImageRegistryApi { + static TestDefaultBinaryMessengerBinding? get _testBinaryMessengerBinding => + TestDefaultBinaryMessengerBinding.instance; + static const MessageCodec pigeonChannelCodec = _PigeonCodec(); + + ImageDescriptorDto registerBitmapImage( + String imageId, + Uint8List bytes, + double imagePixelRatio, + double? width, + double? height, + ); + + void unregisterImage(ImageDescriptorDto imageDescriptor); + + List getRegisteredImages(); + + void clearRegisteredImages(RegisteredImageTypeDto? filter); + + Uint8List? getRegisteredImageData(ImageDescriptorDto imageDescriptor); + + static void setUp( + TestImageRegistryApi? api, { + BinaryMessenger? binaryMessenger, + String messageChannelSuffix = '', + }) { + messageChannelSuffix = messageChannelSuffix.isNotEmpty + ? '.$messageChannelSuffix' + : ''; + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.registerBitmapImage$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< + Object? + >(pigeonVar_channel, (Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.registerBitmapImage was null.', + ); final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getVisibleRegion was null, expected non-null int.'); + final String? arg_imageId = (args[0] as String?); + assert( + arg_imageId != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.registerBitmapImage was null, expected non-null String.', + ); + final Uint8List? arg_bytes = (args[1] as Uint8List?); + assert( + arg_bytes != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.registerBitmapImage was null, expected non-null Uint8List.', + ); + final double? arg_imagePixelRatio = (args[2] as double?); + assert( + arg_imagePixelRatio != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.registerBitmapImage was null, expected non-null double.', + ); + final double? arg_width = (args[3] as double?); + final double? arg_height = (args[4] as double?); try { - final LatLngBoundsDto output = api.getVisibleRegion(arg_viewId!); + final ImageDescriptorDto output = api.registerBitmapImage( + arg_imageId!, + arg_bytes!, + arg_imagePixelRatio!, + arg_width, + arg_height, + ); return [output]; } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.unregisterImage$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.unregisterImage was null.', + ); + final List args = (message as List?)!; + final ImageDescriptorDto? arg_imageDescriptor = + (args[0] as ImageDescriptorDto?); + assert( + arg_imageDescriptor != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.unregisterImage was null, expected non-null ImageDescriptorDto.', + ); + try { + api.unregisterImage(arg_imageDescriptor!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.getRegisteredImages$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + try { + final List output = api + .getRegisteredImages(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.clearRegisteredImages$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.clearRegisteredImages was null.', + ); + final List args = (message as List?)!; + final RegisteredImageTypeDto? arg_filter = + (args[0] as RegisteredImageTypeDto?); + try { + api.clearRegisteredImages(arg_filter); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.getRegisteredImageData$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.getRegisteredImageData was null.', + ); + final List args = (message as List?)!; + final ImageDescriptorDto? arg_imageDescriptor = + (args[0] as ImageDescriptorDto?); + assert( + arg_imageDescriptor != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.getRegisteredImageData was null, expected non-null ImageDescriptorDto.', + ); + try { + final Uint8List? output = api.getRegisteredImageData( + arg_imageDescriptor!, + ); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); } } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.followMyLocation$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.followMyLocation was null.'); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.followMyLocation was null, expected non-null int.'); - final CameraPerspectiveDto? arg_perspective = (args[1] as CameraPerspectiveDto?); - assert(arg_perspective != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.followMyLocation was null, expected non-null CameraPerspectiveDto.'); - final double? arg_zoomLevel = (args[2] as double?); - try { - api.followMyLocation(arg_viewId!, arg_perspective!, arg_zoomLevel); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToCameraPosition$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToCameraPosition was null.'); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToCameraPosition was null, expected non-null int.'); - final CameraPositionDto? arg_cameraPosition = (args[1] as CameraPositionDto?); - assert(arg_cameraPosition != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToCameraPosition was null, expected non-null CameraPositionDto.'); - final int? arg_duration = (args[2] as int?); - try { - final bool output = await api.animateCameraToCameraPosition(arg_viewId!, arg_cameraPosition!, arg_duration); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLng$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLng was null.'); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLng was null, expected non-null int.'); - final LatLngDto? arg_point = (args[1] as LatLngDto?); - assert(arg_point != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLng was null, expected non-null LatLngDto.'); - final int? arg_duration = (args[2] as int?); - try { - final bool output = await api.animateCameraToLatLng(arg_viewId!, arg_point!, arg_duration); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLngBounds$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLngBounds was null.'); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLngBounds was null, expected non-null int.'); - final LatLngBoundsDto? arg_bounds = (args[1] as LatLngBoundsDto?); - assert(arg_bounds != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLngBounds was null, expected non-null LatLngBoundsDto.'); - final double? arg_padding = (args[2] as double?); - assert(arg_padding != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLngBounds was null, expected non-null double.'); - final int? arg_duration = (args[3] as int?); - try { - final bool output = await api.animateCameraToLatLngBounds(arg_viewId!, arg_bounds!, arg_padding!, arg_duration); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLngZoom$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLngZoom was null.'); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLngZoom was null, expected non-null int.'); - final LatLngDto? arg_point = (args[1] as LatLngDto?); - assert(arg_point != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLngZoom was null, expected non-null LatLngDto.'); - final double? arg_zoom = (args[2] as double?); - assert(arg_zoom != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLngZoom was null, expected non-null double.'); - final int? arg_duration = (args[3] as int?); - try { - final bool output = await api.animateCameraToLatLngZoom(arg_viewId!, arg_point!, arg_zoom!, arg_duration); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraByScroll$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraByScroll was null.'); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraByScroll was null, expected non-null int.'); - final double? arg_scrollByDx = (args[1] as double?); - assert(arg_scrollByDx != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraByScroll was null, expected non-null double.'); - final double? arg_scrollByDy = (args[2] as double?); - assert(arg_scrollByDy != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraByScroll was null, expected non-null double.'); - final int? arg_duration = (args[3] as int?); - try { - final bool output = await api.animateCameraByScroll(arg_viewId!, arg_scrollByDx!, arg_scrollByDy!, arg_duration); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraByZoom$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraByZoom was null.'); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraByZoom was null, expected non-null int.'); - final double? arg_zoomBy = (args[1] as double?); - assert(arg_zoomBy != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraByZoom was null, expected non-null double.'); - final double? arg_focusDx = (args[2] as double?); - final double? arg_focusDy = (args[3] as double?); - final int? arg_duration = (args[4] as int?); - try { - final bool output = await api.animateCameraByZoom(arg_viewId!, arg_zoomBy!, arg_focusDx, arg_focusDy, arg_duration); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToZoom$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToZoom was null.'); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToZoom was null, expected non-null int.'); - final double? arg_zoom = (args[1] as double?); - assert(arg_zoom != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToZoom was null, expected non-null double.'); - final int? arg_duration = (args[2] as int?); - try { - final bool output = await api.animateCameraToZoom(arg_viewId!, arg_zoom!, arg_duration); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToCameraPosition$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToCameraPosition was null.'); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToCameraPosition was null, expected non-null int.'); - final CameraPositionDto? arg_cameraPosition = (args[1] as CameraPositionDto?); - assert(arg_cameraPosition != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToCameraPosition was null, expected non-null CameraPositionDto.'); - try { - api.moveCameraToCameraPosition(arg_viewId!, arg_cameraPosition!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLng$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLng was null.'); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLng was null, expected non-null int.'); - final LatLngDto? arg_point = (args[1] as LatLngDto?); - assert(arg_point != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLng was null, expected non-null LatLngDto.'); - try { - api.moveCameraToLatLng(arg_viewId!, arg_point!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLngBounds$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLngBounds was null.'); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLngBounds was null, expected non-null int.'); - final LatLngBoundsDto? arg_bounds = (args[1] as LatLngBoundsDto?); - assert(arg_bounds != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLngBounds was null, expected non-null LatLngBoundsDto.'); - final double? arg_padding = (args[2] as double?); - assert(arg_padding != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLngBounds was null, expected non-null double.'); - try { - api.moveCameraToLatLngBounds(arg_viewId!, arg_bounds!, arg_padding!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLngZoom$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLngZoom was null.'); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLngZoom was null, expected non-null int.'); - final LatLngDto? arg_point = (args[1] as LatLngDto?); - assert(arg_point != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLngZoom was null, expected non-null LatLngDto.'); - final double? arg_zoom = (args[2] as double?); - assert(arg_zoom != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLngZoom was null, expected non-null double.'); - try { - api.moveCameraToLatLngZoom(arg_viewId!, arg_point!, arg_zoom!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraByScroll$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraByScroll was null.'); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraByScroll was null, expected non-null int.'); - final double? arg_scrollByDx = (args[1] as double?); - assert(arg_scrollByDx != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraByScroll was null, expected non-null double.'); - final double? arg_scrollByDy = (args[2] as double?); - assert(arg_scrollByDy != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraByScroll was null, expected non-null double.'); - try { - api.moveCameraByScroll(arg_viewId!, arg_scrollByDx!, arg_scrollByDy!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraByZoom$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraByZoom was null.'); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraByZoom was null, expected non-null int.'); - final double? arg_zoomBy = (args[1] as double?); - assert(arg_zoomBy != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraByZoom was null, expected non-null double.'); - final double? arg_focusDx = (args[2] as double?); - final double? arg_focusDy = (args[3] as double?); - try { - api.moveCameraByZoom(arg_viewId!, arg_zoomBy!, arg_focusDx, arg_focusDy); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToZoom$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToZoom was null.'); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToZoom was null, expected non-null int.'); - final double? arg_zoom = (args[1] as double?); - assert(arg_zoom != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToZoom was null, expected non-null double.'); - try { - api.moveCameraToZoom(arg_viewId!, arg_zoom!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.showRouteOverview$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.showRouteOverview was null.'); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.showRouteOverview was null, expected non-null int.'); - try { - api.showRouteOverview(arg_viewId!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMinZoomPreference$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMinZoomPreference was null.'); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMinZoomPreference was null, expected non-null int.'); - try { - final double output = api.getMinZoomPreference(arg_viewId!); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMaxZoomPreference$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMaxZoomPreference was null.'); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMaxZoomPreference was null, expected non-null int.'); - try { - final double output = api.getMaxZoomPreference(arg_viewId!); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.resetMinMaxZoomPreference$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.resetMinMaxZoomPreference was null.'); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.resetMinMaxZoomPreference was null, expected non-null int.'); - try { - api.resetMinMaxZoomPreference(arg_viewId!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMinZoomPreference$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMinZoomPreference was null.'); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMinZoomPreference was null, expected non-null int.'); - final double? arg_minZoomPreference = (args[1] as double?); - assert(arg_minZoomPreference != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMinZoomPreference was null, expected non-null double.'); - try { - api.setMinZoomPreference(arg_viewId!, arg_minZoomPreference!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMaxZoomPreference$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMaxZoomPreference was null.'); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMaxZoomPreference was null, expected non-null int.'); - final double? arg_maxZoomPreference = (args[1] as double?); - assert(arg_maxZoomPreference != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMaxZoomPreference was null, expected non-null double.'); - try { - api.setMaxZoomPreference(arg_viewId!, arg_maxZoomPreference!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMarkers$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMarkers was null.'); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMarkers was null, expected non-null int.'); - try { - final List output = api.getMarkers(arg_viewId!); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addMarkers$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addMarkers was null.'); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addMarkers was null, expected non-null int.'); - final List? arg_markers = (args[1] as List?)?.cast(); - assert(arg_markers != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addMarkers was null, expected non-null List.'); - try { - final List output = api.addMarkers(arg_viewId!, arg_markers!); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updateMarkers$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updateMarkers was null.'); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updateMarkers was null, expected non-null int.'); - final List? arg_markers = (args[1] as List?)?.cast(); - assert(arg_markers != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updateMarkers was null, expected non-null List.'); - try { - final List output = api.updateMarkers(arg_viewId!, arg_markers!); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removeMarkers$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removeMarkers was null.'); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removeMarkers was null, expected non-null int.'); - final List? arg_markers = (args[1] as List?)?.cast(); - assert(arg_markers != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removeMarkers was null, expected non-null List.'); - try { - api.removeMarkers(arg_viewId!, arg_markers!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearMarkers$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearMarkers was null.'); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearMarkers was null, expected non-null int.'); - try { - api.clearMarkers(arg_viewId!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clear$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clear was null.'); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clear was null, expected non-null int.'); - try { - api.clear(arg_viewId!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPolygons$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPolygons was null.'); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPolygons was null, expected non-null int.'); - try { - final List output = api.getPolygons(arg_viewId!); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addPolygons$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addPolygons was null.'); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addPolygons was null, expected non-null int.'); - final List? arg_polygons = (args[1] as List?)?.cast(); - assert(arg_polygons != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addPolygons was null, expected non-null List.'); - try { - final List output = api.addPolygons(arg_viewId!, arg_polygons!); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updatePolygons$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updatePolygons was null.'); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updatePolygons was null, expected non-null int.'); - final List? arg_polygons = (args[1] as List?)?.cast(); - assert(arg_polygons != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updatePolygons was null, expected non-null List.'); - try { - final List output = api.updatePolygons(arg_viewId!, arg_polygons!); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removePolygons$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removePolygons was null.'); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removePolygons was null, expected non-null int.'); - final List? arg_polygons = (args[1] as List?)?.cast(); - assert(arg_polygons != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removePolygons was null, expected non-null List.'); - try { - api.removePolygons(arg_viewId!, arg_polygons!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearPolygons$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearPolygons was null.'); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearPolygons was null, expected non-null int.'); - try { - api.clearPolygons(arg_viewId!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPolylines$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPolylines was null.'); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPolylines was null, expected non-null int.'); - try { - final List output = api.getPolylines(arg_viewId!); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addPolylines$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addPolylines was null.'); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addPolylines was null, expected non-null int.'); - final List? arg_polylines = (args[1] as List?)?.cast(); - assert(arg_polylines != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addPolylines was null, expected non-null List.'); - try { - final List output = api.addPolylines(arg_viewId!, arg_polylines!); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updatePolylines$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updatePolylines was null.'); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updatePolylines was null, expected non-null int.'); - final List? arg_polylines = (args[1] as List?)?.cast(); - assert(arg_polylines != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updatePolylines was null, expected non-null List.'); - try { - final List output = api.updatePolylines(arg_viewId!, arg_polylines!); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removePolylines$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removePolylines was null.'); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removePolylines was null, expected non-null int.'); - final List? arg_polylines = (args[1] as List?)?.cast(); - assert(arg_polylines != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removePolylines was null, expected non-null List.'); - try { - api.removePolylines(arg_viewId!, arg_polylines!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearPolylines$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearPolylines was null.'); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearPolylines was null, expected non-null int.'); - try { - api.clearPolylines(arg_viewId!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getCircles$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getCircles was null.'); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getCircles was null, expected non-null int.'); - try { - final List output = api.getCircles(arg_viewId!); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addCircles$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addCircles was null.'); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addCircles was null, expected non-null int.'); - final List? arg_circles = (args[1] as List?)?.cast(); - assert(arg_circles != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addCircles was null, expected non-null List.'); - try { - final List output = api.addCircles(arg_viewId!, arg_circles!); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updateCircles$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updateCircles was null.'); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updateCircles was null, expected non-null int.'); - final List? arg_circles = (args[1] as List?)?.cast(); - assert(arg_circles != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updateCircles was null, expected non-null List.'); - try { - final List output = api.updateCircles(arg_viewId!, arg_circles!); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removeCircles$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removeCircles was null.'); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removeCircles was null, expected non-null int.'); - final List? arg_circles = (args[1] as List?)?.cast(); - assert(arg_circles != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removeCircles was null, expected non-null List.'); - try { - api.removeCircles(arg_viewId!, arg_circles!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearCircles$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearCircles was null.'); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearCircles was null, expected non-null int.'); - try { - api.clearCircles(arg_viewId!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.enableOnCameraChangedEvents$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.enableOnCameraChangedEvents was null.'); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.enableOnCameraChangedEvents was null, expected non-null int.'); - try { - api.enableOnCameraChangedEvents(arg_viewId!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setPadding$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setPadding was null.'); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setPadding was null, expected non-null int.'); - final MapPaddingDto? arg_padding = (args[1] as MapPaddingDto?); - assert(arg_padding != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setPadding was null, expected non-null MapPaddingDto.'); - try { - api.setPadding(arg_viewId!, arg_padding!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPadding$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPadding was null.'); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPadding was null, expected non-null int.'); - try { - final MapPaddingDto output = api.getPadding(arg_viewId!); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMapColorScheme$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMapColorScheme was null.'); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMapColorScheme was null, expected non-null int.'); - try { - final MapColorSchemeDto output = api.getMapColorScheme(arg_viewId!); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapColorScheme$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapColorScheme was null.'); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapColorScheme was null, expected non-null int.'); - final MapColorSchemeDto? arg_mapColorScheme = (args[1] as MapColorSchemeDto?); - assert(arg_mapColorScheme != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapColorScheme was null, expected non-null MapColorSchemeDto.'); - try { - api.setMapColorScheme(arg_viewId!, arg_mapColorScheme!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getForceNightMode$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getForceNightMode was null.'); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getForceNightMode was null, expected non-null int.'); - try { - final NavigationForceNightModeDto output = api.getForceNightMode(arg_viewId!); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setForceNightMode$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setForceNightMode was null.'); - final List args = (message as List?)!; - final int? arg_viewId = (args[0] as int?); - assert(arg_viewId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setForceNightMode was null, expected non-null int.'); - final NavigationForceNightModeDto? arg_forceNightMode = (args[1] as NavigationForceNightModeDto?); - assert(arg_forceNightMode != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setForceNightMode was null, expected non-null NavigationForceNightModeDto.'); - try { - api.setForceNightMode(arg_viewId!, arg_forceNightMode!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - } -} - -abstract class TestImageRegistryApi { - static TestDefaultBinaryMessengerBinding? get _testBinaryMessengerBinding => TestDefaultBinaryMessengerBinding.instance; - static const MessageCodec pigeonChannelCodec = _PigeonCodec(); - - ImageDescriptorDto registerBitmapImage(String imageId, Uint8List bytes, double imagePixelRatio, double? width, double? height); - - void unregisterImage(ImageDescriptorDto imageDescriptor); - - List getRegisteredImages(); - - void clearRegisteredImages(RegisteredImageTypeDto? filter); - - Uint8List? getRegisteredImageData(ImageDescriptorDto imageDescriptor); - - static void setUp(TestImageRegistryApi? api, {BinaryMessenger? binaryMessenger, String messageChannelSuffix = '',}) { - messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.registerBitmapImage$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.registerBitmapImage was null.'); - final List args = (message as List?)!; - final String? arg_imageId = (args[0] as String?); - assert(arg_imageId != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.registerBitmapImage was null, expected non-null String.'); - final Uint8List? arg_bytes = (args[1] as Uint8List?); - assert(arg_bytes != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.registerBitmapImage was null, expected non-null Uint8List.'); - final double? arg_imagePixelRatio = (args[2] as double?); - assert(arg_imagePixelRatio != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.registerBitmapImage was null, expected non-null double.'); - final double? arg_width = (args[3] as double?); - final double? arg_height = (args[4] as double?); - try { - final ImageDescriptorDto output = api.registerBitmapImage(arg_imageId!, arg_bytes!, arg_imagePixelRatio!, arg_width, arg_height); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.unregisterImage$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.unregisterImage was null.'); - final List args = (message as List?)!; - final ImageDescriptorDto? arg_imageDescriptor = (args[0] as ImageDescriptorDto?); - assert(arg_imageDescriptor != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.unregisterImage was null, expected non-null ImageDescriptorDto.'); - try { - api.unregisterImage(arg_imageDescriptor!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.getRegisteredImages$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - try { - final List output = api.getRegisteredImages(); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.clearRegisteredImages$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.clearRegisteredImages was null.'); - final List args = (message as List?)!; - final RegisteredImageTypeDto? arg_filter = (args[0] as RegisteredImageTypeDto?); - try { - api.clearRegisteredImages(arg_filter); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.getRegisteredImageData$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.getRegisteredImageData was null.'); - final List args = (message as List?)!; - final ImageDescriptorDto? arg_imageDescriptor = (args[0] as ImageDescriptorDto?); - assert(arg_imageDescriptor != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.getRegisteredImageData was null, expected non-null ImageDescriptorDto.'); - try { - final Uint8List? output = api.getRegisteredImageData(arg_imageDescriptor!); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - } -} - -abstract class TestNavigationSessionApi { - static TestDefaultBinaryMessengerBinding? get _testBinaryMessengerBinding => TestDefaultBinaryMessengerBinding.instance; - static const MessageCodec pigeonChannelCodec = _PigeonCodec(); - - Future createNavigationSession(bool abnormalTerminationReportingEnabled, TaskRemovedBehaviorDto behavior); - - bool isInitialized(); - - void cleanup(bool resetSession); - - Future showTermsAndConditionsDialog(String title, String companyName, bool shouldOnlyShowDriverAwarenessDisclaimer, TermsAndConditionsUIParamsDto? uiParams); - - bool areTermsAccepted(); - - void resetTermsAccepted(); - - String getNavSDKVersion(); - - bool isGuidanceRunning(); - - void startGuidance(); - - void stopGuidance(); - - Future setDestinations(DestinationsDto destinations); - - void clearDestinations(); - - Future continueToNextDestination(); - - NavigationTimeAndDistanceDto getCurrentTimeAndDistance(); - - void setAudioGuidance(NavigationAudioGuidanceSettingsDto settings); - - void setSpeedAlertOptions(SpeedAlertOptionsDto options); - - List getRouteSegments(); - - List getTraveledRoute(); - - RouteSegmentDto? getCurrentRouteSegment(); - - void setUserLocation(LatLngDto location); - - void removeUserLocation(); - - void simulateLocationsAlongExistingRoute(); - - void simulateLocationsAlongExistingRouteWithOptions(SimulationOptionsDto options); - - Future simulateLocationsAlongNewRoute(List waypoints); - - Future simulateLocationsAlongNewRouteWithRoutingOptions(List waypoints, RoutingOptionsDto routingOptions); - - Future simulateLocationsAlongNewRouteWithRoutingAndSimulationOptions(List waypoints, RoutingOptionsDto routingOptions, SimulationOptionsDto simulationOptions); - - void pauseSimulation(); - - void resumeSimulation(); - - /// iOS-only method. - void allowBackgroundLocationUpdates(bool allow); - - void enableRoadSnappedLocationUpdates(); - - void disableRoadSnappedLocationUpdates(); - - void enableTurnByTurnNavigationEvents(int? numNextStepsToPreview, StepImageGenerationOptionsDto? options); - - void disableTurnByTurnNavigationEvents(); - - void registerRemainingTimeOrDistanceChangedListener(int remainingTimeThresholdSeconds, int remainingDistanceThresholdMeters); - - static void setUp(TestNavigationSessionApi? api, {BinaryMessenger? binaryMessenger, String messageChannelSuffix = '',}) { - messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.createNavigationSession$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.createNavigationSession was null.'); - final List args = (message as List?)!; - final bool? arg_abnormalTerminationReportingEnabled = (args[0] as bool?); - assert(arg_abnormalTerminationReportingEnabled != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.createNavigationSession was null, expected non-null bool.'); - final TaskRemovedBehaviorDto? arg_behavior = (args[1] as TaskRemovedBehaviorDto?); - assert(arg_behavior != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.createNavigationSession was null, expected non-null TaskRemovedBehaviorDto.'); - try { - 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())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.isInitialized$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - try { - final bool output = api.isInitialized(); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.cleanup$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.cleanup was null.'); - final List args = (message as List?)!; - final bool? arg_resetSession = (args[0] as bool?); - assert(arg_resetSession != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.cleanup was null, expected non-null bool.'); - try { - api.cleanup(arg_resetSession!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.showTermsAndConditionsDialog$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.showTermsAndConditionsDialog was null.'); - final List args = (message as List?)!; - final String? arg_title = (args[0] as String?); - assert(arg_title != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.showTermsAndConditionsDialog was null, expected non-null String.'); - final String? arg_companyName = (args[1] as String?); - assert(arg_companyName != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.showTermsAndConditionsDialog was null, expected non-null String.'); - final bool? arg_shouldOnlyShowDriverAwarenessDisclaimer = (args[2] as bool?); - assert(arg_shouldOnlyShowDriverAwarenessDisclaimer != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.showTermsAndConditionsDialog was null, expected non-null bool.'); - final TermsAndConditionsUIParamsDto? arg_uiParams = (args[3] as TermsAndConditionsUIParamsDto?); - try { - final bool output = await api.showTermsAndConditionsDialog(arg_title!, arg_companyName!, arg_shouldOnlyShowDriverAwarenessDisclaimer!, arg_uiParams); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.areTermsAccepted$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - try { - final bool output = api.areTermsAccepted(); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.resetTermsAccepted$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - try { - api.resetTermsAccepted(); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getNavSDKVersion$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - try { - final String output = api.getNavSDKVersion(); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.isGuidanceRunning$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - try { - final bool output = api.isGuidanceRunning(); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.startGuidance$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - try { - api.startGuidance(); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.stopGuidance$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - try { - api.stopGuidance(); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setDestinations$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setDestinations was null.'); - final List args = (message as List?)!; - final DestinationsDto? arg_destinations = (args[0] as DestinationsDto?); - assert(arg_destinations != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setDestinations was null, expected non-null DestinationsDto.'); - try { - final RouteStatusDto output = await api.setDestinations(arg_destinations!); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.clearDestinations$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - try { - api.clearDestinations(); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.continueToNextDestination$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - try { - final ContinueToNextDestinationResponseDto output = await api.continueToNextDestination(); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getCurrentTimeAndDistance$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - try { - final NavigationTimeAndDistanceDto output = api.getCurrentTimeAndDistance(); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setAudioGuidance$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setAudioGuidance was null.'); - final List args = (message as List?)!; - final NavigationAudioGuidanceSettingsDto? arg_settings = (args[0] as NavigationAudioGuidanceSettingsDto?); - assert(arg_settings != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setAudioGuidance was null, expected non-null NavigationAudioGuidanceSettingsDto.'); - try { - api.setAudioGuidance(arg_settings!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setSpeedAlertOptions$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setSpeedAlertOptions was null.'); - final List args = (message as List?)!; - final SpeedAlertOptionsDto? arg_options = (args[0] as SpeedAlertOptionsDto?); - assert(arg_options != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setSpeedAlertOptions was null, expected non-null SpeedAlertOptionsDto.'); - try { - api.setSpeedAlertOptions(arg_options!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getRouteSegments$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - try { - final List output = api.getRouteSegments(); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getTraveledRoute$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - try { - final List output = api.getTraveledRoute(); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getCurrentRouteSegment$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - try { - final RouteSegmentDto? output = api.getCurrentRouteSegment(); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setUserLocation$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setUserLocation was null.'); - final List args = (message as List?)!; - final LatLngDto? arg_location = (args[0] as LatLngDto?); - assert(arg_location != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setUserLocation was null, expected non-null LatLngDto.'); - try { - api.setUserLocation(arg_location!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.removeUserLocation$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - try { - api.removeUserLocation(); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongExistingRoute$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - try { - api.simulateLocationsAlongExistingRoute(); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongExistingRouteWithOptions$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongExistingRouteWithOptions was null.'); - final List args = (message as List?)!; - final SimulationOptionsDto? arg_options = (args[0] as SimulationOptionsDto?); - assert(arg_options != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongExistingRouteWithOptions was null, expected non-null SimulationOptionsDto.'); - try { - api.simulateLocationsAlongExistingRouteWithOptions(arg_options!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRoute$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRoute was null.'); - final List args = (message as List?)!; - final List? arg_waypoints = (args[0] as List?)?.cast(); - assert(arg_waypoints != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRoute was null, expected non-null List.'); - try { - final RouteStatusDto output = await api.simulateLocationsAlongNewRoute(arg_waypoints!); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRouteWithRoutingOptions$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRouteWithRoutingOptions was null.'); - final List args = (message as List?)!; - final List? arg_waypoints = (args[0] as List?)?.cast(); - assert(arg_waypoints != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRouteWithRoutingOptions was null, expected non-null List.'); - final RoutingOptionsDto? arg_routingOptions = (args[1] as RoutingOptionsDto?); - assert(arg_routingOptions != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRouteWithRoutingOptions was null, expected non-null RoutingOptionsDto.'); - try { - final RouteStatusDto output = await api.simulateLocationsAlongNewRouteWithRoutingOptions(arg_waypoints!, arg_routingOptions!); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRouteWithRoutingAndSimulationOptions$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRouteWithRoutingAndSimulationOptions was null.'); - final List args = (message as List?)!; - final List? arg_waypoints = (args[0] as List?)?.cast(); - assert(arg_waypoints != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRouteWithRoutingAndSimulationOptions was null, expected non-null List.'); - final RoutingOptionsDto? arg_routingOptions = (args[1] as RoutingOptionsDto?); - assert(arg_routingOptions != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRouteWithRoutingAndSimulationOptions was null, expected non-null RoutingOptionsDto.'); - final SimulationOptionsDto? arg_simulationOptions = (args[2] as SimulationOptionsDto?); - assert(arg_simulationOptions != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRouteWithRoutingAndSimulationOptions was null, expected non-null SimulationOptionsDto.'); - try { - final RouteStatusDto output = await api.simulateLocationsAlongNewRouteWithRoutingAndSimulationOptions(arg_waypoints!, arg_routingOptions!, arg_simulationOptions!); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.pauseSimulation$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - try { - api.pauseSimulation(); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.resumeSimulation$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - try { - api.resumeSimulation(); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.allowBackgroundLocationUpdates$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.allowBackgroundLocationUpdates was null.'); - final List args = (message as List?)!; - final bool? arg_allow = (args[0] as bool?); - assert(arg_allow != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.allowBackgroundLocationUpdates was null, expected non-null bool.'); - try { - api.allowBackgroundLocationUpdates(arg_allow!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.enableRoadSnappedLocationUpdates$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - try { - api.enableRoadSnappedLocationUpdates(); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.disableRoadSnappedLocationUpdates$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - try { - api.disableRoadSnappedLocationUpdates(); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.enableTurnByTurnNavigationEvents$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.enableTurnByTurnNavigationEvents was null.'); - final List args = (message as List?)!; - final int? arg_numNextStepsToPreview = (args[0] as int?); - final StepImageGenerationOptionsDto? arg_options = (args[1] as StepImageGenerationOptionsDto?); - try { - api.enableTurnByTurnNavigationEvents(arg_numNextStepsToPreview, arg_options); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.disableTurnByTurnNavigationEvents$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - try { - api.disableTurnByTurnNavigationEvents(); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.registerRemainingTimeOrDistanceChangedListener$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.registerRemainingTimeOrDistanceChangedListener was null.'); - final List args = (message as List?)!; - final int? arg_remainingTimeThresholdSeconds = (args[0] as int?); - assert(arg_remainingTimeThresholdSeconds != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.registerRemainingTimeOrDistanceChangedListener was null, expected non-null int.'); - final int? arg_remainingDistanceThresholdMeters = (args[1] as int?); - assert(arg_remainingDistanceThresholdMeters != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.registerRemainingTimeOrDistanceChangedListener was null, expected non-null int.'); - try { - api.registerRemainingTimeOrDistanceChangedListener(arg_remainingTimeThresholdSeconds!, arg_remainingDistanceThresholdMeters!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - } -} - -abstract class TestAutoMapViewApi { - static TestDefaultBinaryMessengerBinding? get _testBinaryMessengerBinding => TestDefaultBinaryMessengerBinding.instance; - static const MessageCodec pigeonChannelCodec = _PigeonCodec(); - - /// Sets the map options to be used for Android Auto and CarPlay views. - /// Should be called before the Auto/CarPlay screen is created. - /// This allows customization of mapId and basic map settings. - void setAutoMapOptions(AutoMapOptionsDto mapOptions); - - bool isMyLocationEnabled(); - - void setMyLocationEnabled(bool enabled); - - LatLngDto? getMyLocation(); - - MapTypeDto getMapType(); - - void setMapType(MapTypeDto mapType); - - void setMapStyle(String styleJson); - - CameraPositionDto getCameraPosition(); - - LatLngBoundsDto getVisibleRegion(); - - void followMyLocation(CameraPerspectiveDto perspective, double? zoomLevel); - - Future animateCameraToCameraPosition(CameraPositionDto cameraPosition, int? duration); - - Future animateCameraToLatLng(LatLngDto point, int? duration); - - Future animateCameraToLatLngBounds(LatLngBoundsDto bounds, double padding, int? duration); - - Future animateCameraToLatLngZoom(LatLngDto point, double zoom, int? duration); - - Future animateCameraByScroll(double scrollByDx, double scrollByDy, int? duration); - - Future animateCameraByZoom(double zoomBy, double? focusDx, double? focusDy, int? duration); - - Future animateCameraToZoom(double zoom, int? duration); - - void moveCameraToCameraPosition(CameraPositionDto cameraPosition); - - void moveCameraToLatLng(LatLngDto point); - - void moveCameraToLatLngBounds(LatLngBoundsDto bounds, double padding); - - void moveCameraToLatLngZoom(LatLngDto point, double zoom); - - void moveCameraByScroll(double scrollByDx, double scrollByDy); - - void moveCameraByZoom(double zoomBy, double? focusDx, double? focusDy); - - void moveCameraToZoom(double zoom); - - double getMinZoomPreference(); - - double getMaxZoomPreference(); - - void resetMinMaxZoomPreference(); - - void setMinZoomPreference(double minZoomPreference); - - void setMaxZoomPreference(double maxZoomPreference); - - void setMyLocationButtonEnabled(bool enabled); - - void setConsumeMyLocationButtonClickEventsEnabled(bool enabled); - - void setZoomGesturesEnabled(bool enabled); - - void setZoomControlsEnabled(bool enabled); - - void setCompassEnabled(bool enabled); - - void setRotateGesturesEnabled(bool enabled); - - void setScrollGesturesEnabled(bool enabled); - - void setScrollGesturesDuringRotateOrZoomEnabled(bool enabled); - - void setTiltGesturesEnabled(bool enabled); - - void setMapToolbarEnabled(bool enabled); - - void setTrafficEnabled(bool enabled); - - void setTrafficPromptsEnabled(bool enabled); - - void setTrafficIncidentCardsEnabled(bool enabled); - - void setNavigationTripProgressBarEnabled(bool enabled); - - void setSpeedLimitIconEnabled(bool enabled); - - void setSpeedometerEnabled(bool enabled); - - void setNavigationUIEnabled(bool enabled); - - bool isMyLocationButtonEnabled(); - - bool isConsumeMyLocationButtonClickEventsEnabled(); - - bool isZoomGesturesEnabled(); - - bool isZoomControlsEnabled(); - - bool isCompassEnabled(); - - bool isRotateGesturesEnabled(); - - bool isScrollGesturesEnabled(); - - bool isScrollGesturesEnabledDuringRotateOrZoom(); - - bool isTiltGesturesEnabled(); - - bool isMapToolbarEnabled(); - - bool isTrafficEnabled(); - - bool isTrafficPromptsEnabled(); - - bool isTrafficIncidentCardsEnabled(); - - bool isNavigationTripProgressBarEnabled(); - - bool isSpeedLimitIconEnabled(); - - bool isSpeedometerEnabled(); - - bool isNavigationUIEnabled(); - - bool isIndoorEnabled(); - - void setIndoorEnabled(bool enabled); - - IndoorBuildingDto? getFocusedIndoorBuilding(); - - void activateIndoorLevel(int levelIndex); - - void showRouteOverview(); - - List getMarkers(); - - List addMarkers(List markers); - - List updateMarkers(List markers); - - void removeMarkers(List markers); - - void clearMarkers(); - - void clear(); - - List getPolygons(); - - List addPolygons(List polygons); - - List updatePolygons(List polygons); - - void removePolygons(List polygons); - - void clearPolygons(); - - List getPolylines(); - - List addPolylines(List polylines); - - List updatePolylines(List polylines); - - void removePolylines(List polylines); - - void clearPolylines(); - - List getCircles(); - - List addCircles(List circles); - - List updateCircles(List circles); - - void removeCircles(List circles); - - void clearCircles(); - - void enableOnCameraChangedEvents(); - - bool isAutoScreenAvailable(); - - void setPadding(MapPaddingDto padding); - - MapPaddingDto getPadding(); - - MapColorSchemeDto getMapColorScheme(); - - void setMapColorScheme(MapColorSchemeDto mapColorScheme); - - NavigationForceNightModeDto getForceNightMode(); - - void setForceNightMode(NavigationForceNightModeDto forceNightMode); - - void sendCustomNavigationAutoEvent(String event, Object data); - - static void setUp(TestAutoMapViewApi? api, {BinaryMessenger? binaryMessenger, String messageChannelSuffix = '',}) { - messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setAutoMapOptions$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setAutoMapOptions was null.'); - final List args = (message as List?)!; - final AutoMapOptionsDto? arg_mapOptions = (args[0] as AutoMapOptionsDto?); - assert(arg_mapOptions != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setAutoMapOptions was null, expected non-null AutoMapOptionsDto.'); - try { - api.setAutoMapOptions(arg_mapOptions!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isMyLocationEnabled$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - try { - final bool output = api.isMyLocationEnabled(); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMyLocationEnabled$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMyLocationEnabled was null.'); - final List args = (message as List?)!; - final bool? arg_enabled = (args[0] as bool?); - assert(arg_enabled != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMyLocationEnabled was null, expected non-null bool.'); - try { - api.setMyLocationEnabled(arg_enabled!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMyLocation$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - try { - final LatLngDto? output = api.getMyLocation(); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMapType$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - try { - final MapTypeDto output = api.getMapType(); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapType$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapType was null.'); - final List args = (message as List?)!; - final MapTypeDto? arg_mapType = (args[0] as MapTypeDto?); - assert(arg_mapType != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapType was null, expected non-null MapTypeDto.'); - try { - api.setMapType(arg_mapType!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapStyle$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapStyle was null.'); - final List args = (message as List?)!; - final String? arg_styleJson = (args[0] as String?); - assert(arg_styleJson != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapStyle was null, expected non-null String.'); - try { - api.setMapStyle(arg_styleJson!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getCameraPosition$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - try { - final CameraPositionDto output = api.getCameraPosition(); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getVisibleRegion$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - try { - final LatLngBoundsDto output = api.getVisibleRegion(); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.followMyLocation$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.followMyLocation was null.'); - final List args = (message as List?)!; - final CameraPerspectiveDto? arg_perspective = (args[0] as CameraPerspectiveDto?); - assert(arg_perspective != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.followMyLocation was null, expected non-null CameraPerspectiveDto.'); - final double? arg_zoomLevel = (args[1] as double?); - try { - api.followMyLocation(arg_perspective!, arg_zoomLevel); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToCameraPosition$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToCameraPosition was null.'); - final List args = (message as List?)!; - final CameraPositionDto? arg_cameraPosition = (args[0] as CameraPositionDto?); - assert(arg_cameraPosition != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToCameraPosition was null, expected non-null CameraPositionDto.'); - final int? arg_duration = (args[1] as int?); - try { - final bool output = await api.animateCameraToCameraPosition(arg_cameraPosition!, arg_duration); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLng$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLng was null.'); - final List args = (message as List?)!; - final LatLngDto? arg_point = (args[0] as LatLngDto?); - assert(arg_point != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLng was null, expected non-null LatLngDto.'); - final int? arg_duration = (args[1] as int?); - try { - final bool output = await api.animateCameraToLatLng(arg_point!, arg_duration); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLngBounds$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLngBounds was null.'); - final List args = (message as List?)!; - final LatLngBoundsDto? arg_bounds = (args[0] as LatLngBoundsDto?); - assert(arg_bounds != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLngBounds was null, expected non-null LatLngBoundsDto.'); - final double? arg_padding = (args[1] as double?); - assert(arg_padding != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLngBounds was null, expected non-null double.'); - final int? arg_duration = (args[2] as int?); - try { - final bool output = await api.animateCameraToLatLngBounds(arg_bounds!, arg_padding!, arg_duration); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLngZoom$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLngZoom was null.'); - final List args = (message as List?)!; - final LatLngDto? arg_point = (args[0] as LatLngDto?); - assert(arg_point != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLngZoom was null, expected non-null LatLngDto.'); - final double? arg_zoom = (args[1] as double?); - assert(arg_zoom != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLngZoom was null, expected non-null double.'); - final int? arg_duration = (args[2] as int?); - try { - final bool output = await api.animateCameraToLatLngZoom(arg_point!, arg_zoom!, arg_duration); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraByScroll$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraByScroll was null.'); - final List args = (message as List?)!; - final double? arg_scrollByDx = (args[0] as double?); - assert(arg_scrollByDx != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraByScroll was null, expected non-null double.'); - final double? arg_scrollByDy = (args[1] as double?); - assert(arg_scrollByDy != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraByScroll was null, expected non-null double.'); - final int? arg_duration = (args[2] as int?); - try { - final bool output = await api.animateCameraByScroll(arg_scrollByDx!, arg_scrollByDy!, arg_duration); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraByZoom$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraByZoom was null.'); - final List args = (message as List?)!; - final double? arg_zoomBy = (args[0] as double?); - assert(arg_zoomBy != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraByZoom was null, expected non-null double.'); - final double? arg_focusDx = (args[1] as double?); - final double? arg_focusDy = (args[2] as double?); - final int? arg_duration = (args[3] as int?); - try { - final bool output = await api.animateCameraByZoom(arg_zoomBy!, arg_focusDx, arg_focusDy, arg_duration); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToZoom$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToZoom was null.'); - final List args = (message as List?)!; - final double? arg_zoom = (args[0] as double?); - assert(arg_zoom != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToZoom was null, expected non-null double.'); - final int? arg_duration = (args[1] as int?); - try { - final bool output = await api.animateCameraToZoom(arg_zoom!, arg_duration); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToCameraPosition$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToCameraPosition was null.'); - final List args = (message as List?)!; - final CameraPositionDto? arg_cameraPosition = (args[0] as CameraPositionDto?); - assert(arg_cameraPosition != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToCameraPosition was null, expected non-null CameraPositionDto.'); - try { - api.moveCameraToCameraPosition(arg_cameraPosition!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLng$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLng was null.'); - final List args = (message as List?)!; - final LatLngDto? arg_point = (args[0] as LatLngDto?); - assert(arg_point != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLng was null, expected non-null LatLngDto.'); - try { - api.moveCameraToLatLng(arg_point!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLngBounds$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLngBounds was null.'); - final List args = (message as List?)!; - final LatLngBoundsDto? arg_bounds = (args[0] as LatLngBoundsDto?); - assert(arg_bounds != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLngBounds was null, expected non-null LatLngBoundsDto.'); - final double? arg_padding = (args[1] as double?); - assert(arg_padding != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLngBounds was null, expected non-null double.'); - try { - api.moveCameraToLatLngBounds(arg_bounds!, arg_padding!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLngZoom$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLngZoom was null.'); - final List args = (message as List?)!; - final LatLngDto? arg_point = (args[0] as LatLngDto?); - assert(arg_point != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLngZoom was null, expected non-null LatLngDto.'); - final double? arg_zoom = (args[1] as double?); - assert(arg_zoom != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLngZoom was null, expected non-null double.'); - try { - api.moveCameraToLatLngZoom(arg_point!, arg_zoom!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraByScroll$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraByScroll was null.'); - final List args = (message as List?)!; - final double? arg_scrollByDx = (args[0] as double?); - assert(arg_scrollByDx != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraByScroll was null, expected non-null double.'); - final double? arg_scrollByDy = (args[1] as double?); - assert(arg_scrollByDy != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraByScroll was null, expected non-null double.'); - try { - api.moveCameraByScroll(arg_scrollByDx!, arg_scrollByDy!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraByZoom$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraByZoom was null.'); - final List args = (message as List?)!; - final double? arg_zoomBy = (args[0] as double?); - assert(arg_zoomBy != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraByZoom was null, expected non-null double.'); - final double? arg_focusDx = (args[1] as double?); - final double? arg_focusDy = (args[2] as double?); - try { - api.moveCameraByZoom(arg_zoomBy!, arg_focusDx, arg_focusDy); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToZoom$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToZoom was null.'); - final List args = (message as List?)!; - final double? arg_zoom = (args[0] as double?); - assert(arg_zoom != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToZoom was null, expected non-null double.'); - try { - api.moveCameraToZoom(arg_zoom!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMinZoomPreference$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - try { - final double output = api.getMinZoomPreference(); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMaxZoomPreference$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - try { - final double output = api.getMaxZoomPreference(); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.resetMinMaxZoomPreference$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - try { - api.resetMinMaxZoomPreference(); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMinZoomPreference$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMinZoomPreference was null.'); - final List args = (message as List?)!; - final double? arg_minZoomPreference = (args[0] as double?); - assert(arg_minZoomPreference != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMinZoomPreference was null, expected non-null double.'); - try { - api.setMinZoomPreference(arg_minZoomPreference!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMaxZoomPreference$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMaxZoomPreference was null.'); - final List args = (message as List?)!; - final double? arg_maxZoomPreference = (args[0] as double?); - assert(arg_maxZoomPreference != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMaxZoomPreference was null, expected non-null double.'); - try { - api.setMaxZoomPreference(arg_maxZoomPreference!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMyLocationButtonEnabled$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMyLocationButtonEnabled was null.'); - final List args = (message as List?)!; - final bool? arg_enabled = (args[0] as bool?); - assert(arg_enabled != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMyLocationButtonEnabled was null, expected non-null bool.'); - try { - api.setMyLocationButtonEnabled(arg_enabled!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setConsumeMyLocationButtonClickEventsEnabled$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setConsumeMyLocationButtonClickEventsEnabled was null.'); - final List args = (message as List?)!; - final bool? arg_enabled = (args[0] as bool?); - assert(arg_enabled != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setConsumeMyLocationButtonClickEventsEnabled was null, expected non-null bool.'); - try { - api.setConsumeMyLocationButtonClickEventsEnabled(arg_enabled!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setZoomGesturesEnabled$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setZoomGesturesEnabled was null.'); - final List args = (message as List?)!; - final bool? arg_enabled = (args[0] as bool?); - assert(arg_enabled != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setZoomGesturesEnabled was null, expected non-null bool.'); - try { - api.setZoomGesturesEnabled(arg_enabled!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setZoomControlsEnabled$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setZoomControlsEnabled was null.'); - final List args = (message as List?)!; - final bool? arg_enabled = (args[0] as bool?); - assert(arg_enabled != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setZoomControlsEnabled was null, expected non-null bool.'); - try { - api.setZoomControlsEnabled(arg_enabled!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setCompassEnabled$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setCompassEnabled was null.'); - final List args = (message as List?)!; - final bool? arg_enabled = (args[0] as bool?); - assert(arg_enabled != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setCompassEnabled was null, expected non-null bool.'); - try { - api.setCompassEnabled(arg_enabled!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setRotateGesturesEnabled$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setRotateGesturesEnabled was null.'); - final List args = (message as List?)!; - final bool? arg_enabled = (args[0] as bool?); - assert(arg_enabled != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setRotateGesturesEnabled was null, expected non-null bool.'); - try { - api.setRotateGesturesEnabled(arg_enabled!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setScrollGesturesEnabled$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setScrollGesturesEnabled was null.'); - final List args = (message as List?)!; - final bool? arg_enabled = (args[0] as bool?); - assert(arg_enabled != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setScrollGesturesEnabled was null, expected non-null bool.'); - try { - api.setScrollGesturesEnabled(arg_enabled!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setScrollGesturesDuringRotateOrZoomEnabled$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setScrollGesturesDuringRotateOrZoomEnabled was null.'); - final List args = (message as List?)!; - final bool? arg_enabled = (args[0] as bool?); - assert(arg_enabled != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setScrollGesturesDuringRotateOrZoomEnabled was null, expected non-null bool.'); - try { - api.setScrollGesturesDuringRotateOrZoomEnabled(arg_enabled!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTiltGesturesEnabled$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTiltGesturesEnabled was null.'); - final List args = (message as List?)!; - final bool? arg_enabled = (args[0] as bool?); - assert(arg_enabled != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTiltGesturesEnabled was null, expected non-null bool.'); - try { - api.setTiltGesturesEnabled(arg_enabled!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapToolbarEnabled$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapToolbarEnabled was null.'); - final List args = (message as List?)!; - final bool? arg_enabled = (args[0] as bool?); - assert(arg_enabled != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapToolbarEnabled was null, expected non-null bool.'); - try { - api.setMapToolbarEnabled(arg_enabled!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficEnabled$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficEnabled was null.'); - final List args = (message as List?)!; - final bool? arg_enabled = (args[0] as bool?); - assert(arg_enabled != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficEnabled was null, expected non-null bool.'); - try { - api.setTrafficEnabled(arg_enabled!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficPromptsEnabled$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficPromptsEnabled was null.'); - final List args = (message as List?)!; - final bool? arg_enabled = (args[0] as bool?); - assert(arg_enabled != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficPromptsEnabled was null, expected non-null bool.'); - try { - api.setTrafficPromptsEnabled(arg_enabled!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficIncidentCardsEnabled$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficIncidentCardsEnabled was null.'); - final List args = (message as List?)!; - final bool? arg_enabled = (args[0] as bool?); - assert(arg_enabled != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficIncidentCardsEnabled was null, expected non-null bool.'); - try { - api.setTrafficIncidentCardsEnabled(arg_enabled!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setNavigationTripProgressBarEnabled$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setNavigationTripProgressBarEnabled was null.'); - final List args = (message as List?)!; - final bool? arg_enabled = (args[0] as bool?); - assert(arg_enabled != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setNavigationTripProgressBarEnabled was null, expected non-null bool.'); - try { - api.setNavigationTripProgressBarEnabled(arg_enabled!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setSpeedLimitIconEnabled$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setSpeedLimitIconEnabled was null.'); - final List args = (message as List?)!; - final bool? arg_enabled = (args[0] as bool?); - assert(arg_enabled != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setSpeedLimitIconEnabled was null, expected non-null bool.'); - try { - api.setSpeedLimitIconEnabled(arg_enabled!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setSpeedometerEnabled$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setSpeedometerEnabled was null.'); - final List args = (message as List?)!; - final bool? arg_enabled = (args[0] as bool?); - assert(arg_enabled != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setSpeedometerEnabled was null, expected non-null bool.'); - try { - api.setSpeedometerEnabled(arg_enabled!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setNavigationUIEnabled$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setNavigationUIEnabled was null.'); - final List args = (message as List?)!; - final bool? arg_enabled = (args[0] as bool?); - assert(arg_enabled != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setNavigationUIEnabled was null, expected non-null bool.'); - try { - api.setNavigationUIEnabled(arg_enabled!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isMyLocationButtonEnabled$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - try { - final bool output = api.isMyLocationButtonEnabled(); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isConsumeMyLocationButtonClickEventsEnabled$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - try { - final bool output = api.isConsumeMyLocationButtonClickEventsEnabled(); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isZoomGesturesEnabled$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - try { - final bool output = api.isZoomGesturesEnabled(); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isZoomControlsEnabled$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - try { - final bool output = api.isZoomControlsEnabled(); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isCompassEnabled$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - try { - final bool output = api.isCompassEnabled(); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isRotateGesturesEnabled$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - try { - final bool output = api.isRotateGesturesEnabled(); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isScrollGesturesEnabled$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - try { - final bool output = api.isScrollGesturesEnabled(); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isScrollGesturesEnabledDuringRotateOrZoom$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - try { - final bool output = api.isScrollGesturesEnabledDuringRotateOrZoom(); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTiltGesturesEnabled$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - try { - final bool output = api.isTiltGesturesEnabled(); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isMapToolbarEnabled$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - try { - final bool output = api.isMapToolbarEnabled(); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTrafficEnabled$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - try { - final bool output = api.isTrafficEnabled(); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTrafficPromptsEnabled$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - try { - final bool output = api.isTrafficPromptsEnabled(); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTrafficIncidentCardsEnabled$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - try { - final bool output = api.isTrafficIncidentCardsEnabled(); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isNavigationTripProgressBarEnabled$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - try { - final bool output = api.isNavigationTripProgressBarEnabled(); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isSpeedLimitIconEnabled$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - try { - final bool output = api.isSpeedLimitIconEnabled(); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isSpeedometerEnabled$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - try { - final bool output = api.isSpeedometerEnabled(); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isNavigationUIEnabled$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - try { - final bool output = api.isNavigationUIEnabled(); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isIndoorEnabled$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - try { - final bool output = api.isIndoorEnabled(); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setIndoorEnabled$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setIndoorEnabled was null.'); - final List args = (message as List?)!; - final bool? arg_enabled = (args[0] as bool?); - assert(arg_enabled != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setIndoorEnabled was null, expected non-null bool.'); - try { - api.setIndoorEnabled(arg_enabled!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getFocusedIndoorBuilding$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - try { - final IndoorBuildingDto? output = api.getFocusedIndoorBuilding(); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.activateIndoorLevel$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.activateIndoorLevel was null.'); - final List args = (message as List?)!; - final int? arg_levelIndex = (args[0] as int?); - assert(arg_levelIndex != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.activateIndoorLevel was null, expected non-null int.'); - try { - api.activateIndoorLevel(arg_levelIndex!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.showRouteOverview$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - try { - api.showRouteOverview(); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMarkers$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - try { - final List output = api.getMarkers(); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addMarkers$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addMarkers was null.'); - final List args = (message as List?)!; - final List? arg_markers = (args[0] as List?)?.cast(); - assert(arg_markers != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addMarkers was null, expected non-null List.'); - try { - final List output = api.addMarkers(arg_markers!); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updateMarkers$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updateMarkers was null.'); - final List args = (message as List?)!; - final List? arg_markers = (args[0] as List?)?.cast(); - assert(arg_markers != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updateMarkers was null, expected non-null List.'); - try { - final List output = api.updateMarkers(arg_markers!); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removeMarkers$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removeMarkers was null.'); - final List args = (message as List?)!; - final List? arg_markers = (args[0] as List?)?.cast(); - assert(arg_markers != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removeMarkers was null, expected non-null List.'); - try { - api.removeMarkers(arg_markers!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearMarkers$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - try { - api.clearMarkers(); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clear$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - try { - api.clear(); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getPolygons$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - try { - final List output = api.getPolygons(); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addPolygons$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addPolygons was null.'); - final List args = (message as List?)!; - final List? arg_polygons = (args[0] as List?)?.cast(); - assert(arg_polygons != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addPolygons was null, expected non-null List.'); - try { - final List output = api.addPolygons(arg_polygons!); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updatePolygons$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updatePolygons was null.'); - final List args = (message as List?)!; - final List? arg_polygons = (args[0] as List?)?.cast(); - assert(arg_polygons != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updatePolygons was null, expected non-null List.'); - try { - final List output = api.updatePolygons(arg_polygons!); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removePolygons$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removePolygons was null.'); - final List args = (message as List?)!; - final List? arg_polygons = (args[0] as List?)?.cast(); - assert(arg_polygons != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removePolygons was null, expected non-null List.'); - try { - api.removePolygons(arg_polygons!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearPolygons$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - try { - api.clearPolygons(); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getPolylines$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - try { - final List output = api.getPolylines(); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addPolylines$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addPolylines was null.'); - final List args = (message as List?)!; - final List? arg_polylines = (args[0] as List?)?.cast(); - assert(arg_polylines != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addPolylines was null, expected non-null List.'); - try { - final List output = api.addPolylines(arg_polylines!); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updatePolylines$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updatePolylines was null.'); - final List args = (message as List?)!; - final List? arg_polylines = (args[0] as List?)?.cast(); - assert(arg_polylines != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updatePolylines was null, expected non-null List.'); - try { - final List output = api.updatePolylines(arg_polylines!); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removePolylines$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removePolylines was null.'); - final List args = (message as List?)!; - final List? arg_polylines = (args[0] as List?)?.cast(); - assert(arg_polylines != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removePolylines was null, expected non-null List.'); - try { - api.removePolylines(arg_polylines!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearPolylines$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - try { - api.clearPolylines(); + } +} + +abstract class TestNavigationSessionApi { + static TestDefaultBinaryMessengerBinding? get _testBinaryMessengerBinding => + TestDefaultBinaryMessengerBinding.instance; + static const MessageCodec pigeonChannelCodec = _PigeonCodec(); + + Future createNavigationSession( + bool abnormalTerminationReportingEnabled, + TaskRemovedBehaviorDto behavior, + ); + + bool isInitialized(); + + void cleanup(bool resetSession); + + Future showTermsAndConditionsDialog( + String title, + String companyName, + bool shouldOnlyShowDriverAwarenessDisclaimer, + TermsAndConditionsUIParamsDto? uiParams, + ); + + bool areTermsAccepted(); + + void resetTermsAccepted(); + + String getNavSDKVersion(); + + bool isGuidanceRunning(); + + void startGuidance(); + + void stopGuidance(); + + Future setDestinations(DestinationsDto destinations); + + void clearDestinations(); + + Future continueToNextDestination(); + + NavigationTimeAndDistanceDto getCurrentTimeAndDistance(); + + void setAudioGuidance(NavigationAudioGuidanceSettingsDto settings); + + void setSpeedAlertOptions(SpeedAlertOptionsDto options); + + List getRouteSegments(); + + List getTraveledRoute(); + + RouteSegmentDto? getCurrentRouteSegment(); + + void setUserLocation(LatLngDto location); + + void removeUserLocation(); + + void simulateLocationsAlongExistingRoute(); + + void simulateLocationsAlongExistingRouteWithOptions( + SimulationOptionsDto options, + ); + + Future simulateLocationsAlongNewRoute( + List waypoints, + ); + + Future simulateLocationsAlongNewRouteWithRoutingOptions( + List waypoints, + RoutingOptionsDto routingOptions, + ); + + Future + simulateLocationsAlongNewRouteWithRoutingAndSimulationOptions( + List waypoints, + RoutingOptionsDto routingOptions, + SimulationOptionsDto simulationOptions, + ); + + void pauseSimulation(); + + void resumeSimulation(); + + /// iOS-only method. + void allowBackgroundLocationUpdates(bool allow); + + void enableRoadSnappedLocationUpdates(); + + void disableRoadSnappedLocationUpdates(); + + void enableTurnByTurnNavigationEvents( + int? numNextStepsToPreview, + StepImageGenerationOptionsDto? options, + ); + + void disableTurnByTurnNavigationEvents(); + + void registerRemainingTimeOrDistanceChangedListener( + int remainingTimeThresholdSeconds, + int remainingDistanceThresholdMeters, + ); + + static void setUp( + TestNavigationSessionApi? api, { + BinaryMessenger? binaryMessenger, + String messageChannelSuffix = '', + }) { + messageChannelSuffix = messageChannelSuffix.isNotEmpty + ? '.$messageChannelSuffix' + : ''; + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.createNavigationSession$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< + Object? + >(pigeonVar_channel, (Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.createNavigationSession was null.', + ); + final List args = (message as List?)!; + final bool? arg_abnormalTerminationReportingEnabled = + (args[0] as bool?); + assert( + arg_abnormalTerminationReportingEnabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.createNavigationSession was null, expected non-null bool.', + ); + final TaskRemovedBehaviorDto? arg_behavior = + (args[1] as TaskRemovedBehaviorDto?); + assert( + arg_behavior != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.createNavigationSession was null, expected non-null TaskRemovedBehaviorDto.', + ); + try { + 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())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getCircles$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - try { - final List output = api.getCircles(); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addCircles$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addCircles was null.'); - final List args = (message as List?)!; - final List? arg_circles = (args[0] as List?)?.cast(); - assert(arg_circles != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addCircles was null, expected non-null List.'); - try { - final List output = api.addCircles(arg_circles!); - return [output]; - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updateCircles$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updateCircles was null.'); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.isInitialized$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + try { + final bool output = api.isInitialized(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.cleanup$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.cleanup was null.', + ); + final List args = (message as List?)!; + final bool? arg_resetSession = (args[0] as bool?); + assert( + arg_resetSession != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.cleanup was null, expected non-null bool.', + ); + try { + api.cleanup(arg_resetSession!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.showTermsAndConditionsDialog$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< + Object? + >(pigeonVar_channel, (Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.showTermsAndConditionsDialog was null.', + ); final List args = (message as List?)!; - final List? arg_circles = (args[0] as List?)?.cast(); - assert(arg_circles != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updateCircles was null, expected non-null List.'); - try { - final List output = api.updateCircles(arg_circles!); + final String? arg_title = (args[0] as String?); + assert( + arg_title != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.showTermsAndConditionsDialog was null, expected non-null String.', + ); + final String? arg_companyName = (args[1] as String?); + assert( + arg_companyName != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.showTermsAndConditionsDialog was null, expected non-null String.', + ); + final bool? arg_shouldOnlyShowDriverAwarenessDisclaimer = + (args[2] as bool?); + assert( + arg_shouldOnlyShowDriverAwarenessDisclaimer != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.showTermsAndConditionsDialog was null, expected non-null bool.', + ); + final TermsAndConditionsUIParamsDto? arg_uiParams = + (args[3] as TermsAndConditionsUIParamsDto?); + try { + final bool output = await api.showTermsAndConditionsDialog( + arg_title!, + arg_companyName!, + arg_shouldOnlyShowDriverAwarenessDisclaimer!, + arg_uiParams, + ); return [output]; } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removeCircles$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removeCircles was null.'); - final List args = (message as List?)!; - final List? arg_circles = (args[0] as List?)?.cast(); - assert(arg_circles != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removeCircles was null, expected non-null List.'); - try { - api.removeCircles(arg_circles!); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearCircles$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - try { - api.clearCircles(); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.enableOnCameraChangedEvents$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - try { - api.enableOnCameraChangedEvents(); - return wrapResponse(empty: true); - } on PlatformException catch (e) { - return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isAutoScreenAvailable$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - try { - final bool output = api.isAutoScreenAvailable(); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.areTermsAccepted$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + try { + final bool output = api.areTermsAccepted(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.resetTermsAccepted$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + try { + api.resetTermsAccepted(); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getNavSDKVersion$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + try { + final String output = api.getNavSDKVersion(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.isGuidanceRunning$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + try { + final bool output = api.isGuidanceRunning(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.startGuidance$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + try { + api.startGuidance(); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.stopGuidance$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + try { + api.stopGuidance(); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setDestinations$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setDestinations was null.', + ); + final List args = (message as List?)!; + final DestinationsDto? arg_destinations = + (args[0] as DestinationsDto?); + assert( + arg_destinations != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setDestinations was null, expected non-null DestinationsDto.', + ); + try { + final RouteStatusDto output = await api.setDestinations( + arg_destinations!, + ); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.clearDestinations$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + try { + api.clearDestinations(); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.continueToNextDestination$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + try { + final ContinueToNextDestinationResponseDto output = await api + .continueToNextDestination(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getCurrentTimeAndDistance$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + try { + final NavigationTimeAndDistanceDto output = api + .getCurrentTimeAndDistance(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setAudioGuidance$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setAudioGuidance was null.', + ); + final List args = (message as List?)!; + final NavigationAudioGuidanceSettingsDto? arg_settings = + (args[0] as NavigationAudioGuidanceSettingsDto?); + assert( + arg_settings != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setAudioGuidance was null, expected non-null NavigationAudioGuidanceSettingsDto.', + ); + try { + api.setAudioGuidance(arg_settings!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setSpeedAlertOptions$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setSpeedAlertOptions was null.', + ); + final List args = (message as List?)!; + final SpeedAlertOptionsDto? arg_options = + (args[0] as SpeedAlertOptionsDto?); + assert( + arg_options != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setSpeedAlertOptions was null, expected non-null SpeedAlertOptionsDto.', + ); + try { + api.setSpeedAlertOptions(arg_options!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getRouteSegments$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + try { + final List output = api.getRouteSegments(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getTraveledRoute$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + try { + final List output = api.getTraveledRoute(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getCurrentRouteSegment$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + try { + final RouteSegmentDto? output = api.getCurrentRouteSegment(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setUserLocation$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setUserLocation was null.', + ); + final List args = (message as List?)!; + final LatLngDto? arg_location = (args[0] as LatLngDto?); + assert( + arg_location != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setUserLocation was null, expected non-null LatLngDto.', + ); + try { + api.setUserLocation(arg_location!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.removeUserLocation$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + try { + api.removeUserLocation(); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongExistingRoute$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + try { + api.simulateLocationsAlongExistingRoute(); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongExistingRouteWithOptions$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongExistingRouteWithOptions was null.', + ); + final List args = (message as List?)!; + final SimulationOptionsDto? arg_options = + (args[0] as SimulationOptionsDto?); + assert( + arg_options != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongExistingRouteWithOptions was null, expected non-null SimulationOptionsDto.', + ); + try { + api.simulateLocationsAlongExistingRouteWithOptions( + arg_options!, + ); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRoute$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRoute was null.', + ); + final List args = (message as List?)!; + final List? arg_waypoints = + (args[0] as List?)?.cast(); + assert( + arg_waypoints != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRoute was null, expected non-null List.', + ); + try { + final RouteStatusDto output = await api + .simulateLocationsAlongNewRoute(arg_waypoints!); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRouteWithRoutingOptions$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< + Object? + >(pigeonVar_channel, (Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRouteWithRoutingOptions was null.', + ); + final List args = (message as List?)!; + final List? arg_waypoints = + (args[0] as List?)?.cast(); + assert( + arg_waypoints != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRouteWithRoutingOptions was null, expected non-null List.', + ); + final RoutingOptionsDto? arg_routingOptions = + (args[1] as RoutingOptionsDto?); + assert( + arg_routingOptions != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRouteWithRoutingOptions was null, expected non-null RoutingOptionsDto.', + ); + try { + final RouteStatusDto output = await api + .simulateLocationsAlongNewRouteWithRoutingOptions( + arg_waypoints!, + arg_routingOptions!, + ); return [output]; } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setPadding$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setPadding was null.'); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRouteWithRoutingAndSimulationOptions$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< + Object? + >(pigeonVar_channel, (Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRouteWithRoutingAndSimulationOptions was null.', + ); + final List args = (message as List?)!; + final List? arg_waypoints = + (args[0] as List?)?.cast(); + assert( + arg_waypoints != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRouteWithRoutingAndSimulationOptions was null, expected non-null List.', + ); + final RoutingOptionsDto? arg_routingOptions = + (args[1] as RoutingOptionsDto?); + assert( + arg_routingOptions != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRouteWithRoutingAndSimulationOptions was null, expected non-null RoutingOptionsDto.', + ); + final SimulationOptionsDto? arg_simulationOptions = + (args[2] as SimulationOptionsDto?); + assert( + arg_simulationOptions != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRouteWithRoutingAndSimulationOptions was null, expected non-null SimulationOptionsDto.', + ); + try { + final RouteStatusDto output = await api + .simulateLocationsAlongNewRouteWithRoutingAndSimulationOptions( + arg_waypoints!, + arg_routingOptions!, + arg_simulationOptions!, + ); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.pauseSimulation$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + try { + api.pauseSimulation(); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.resumeSimulation$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + try { + api.resumeSimulation(); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.allowBackgroundLocationUpdates$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.allowBackgroundLocationUpdates was null.', + ); + final List args = (message as List?)!; + final bool? arg_allow = (args[0] as bool?); + assert( + arg_allow != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.allowBackgroundLocationUpdates was null, expected non-null bool.', + ); + try { + api.allowBackgroundLocationUpdates(arg_allow!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.enableRoadSnappedLocationUpdates$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + try { + api.enableRoadSnappedLocationUpdates(); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.disableRoadSnappedLocationUpdates$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + try { + api.disableRoadSnappedLocationUpdates(); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.enableTurnByTurnNavigationEvents$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.enableTurnByTurnNavigationEvents was null.', + ); + final List args = (message as List?)!; + final int? arg_numNextStepsToPreview = (args[0] as int?); + final StepImageGenerationOptionsDto? arg_options = + (args[1] as StepImageGenerationOptionsDto?); + try { + api.enableTurnByTurnNavigationEvents( + arg_numNextStepsToPreview, + arg_options, + ); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.disableTurnByTurnNavigationEvents$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + try { + api.disableTurnByTurnNavigationEvents(); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.registerRemainingTimeOrDistanceChangedListener$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< + Object? + >(pigeonVar_channel, (Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.registerRemainingTimeOrDistanceChangedListener was null.', + ); final List args = (message as List?)!; - final MapPaddingDto? arg_padding = (args[0] as MapPaddingDto?); - assert(arg_padding != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setPadding was null, expected non-null MapPaddingDto.'); - try { - api.setPadding(arg_padding!); + final int? arg_remainingTimeThresholdSeconds = (args[0] as int?); + assert( + arg_remainingTimeThresholdSeconds != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.registerRemainingTimeOrDistanceChangedListener was null, expected non-null int.', + ); + final int? arg_remainingDistanceThresholdMeters = (args[1] as int?); + assert( + arg_remainingDistanceThresholdMeters != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.registerRemainingTimeOrDistanceChangedListener was null, expected non-null int.', + ); + try { + api.registerRemainingTimeOrDistanceChangedListener( + arg_remainingTimeThresholdSeconds!, + arg_remainingDistanceThresholdMeters!, + ); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getPadding$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + } +} + +abstract class TestAutoMapViewApi { + static TestDefaultBinaryMessengerBinding? get _testBinaryMessengerBinding => + TestDefaultBinaryMessengerBinding.instance; + static const MessageCodec pigeonChannelCodec = _PigeonCodec(); + + /// Sets the map options to be used for Android Auto and CarPlay views. + /// Should be called before the Auto/CarPlay screen is created. + /// This allows customization of mapId and basic map settings. + void setAutoMapOptions(AutoMapOptionsDto mapOptions); + + bool isMyLocationEnabled(); + + void setMyLocationEnabled(bool enabled); + + LatLngDto? getMyLocation(); + + MapTypeDto getMapType(); + + void setMapType(MapTypeDto mapType); + + void setMapStyle(String styleJson); + + CameraPositionDto getCameraPosition(); + + LatLngBoundsDto getVisibleRegion(); + + void followMyLocation(CameraPerspectiveDto perspective, double? zoomLevel); + + Future animateCameraToCameraPosition( + CameraPositionDto cameraPosition, + int? duration, + ); + + Future animateCameraToLatLng(LatLngDto point, int? duration); + + Future animateCameraToLatLngBounds( + LatLngBoundsDto bounds, + double padding, + int? duration, + ); + + Future animateCameraToLatLngZoom( + LatLngDto point, + double zoom, + int? duration, + ); + + Future animateCameraByScroll( + double scrollByDx, + double scrollByDy, + int? duration, + ); + + Future animateCameraByZoom( + double zoomBy, + double? focusDx, + double? focusDy, + int? duration, + ); + + Future animateCameraToZoom(double zoom, int? duration); + + void moveCameraToCameraPosition(CameraPositionDto cameraPosition); + + void moveCameraToLatLng(LatLngDto point); + + void moveCameraToLatLngBounds(LatLngBoundsDto bounds, double padding); + + void moveCameraToLatLngZoom(LatLngDto point, double zoom); + + void moveCameraByScroll(double scrollByDx, double scrollByDy); + + void moveCameraByZoom(double zoomBy, double? focusDx, double? focusDy); + + void moveCameraToZoom(double zoom); + + double getMinZoomPreference(); + + double getMaxZoomPreference(); + + void resetMinMaxZoomPreference(); + + void setMinZoomPreference(double minZoomPreference); + + void setMaxZoomPreference(double maxZoomPreference); + + void setMyLocationButtonEnabled(bool enabled); + + void setConsumeMyLocationButtonClickEventsEnabled(bool enabled); + + void setZoomGesturesEnabled(bool enabled); + + void setZoomControlsEnabled(bool enabled); + + void setCompassEnabled(bool enabled); + + void setRotateGesturesEnabled(bool enabled); + + void setScrollGesturesEnabled(bool enabled); + + void setScrollGesturesDuringRotateOrZoomEnabled(bool enabled); + + void setTiltGesturesEnabled(bool enabled); + + void setMapToolbarEnabled(bool enabled); + + void setTrafficEnabled(bool enabled); + + void setTrafficPromptsEnabled(bool enabled); + + void setTrafficIncidentCardsEnabled(bool enabled); + + void setNavigationTripProgressBarEnabled(bool enabled); + + void setSpeedLimitIconEnabled(bool enabled); + + void setSpeedometerEnabled(bool enabled); + + void setNavigationUIEnabled(bool enabled); + + bool isMyLocationButtonEnabled(); + + bool isConsumeMyLocationButtonClickEventsEnabled(); + + bool isZoomGesturesEnabled(); + + bool isZoomControlsEnabled(); + + bool isCompassEnabled(); + + bool isRotateGesturesEnabled(); + + bool isScrollGesturesEnabled(); + + bool isScrollGesturesEnabledDuringRotateOrZoom(); + + bool isTiltGesturesEnabled(); + + bool isMapToolbarEnabled(); + + bool isTrafficEnabled(); + + bool isTrafficPromptsEnabled(); + + bool isTrafficIncidentCardsEnabled(); + + bool isNavigationTripProgressBarEnabled(); + + bool isSpeedLimitIconEnabled(); + + bool isSpeedometerEnabled(); + + bool isNavigationUIEnabled(); + + bool isIndoorEnabled(); + + void setIndoorEnabled(bool enabled); + + IndoorBuildingDto? getFocusedIndoorBuilding(); + + void activateIndoorLevel(int levelIndex); + + void showRouteOverview(); + + List getMarkers(); + + List addMarkers(List markers); + + List updateMarkers(List markers); + + void removeMarkers(List markers); + + void clearMarkers(); + + void clear(); + + List getPolygons(); + + List addPolygons(List polygons); + + List updatePolygons(List polygons); + + void removePolygons(List polygons); + + void clearPolygons(); + + List getPolylines(); + + List addPolylines(List polylines); + + List updatePolylines(List polylines); + + void removePolylines(List polylines); + + void clearPolylines(); + + List getCircles(); + + List addCircles(List circles); + + List updateCircles(List circles); + + void removeCircles(List circles); + + void clearCircles(); + + void enableOnCameraChangedEvents(); + + bool isAutoScreenAvailable(); + + void setPadding(MapPaddingDto padding); + + MapPaddingDto getPadding(); + + MapColorSchemeDto getMapColorScheme(); + + void setMapColorScheme(MapColorSchemeDto mapColorScheme); + + NavigationForceNightModeDto getForceNightMode(); + + void setForceNightMode(NavigationForceNightModeDto forceNightMode); + + void sendCustomNavigationAutoEvent(String event, Object data); + + static void setUp( + TestAutoMapViewApi? api, { + BinaryMessenger? binaryMessenger, + String messageChannelSuffix = '', + }) { + messageChannelSuffix = messageChannelSuffix.isNotEmpty + ? '.$messageChannelSuffix' + : ''; + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setAutoMapOptions$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setAutoMapOptions was null.', + ); + final List args = (message as List?)!; + final AutoMapOptionsDto? arg_mapOptions = + (args[0] as AutoMapOptionsDto?); + assert( + arg_mapOptions != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setAutoMapOptions was null, expected non-null AutoMapOptionsDto.', + ); + try { + api.setAutoMapOptions(arg_mapOptions!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isMyLocationEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + try { + final bool output = api.isMyLocationEnabled(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMyLocationEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMyLocationEnabled was null.', + ); + final List args = (message as List?)!; + final bool? arg_enabled = (args[0] as bool?); + assert( + arg_enabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMyLocationEnabled was null, expected non-null bool.', + ); + try { + api.setMyLocationEnabled(arg_enabled!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMyLocation$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + try { + final LatLngDto? output = api.getMyLocation(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMapType$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + try { + final MapTypeDto output = api.getMapType(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapType$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapType was null.', + ); + final List args = (message as List?)!; + final MapTypeDto? arg_mapType = (args[0] as MapTypeDto?); + assert( + arg_mapType != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapType was null, expected non-null MapTypeDto.', + ); + try { + api.setMapType(arg_mapType!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapStyle$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapStyle was null.', + ); + final List args = (message as List?)!; + final String? arg_styleJson = (args[0] as String?); + assert( + arg_styleJson != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapStyle was null, expected non-null String.', + ); + try { + api.setMapStyle(arg_styleJson!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getCameraPosition$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + try { + final CameraPositionDto output = api.getCameraPosition(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getVisibleRegion$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + try { + final LatLngBoundsDto output = api.getVisibleRegion(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.followMyLocation$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.followMyLocation was null.', + ); + final List args = (message as List?)!; + final CameraPerspectiveDto? arg_perspective = + (args[0] as CameraPerspectiveDto?); + assert( + arg_perspective != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.followMyLocation was null, expected non-null CameraPerspectiveDto.', + ); + final double? arg_zoomLevel = (args[1] as double?); + try { + api.followMyLocation(arg_perspective!, arg_zoomLevel); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToCameraPosition$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToCameraPosition was null.', + ); + final List args = (message as List?)!; + final CameraPositionDto? arg_cameraPosition = + (args[0] as CameraPositionDto?); + assert( + arg_cameraPosition != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToCameraPosition was null, expected non-null CameraPositionDto.', + ); + final int? arg_duration = (args[1] as int?); + try { + final bool output = await api.animateCameraToCameraPosition( + arg_cameraPosition!, + arg_duration, + ); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLng$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLng was null.', + ); + final List args = (message as List?)!; + final LatLngDto? arg_point = (args[0] as LatLngDto?); + assert( + arg_point != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLng was null, expected non-null LatLngDto.', + ); + final int? arg_duration = (args[1] as int?); + try { + final bool output = await api.animateCameraToLatLng( + arg_point!, + arg_duration, + ); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLngBounds$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< + Object? + >(pigeonVar_channel, (Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLngBounds was null.', + ); + final List args = (message as List?)!; + final LatLngBoundsDto? arg_bounds = (args[0] as LatLngBoundsDto?); + assert( + arg_bounds != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLngBounds was null, expected non-null LatLngBoundsDto.', + ); + final double? arg_padding = (args[1] as double?); + assert( + arg_padding != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLngBounds was null, expected non-null double.', + ); + final int? arg_duration = (args[2] as int?); try { - final MapPaddingDto output = api.getPadding(); + final bool output = await api.animateCameraToLatLngBounds( + arg_bounds!, + arg_padding!, + arg_duration, + ); return [output]; } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } } { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMapColorScheme$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLngZoom$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< + Object? + >(pigeonVar_channel, (Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLngZoom was null.', + ); + final List args = (message as List?)!; + final LatLngDto? arg_point = (args[0] as LatLngDto?); + assert( + arg_point != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLngZoom was null, expected non-null LatLngDto.', + ); + final double? arg_zoom = (args[1] as double?); + assert( + arg_zoom != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLngZoom was null, expected non-null double.', + ); + final int? arg_duration = (args[2] as int?); try { - final MapColorSchemeDto output = api.getMapColorScheme(); + final bool output = await api.animateCameraToLatLngZoom( + arg_point!, + arg_zoom!, + arg_duration, + ); return [output]; } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } } { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapColorScheme$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraByScroll$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapColorScheme was null.'); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< + Object? + >(pigeonVar_channel, (Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraByScroll was null.', + ); + final List args = (message as List?)!; + final double? arg_scrollByDx = (args[0] as double?); + assert( + arg_scrollByDx != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraByScroll was null, expected non-null double.', + ); + final double? arg_scrollByDy = (args[1] as double?); + assert( + arg_scrollByDy != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraByScroll was null, expected non-null double.', + ); + final int? arg_duration = (args[2] as int?); + try { + final bool output = await api.animateCameraByScroll( + arg_scrollByDx!, + arg_scrollByDy!, + arg_duration, + ); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraByZoom$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraByZoom was null.', + ); + final List args = (message as List?)!; + final double? arg_zoomBy = (args[0] as double?); + assert( + arg_zoomBy != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraByZoom was null, expected non-null double.', + ); + final double? arg_focusDx = (args[1] as double?); + final double? arg_focusDy = (args[2] as double?); + final int? arg_duration = (args[3] as int?); + try { + final bool output = await api.animateCameraByZoom( + arg_zoomBy!, + arg_focusDx, + arg_focusDy, + arg_duration, + ); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToZoom$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToZoom was null.', + ); + final List args = (message as List?)!; + final double? arg_zoom = (args[0] as double?); + assert( + arg_zoom != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToZoom was null, expected non-null double.', + ); + final int? arg_duration = (args[1] as int?); + try { + final bool output = await api.animateCameraToZoom( + arg_zoom!, + arg_duration, + ); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToCameraPosition$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToCameraPosition was null.', + ); + final List args = (message as List?)!; + final CameraPositionDto? arg_cameraPosition = + (args[0] as CameraPositionDto?); + assert( + arg_cameraPosition != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToCameraPosition was null, expected non-null CameraPositionDto.', + ); + try { + api.moveCameraToCameraPosition(arg_cameraPosition!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLng$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLng was null.', + ); + final List args = (message as List?)!; + final LatLngDto? arg_point = (args[0] as LatLngDto?); + assert( + arg_point != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLng was null, expected non-null LatLngDto.', + ); + try { + api.moveCameraToLatLng(arg_point!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLngBounds$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< + Object? + >(pigeonVar_channel, (Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLngBounds was null.', + ); final List args = (message as List?)!; - final MapColorSchemeDto? arg_mapColorScheme = (args[0] as MapColorSchemeDto?); - assert(arg_mapColorScheme != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapColorScheme was null, expected non-null MapColorSchemeDto.'); + final LatLngBoundsDto? arg_bounds = (args[0] as LatLngBoundsDto?); + assert( + arg_bounds != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLngBounds was null, expected non-null LatLngBoundsDto.', + ); + final double? arg_padding = (args[1] as double?); + assert( + arg_padding != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLngBounds was null, expected non-null double.', + ); try { - api.setMapColorScheme(arg_mapColorScheme!); + api.moveCameraToLatLngBounds(arg_bounds!, arg_padding!); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } } { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getForceNightMode$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLngZoom$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< + Object? + >(pigeonVar_channel, (Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLngZoom was null.', + ); + final List args = (message as List?)!; + final LatLngDto? arg_point = (args[0] as LatLngDto?); + assert( + arg_point != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLngZoom was null, expected non-null LatLngDto.', + ); + final double? arg_zoom = (args[1] as double?); + assert( + arg_zoom != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLngZoom was null, expected non-null double.', + ); try { - final NavigationForceNightModeDto output = api.getForceNightMode(); - return [output]; + api.moveCameraToLatLngZoom(arg_point!, arg_zoom!); + return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } } { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setForceNightMode$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraByScroll$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setForceNightMode was null.'); + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< + Object? + >(pigeonVar_channel, (Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraByScroll was null.', + ); final List args = (message as List?)!; - final NavigationForceNightModeDto? arg_forceNightMode = (args[0] as NavigationForceNightModeDto?); - assert(arg_forceNightMode != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setForceNightMode was null, expected non-null NavigationForceNightModeDto.'); + final double? arg_scrollByDx = (args[0] as double?); + assert( + arg_scrollByDx != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraByScroll was null, expected non-null double.', + ); + final double? arg_scrollByDy = (args[1] as double?); + assert( + arg_scrollByDy != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraByScroll was null, expected non-null double.', + ); try { - api.setForceNightMode(arg_forceNightMode!); + api.moveCameraByScroll(arg_scrollByDx!, arg_scrollByDy!); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); - } - }); - } - } - { - final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.sendCustomNavigationAutoEvent$messageChannelSuffix', pigeonChannelCodec, - binaryMessenger: binaryMessenger); - if (api == null) { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, null); - } else { - _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.sendCustomNavigationAutoEvent was null.'); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraByZoom$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraByZoom was null.', + ); + final List args = (message as List?)!; + final double? arg_zoomBy = (args[0] as double?); + assert( + arg_zoomBy != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraByZoom was null, expected non-null double.', + ); + final double? arg_focusDx = (args[1] as double?); + final double? arg_focusDy = (args[2] as double?); + try { + api.moveCameraByZoom(arg_zoomBy!, arg_focusDx, arg_focusDy); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToZoom$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToZoom was null.', + ); + final List args = (message as List?)!; + final double? arg_zoom = (args[0] as double?); + assert( + arg_zoom != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToZoom was null, expected non-null double.', + ); + try { + api.moveCameraToZoom(arg_zoom!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMinZoomPreference$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + try { + final double output = api.getMinZoomPreference(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMaxZoomPreference$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + try { + final double output = api.getMaxZoomPreference(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.resetMinMaxZoomPreference$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + try { + api.resetMinMaxZoomPreference(); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMinZoomPreference$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMinZoomPreference was null.', + ); + final List args = (message as List?)!; + final double? arg_minZoomPreference = (args[0] as double?); + assert( + arg_minZoomPreference != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMinZoomPreference was null, expected non-null double.', + ); + try { + api.setMinZoomPreference(arg_minZoomPreference!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMaxZoomPreference$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMaxZoomPreference was null.', + ); + final List args = (message as List?)!; + final double? arg_maxZoomPreference = (args[0] as double?); + assert( + arg_maxZoomPreference != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMaxZoomPreference was null, expected non-null double.', + ); + try { + api.setMaxZoomPreference(arg_maxZoomPreference!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMyLocationButtonEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMyLocationButtonEnabled was null.', + ); + final List args = (message as List?)!; + final bool? arg_enabled = (args[0] as bool?); + assert( + arg_enabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMyLocationButtonEnabled was null, expected non-null bool.', + ); + try { + api.setMyLocationButtonEnabled(arg_enabled!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setConsumeMyLocationButtonClickEventsEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setConsumeMyLocationButtonClickEventsEnabled was null.', + ); + final List args = (message as List?)!; + final bool? arg_enabled = (args[0] as bool?); + assert( + arg_enabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setConsumeMyLocationButtonClickEventsEnabled was null, expected non-null bool.', + ); + try { + api.setConsumeMyLocationButtonClickEventsEnabled(arg_enabled!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setZoomGesturesEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setZoomGesturesEnabled was null.', + ); + final List args = (message as List?)!; + final bool? arg_enabled = (args[0] as bool?); + assert( + arg_enabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setZoomGesturesEnabled was null, expected non-null bool.', + ); + try { + api.setZoomGesturesEnabled(arg_enabled!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setZoomControlsEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setZoomControlsEnabled was null.', + ); + final List args = (message as List?)!; + final bool? arg_enabled = (args[0] as bool?); + assert( + arg_enabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setZoomControlsEnabled was null, expected non-null bool.', + ); + try { + api.setZoomControlsEnabled(arg_enabled!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setCompassEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setCompassEnabled was null.', + ); + final List args = (message as List?)!; + final bool? arg_enabled = (args[0] as bool?); + assert( + arg_enabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setCompassEnabled was null, expected non-null bool.', + ); + try { + api.setCompassEnabled(arg_enabled!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setRotateGesturesEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setRotateGesturesEnabled was null.', + ); + final List args = (message as List?)!; + final bool? arg_enabled = (args[0] as bool?); + assert( + arg_enabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setRotateGesturesEnabled was null, expected non-null bool.', + ); + try { + api.setRotateGesturesEnabled(arg_enabled!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setScrollGesturesEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setScrollGesturesEnabled was null.', + ); + final List args = (message as List?)!; + final bool? arg_enabled = (args[0] as bool?); + assert( + arg_enabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setScrollGesturesEnabled was null, expected non-null bool.', + ); + try { + api.setScrollGesturesEnabled(arg_enabled!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setScrollGesturesDuringRotateOrZoomEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setScrollGesturesDuringRotateOrZoomEnabled was null.', + ); + final List args = (message as List?)!; + final bool? arg_enabled = (args[0] as bool?); + assert( + arg_enabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setScrollGesturesDuringRotateOrZoomEnabled was null, expected non-null bool.', + ); + try { + api.setScrollGesturesDuringRotateOrZoomEnabled(arg_enabled!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTiltGesturesEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTiltGesturesEnabled was null.', + ); + final List args = (message as List?)!; + final bool? arg_enabled = (args[0] as bool?); + assert( + arg_enabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTiltGesturesEnabled was null, expected non-null bool.', + ); + try { + api.setTiltGesturesEnabled(arg_enabled!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapToolbarEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapToolbarEnabled was null.', + ); + final List args = (message as List?)!; + final bool? arg_enabled = (args[0] as bool?); + assert( + arg_enabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapToolbarEnabled was null, expected non-null bool.', + ); + try { + api.setMapToolbarEnabled(arg_enabled!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficEnabled was null.', + ); + final List args = (message as List?)!; + final bool? arg_enabled = (args[0] as bool?); + assert( + arg_enabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficEnabled was null, expected non-null bool.', + ); + try { + api.setTrafficEnabled(arg_enabled!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficPromptsEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficPromptsEnabled was null.', + ); + final List args = (message as List?)!; + final bool? arg_enabled = (args[0] as bool?); + assert( + arg_enabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficPromptsEnabled was null, expected non-null bool.', + ); + try { + api.setTrafficPromptsEnabled(arg_enabled!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficIncidentCardsEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficIncidentCardsEnabled was null.', + ); + final List args = (message as List?)!; + final bool? arg_enabled = (args[0] as bool?); + assert( + arg_enabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficIncidentCardsEnabled was null, expected non-null bool.', + ); + try { + api.setTrafficIncidentCardsEnabled(arg_enabled!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setNavigationTripProgressBarEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setNavigationTripProgressBarEnabled was null.', + ); + final List args = (message as List?)!; + final bool? arg_enabled = (args[0] as bool?); + assert( + arg_enabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setNavigationTripProgressBarEnabled was null, expected non-null bool.', + ); + try { + api.setNavigationTripProgressBarEnabled(arg_enabled!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setSpeedLimitIconEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setSpeedLimitIconEnabled was null.', + ); + final List args = (message as List?)!; + final bool? arg_enabled = (args[0] as bool?); + assert( + arg_enabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setSpeedLimitIconEnabled was null, expected non-null bool.', + ); + try { + api.setSpeedLimitIconEnabled(arg_enabled!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setSpeedometerEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setSpeedometerEnabled was null.', + ); + final List args = (message as List?)!; + final bool? arg_enabled = (args[0] as bool?); + assert( + arg_enabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setSpeedometerEnabled was null, expected non-null bool.', + ); + try { + api.setSpeedometerEnabled(arg_enabled!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setNavigationUIEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setNavigationUIEnabled was null.', + ); + final List args = (message as List?)!; + final bool? arg_enabled = (args[0] as bool?); + assert( + arg_enabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setNavigationUIEnabled was null, expected non-null bool.', + ); + try { + api.setNavigationUIEnabled(arg_enabled!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isMyLocationButtonEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + try { + final bool output = api.isMyLocationButtonEnabled(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isConsumeMyLocationButtonClickEventsEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + try { + final bool output = api + .isConsumeMyLocationButtonClickEventsEnabled(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isZoomGesturesEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + try { + final bool output = api.isZoomGesturesEnabled(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isZoomControlsEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + try { + final bool output = api.isZoomControlsEnabled(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isCompassEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + try { + final bool output = api.isCompassEnabled(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isRotateGesturesEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + try { + final bool output = api.isRotateGesturesEnabled(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isScrollGesturesEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + try { + final bool output = api.isScrollGesturesEnabled(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isScrollGesturesEnabledDuringRotateOrZoom$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + try { + final bool output = api + .isScrollGesturesEnabledDuringRotateOrZoom(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTiltGesturesEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + try { + final bool output = api.isTiltGesturesEnabled(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isMapToolbarEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + try { + final bool output = api.isMapToolbarEnabled(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTrafficEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + try { + final bool output = api.isTrafficEnabled(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTrafficPromptsEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + try { + final bool output = api.isTrafficPromptsEnabled(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTrafficIncidentCardsEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + try { + final bool output = api.isTrafficIncidentCardsEnabled(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isNavigationTripProgressBarEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + try { + final bool output = api.isNavigationTripProgressBarEnabled(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isSpeedLimitIconEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + try { + final bool output = api.isSpeedLimitIconEnabled(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isSpeedometerEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + try { + final bool output = api.isSpeedometerEnabled(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isNavigationUIEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + try { + final bool output = api.isNavigationUIEnabled(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isIndoorEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + try { + final bool output = api.isIndoorEnabled(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setIndoorEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setIndoorEnabled was null.', + ); + final List args = (message as List?)!; + final bool? arg_enabled = (args[0] as bool?); + assert( + arg_enabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setIndoorEnabled was null, expected non-null bool.', + ); + try { + api.setIndoorEnabled(arg_enabled!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getFocusedIndoorBuilding$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + try { + final IndoorBuildingDto? output = api + .getFocusedIndoorBuilding(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.activateIndoorLevel$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.activateIndoorLevel was null.', + ); + final List args = (message as List?)!; + final int? arg_levelIndex = (args[0] as int?); + assert( + arg_levelIndex != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.activateIndoorLevel was null, expected non-null int.', + ); + try { + api.activateIndoorLevel(arg_levelIndex!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.showRouteOverview$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + try { + api.showRouteOverview(); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMarkers$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + try { + final List output = api.getMarkers(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addMarkers$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addMarkers was null.', + ); + final List args = (message as List?)!; + final List? arg_markers = (args[0] as List?) + ?.cast(); + assert( + arg_markers != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addMarkers was null, expected non-null List.', + ); + try { + final List output = api.addMarkers(arg_markers!); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updateMarkers$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updateMarkers was null.', + ); + final List args = (message as List?)!; + final List? arg_markers = (args[0] as List?) + ?.cast(); + assert( + arg_markers != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updateMarkers was null, expected non-null List.', + ); + try { + final List output = api.updateMarkers(arg_markers!); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removeMarkers$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removeMarkers was null.', + ); + final List args = (message as List?)!; + final List? arg_markers = (args[0] as List?) + ?.cast(); + assert( + arg_markers != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removeMarkers was null, expected non-null List.', + ); + try { + api.removeMarkers(arg_markers!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearMarkers$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + try { + api.clearMarkers(); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clear$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + try { + api.clear(); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getPolygons$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + try { + final List output = api.getPolygons(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addPolygons$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addPolygons was null.', + ); + final List args = (message as List?)!; + final List? arg_polygons = (args[0] as List?) + ?.cast(); + assert( + arg_polygons != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addPolygons was null, expected non-null List.', + ); + try { + final List output = api.addPolygons(arg_polygons!); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updatePolygons$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updatePolygons was null.', + ); + final List args = (message as List?)!; + final List? arg_polygons = (args[0] as List?) + ?.cast(); + assert( + arg_polygons != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updatePolygons was null, expected non-null List.', + ); + try { + final List output = api.updatePolygons( + arg_polygons!, + ); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removePolygons$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removePolygons was null.', + ); + final List args = (message as List?)!; + final List? arg_polygons = (args[0] as List?) + ?.cast(); + assert( + arg_polygons != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removePolygons was null, expected non-null List.', + ); + try { + api.removePolygons(arg_polygons!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearPolygons$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + try { + api.clearPolygons(); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getPolylines$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + try { + final List output = api.getPolylines(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addPolylines$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addPolylines was null.', + ); + final List args = (message as List?)!; + final List? arg_polylines = + (args[0] as List?)?.cast(); + assert( + arg_polylines != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addPolylines was null, expected non-null List.', + ); + try { + final List output = api.addPolylines( + arg_polylines!, + ); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updatePolylines$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updatePolylines was null.', + ); + final List args = (message as List?)!; + final List? arg_polylines = + (args[0] as List?)?.cast(); + assert( + arg_polylines != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updatePolylines was null, expected non-null List.', + ); + try { + final List output = api.updatePolylines( + arg_polylines!, + ); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removePolylines$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removePolylines was null.', + ); + final List args = (message as List?)!; + final List? arg_polylines = + (args[0] as List?)?.cast(); + assert( + arg_polylines != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removePolylines was null, expected non-null List.', + ); + try { + api.removePolylines(arg_polylines!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearPolylines$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + try { + api.clearPolylines(); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getCircles$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + try { + final List output = api.getCircles(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addCircles$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addCircles was null.', + ); + final List args = (message as List?)!; + final List? arg_circles = (args[0] as List?) + ?.cast(); + assert( + arg_circles != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addCircles was null, expected non-null List.', + ); + try { + final List output = api.addCircles(arg_circles!); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updateCircles$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updateCircles was null.', + ); + final List args = (message as List?)!; + final List? arg_circles = (args[0] as List?) + ?.cast(); + assert( + arg_circles != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updateCircles was null, expected non-null List.', + ); + try { + final List output = api.updateCircles(arg_circles!); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removeCircles$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removeCircles was null.', + ); + final List args = (message as List?)!; + final List? arg_circles = (args[0] as List?) + ?.cast(); + assert( + arg_circles != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removeCircles was null, expected non-null List.', + ); + try { + api.removeCircles(arg_circles!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearCircles$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + try { + api.clearCircles(); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.enableOnCameraChangedEvents$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + try { + api.enableOnCameraChangedEvents(); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isAutoScreenAvailable$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + try { + final bool output = api.isAutoScreenAvailable(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setPadding$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setPadding was null.', + ); + final List args = (message as List?)!; + final MapPaddingDto? arg_padding = (args[0] as MapPaddingDto?); + assert( + arg_padding != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setPadding was null, expected non-null MapPaddingDto.', + ); + try { + api.setPadding(arg_padding!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getPadding$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + try { + final MapPaddingDto output = api.getPadding(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMapColorScheme$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + try { + final MapColorSchemeDto output = api.getMapColorScheme(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapColorScheme$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapColorScheme was null.', + ); + final List args = (message as List?)!; + final MapColorSchemeDto? arg_mapColorScheme = + (args[0] as MapColorSchemeDto?); + assert( + arg_mapColorScheme != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapColorScheme was null, expected non-null MapColorSchemeDto.', + ); + try { + api.setMapColorScheme(arg_mapColorScheme!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getForceNightMode$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + try { + final NavigationForceNightModeDto output = api + .getForceNightMode(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setForceNightMode$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setForceNightMode was null.', + ); + final List args = (message as List?)!; + final NavigationForceNightModeDto? arg_forceNightMode = + (args[0] as NavigationForceNightModeDto?); + assert( + arg_forceNightMode != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setForceNightMode was null, expected non-null NavigationForceNightModeDto.', + ); + try { + api.setForceNightMode(arg_forceNightMode!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.sendCustomNavigationAutoEvent$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< + Object? + >(pigeonVar_channel, (Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.sendCustomNavigationAutoEvent was null.', + ); final List args = (message as List?)!; final String? arg_event = (args[0] as String?); - assert(arg_event != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.sendCustomNavigationAutoEvent was null, expected non-null String.'); + assert( + arg_event != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.sendCustomNavigationAutoEvent was null, expected non-null String.', + ); final Object? arg_data = (args[1] as Object?); - assert(arg_data != null, - 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.sendCustomNavigationAutoEvent was null, expected non-null Object.'); + assert( + arg_data != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.sendCustomNavigationAutoEvent was null, expected non-null Object.', + ); try { api.sendCustomNavigationAutoEvent(arg_event!, arg_data!); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } From fe1bf7e7e48d3b659f50bbcea32c097a0e80386f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ville=20V=C3=A4limaa?= Date: Fri, 26 Jun 2026 15:43:26 +0800 Subject: [PATCH 3/4] feat: add more the header styling options --- .../GoogleMapsBaseNavigationView.kt | 36 + .../maps/flutter/navigation/messages.g.kt | 6995 ++++++----------- example/lib/pages/navigation.dart | 39 +- .../GoogleMapsNavigationView.swift | 29 +- .../messages.g.swift | 2217 ++---- ...oogle_maps_navigation_view_controller.dart | 6 +- .../method_channel/convert/navigation.dart | 26 + lib/src/method_channel/map_view_api.dart | 4 +- lib/src/method_channel/messages.g.dart | 67 +- .../navigation_header_styling_options.dart | 149 +- pigeons/messages.dart | 31 +- test/google_navigation_flutter_test.dart | 88 +- 12 files changed, 3595 insertions(+), 6092 deletions(-) diff --git a/android/src/main/kotlin/com/google/maps/flutter/navigation/GoogleMapsBaseNavigationView.kt b/android/src/main/kotlin/com/google/maps/flutter/navigation/GoogleMapsBaseNavigationView.kt index 29bbfe42..6fdf697a 100644 --- a/android/src/main/kotlin/com/google/maps/flutter/navigation/GoogleMapsBaseNavigationView.kt +++ b/android/src/main/kotlin/com/google/maps/flutter/navigation/GoogleMapsBaseNavigationView.kt @@ -137,6 +137,42 @@ abstract class GoogleMapsBaseNavigationView( stylingOptions.secondaryNightModeBackgroundColor?.let { builder.secondaryNightModeThemeColor(it.toInt()) } + stylingOptions.largeManeuverIconColor?.let { + builder.headerLargeManeuverIconColor(it.toInt()) + } + stylingOptions.smallManeuverIconColor?.let { + builder.headerSmallManeuverIconColor(it.toInt()) + } + stylingOptions.nextStepTextColor?.let { + builder.headerNextStepTextColor(it.toInt()) + } + stylingOptions.nextStepTextSize?.let { + builder.headerNextStepTextSize(it.toFloat()) + } + stylingOptions.distanceValueTextColor?.let { + builder.headerDistanceValueTextColor(it.toInt()) + } + stylingOptions.distanceUnitsTextColor?.let { + builder.headerDistanceUnitsTextColor(it.toInt()) + } + stylingOptions.distanceValueTextSize?.let { + builder.headerDistanceValueTextSize(it.toFloat()) + } + stylingOptions.distanceUnitsTextSize?.let { + builder.headerDistanceUnitsTextSize(it.toFloat()) + } + stylingOptions.instructionsTextColor?.let { + builder.headerInstructionsTextColor(it.toInt()) + } + stylingOptions.instructionsFirstRowTextSize?.let { + builder.headerInstructionsFirstRowTextSize(it.toFloat()) + } + stylingOptions.instructionsSecondRowTextSize?.let { + builder.headerInstructionsSecondRowTextSize(it.toFloat()) + } + stylingOptions.guidanceRecommendedLaneColor?.let { + builder.headerGuidanceRecommendedLaneColor(it.toInt()) + } navigationView.setStylingOptions(builder) _navigationHeaderStylingOptions = stylingOptions 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 ef41c189..b658806a 100644 --- a/android/src/main/kotlin/com/google/maps/flutter/navigation/messages.g.kt +++ b/android/src/main/kotlin/com/google/maps/flutter/navigation/messages.g.kt @@ -21,20 +21,16 @@ package com.google.maps.flutter.navigation import android.util.Log import io.flutter.plugin.common.BasicMessageChannel import io.flutter.plugin.common.BinaryMessenger +import io.flutter.plugin.common.EventChannel import io.flutter.plugin.common.MessageCodec +import io.flutter.plugin.common.StandardMethodCodec import io.flutter.plugin.common.StandardMessageCodec import java.io.ByteArrayOutputStream import java.nio.ByteBuffer - private object MessagesPigeonUtils { fun createConnectionError(channelName: String): FlutterError { - return FlutterError( - "channel-error", - "Unable to establish connection on channel: '$channelName'.", - "", - ) - } + return FlutterError("channel-error", "Unable to establish connection on channel: '$channelName'.", "") } fun wrapResult(result: Any?): List { return listOf(result) @@ -42,62 +38,66 @@ private object MessagesPigeonUtils { fun wrapError(exception: Throwable): List { return if (exception is FlutterError) { - listOf(exception.code, exception.message, exception.details) + listOf( + exception.code, + exception.message, + exception.details + ) } else { listOf( exception.javaClass.simpleName, exception.toString(), - "Cause: " + exception.cause + ", Stacktrace: " + Log.getStackTraceString(exception), + "Cause: " + exception.cause + ", Stacktrace: " + Log.getStackTraceString(exception) ) } } - fun deepEquals(a: Any?, b: Any?): Boolean { if (a is ByteArray && b is ByteArray) { - return a.contentEquals(b) + return a.contentEquals(b) } if (a is IntArray && b is IntArray) { - return a.contentEquals(b) + return a.contentEquals(b) } if (a is LongArray && b is LongArray) { - return a.contentEquals(b) + return a.contentEquals(b) } if (a is DoubleArray && b is DoubleArray) { - return a.contentEquals(b) + return a.contentEquals(b) } if (a is Array<*> && b is Array<*>) { - return a.size == b.size && a.indices.all { deepEquals(a[it], b[it]) } + return a.size == b.size && + a.indices.all{ deepEquals(a[it], b[it]) } } if (a is List<*> && b is List<*>) { - return a.size == b.size && a.indices.all { deepEquals(a[it], b[it]) } + return a.size == b.size && + a.indices.all{ deepEquals(a[it], b[it]) } } if (a is Map<*, *> && b is Map<*, *>) { - return a.size == b.size && - a.all { (b as Map).containsKey(it.key) && deepEquals(it.value, b[it.key]) } + return a.size == b.size && a.all { + (b as Map).containsKey(it.key) && + deepEquals(it.value, b[it.key]) + } } return a == b } + } /** * Error class for passing custom error details to Flutter via a thrown PlatformException. - * * @property code The error code. * @property message The error message. * @property details The error details. Must be a datatype supported by the api codec. */ -class FlutterError( +class FlutterError ( val code: String, override val message: String? = null, - val details: Any? = null, + val details: Any? = null ) : Throwable() /** Describes the type of map to construct. */ enum class MapViewTypeDto(val raw: Int) { - /** - * Navigation view supports navigation overlay, and current navigation session is displayed on the - * map. - */ + /** Navigation view supports navigation overlay, and current navigation session is displayed on the map. */ NAVIGATION(0), /** Classic map view, without navigation overlay. */ MAP(1); @@ -111,7 +111,10 @@ enum class MapViewTypeDto(val raw: Int) { /** Determines the initial visibility of the navigation UI on map initialization. */ enum class NavigationUIEnabledPreferenceDto(val raw: Int) { - /** Navigation UI gets enabled if the navigation session has already been successfully started. */ + /** + * Navigation UI gets enabled if the navigation + * session has already been successfully started. + */ AUTOMATIC(0), /** Navigation UI is disabled. */ DISABLED(1); @@ -433,9 +436,7 @@ enum class ManeuverDto(val raw: Int) { OFF_RAMP_UTURN_COUNTERCLOCKWISE(22), /** Keep to the left side of the road when entering a turnpike or freeway as the road diverges. */ ON_RAMP_KEEP_LEFT(23), - /** - * Keep to the right side of the road when entering a turnpike or freeway as the road diverges. - */ + /** Keep to the right side of the road when entering a turnpike or freeway as the road diverges. */ ON_RAMP_KEEP_RIGHT(24), /** Regular left turn to enter a turnpike or freeway. */ ON_RAMP_LEFT(25), @@ -491,15 +492,9 @@ enum class ManeuverDto(val raw: Int) { ROUNDABOUT_STRAIGHT_CLOCKWISE(50), /** Enter a roundabout in the counterclockwise direction and continue straight. */ ROUNDABOUT_STRAIGHT_COUNTERCLOCKWISE(51), - /** - * Enter a roundabout in the clockwise direction and turn clockwise onto the opposite side of the - * street. - */ + /** Enter a roundabout in the clockwise direction and turn clockwise onto the opposite side of the street. */ ROUNDABOUT_UTURN_CLOCKWISE(52), - /** - * Enter a roundabout in the counterclockwise direction and turn counterclockwise onto the - * opposite side of the street. - */ + /** Enter a roundabout in the counterclockwise direction and turn counterclockwise onto the opposite side of the street. */ ROUNDABOUT_UTURN_COUNTERCLOCKWISE(53), /** Continue straight. */ STRAIGHT(54), @@ -600,14 +595,11 @@ enum class LaneShapeDto(val raw: Int) { /** Determines how application should behave when a application task is removed. */ enum class TaskRemovedBehaviorDto(val raw: Int) { /** - * The default state, indicating that navigation guidance, location updates, and notification - * should persist after user removes the application task. + * The default state, indicating that navigation guidance, + * location updates, and notification should persist after user removes the application task. */ CONTINUE_SERVICE(0), - /** - * Indicates that navigation guidance, location updates, and notification should shut down - * immediately when the user removes the application task. - */ + /** Indicates that navigation guidance, location updates, and notification should shut down immediately when the user removes the application task. */ QUIT_SERVICE(1); companion object { @@ -622,7 +614,7 @@ enum class TaskRemovedBehaviorDto(val raw: Int) { * * Generated class from Pigeon that represents data sent in messages. */ -data class AutoMapOptionsDto( +data class AutoMapOptionsDto ( /** The initial positioning of the camera in the map view. */ val cameraPosition: CameraPositionDto? = null, /** Cloud-based map ID for custom styling. */ @@ -634,8 +626,9 @@ data class AutoMapOptionsDto( /** Forces night mode (dark theme) regardless of system settings. */ val forceNightMode: NavigationForceNightModeDto? = null, /** Determines the initial visibility of the navigation UI on map initialization. */ - val navigationUIEnabledPreference: NavigationUIEnabledPreferenceDto? = null, -) { + val navigationUIEnabledPreference: NavigationUIEnabledPreferenceDto? = null +) + { companion object { fun fromList(pigeonVar_list: List): AutoMapOptionsDto { val cameraPosition = pigeonVar_list[0] as CameraPositionDto? @@ -644,17 +637,9 @@ data class AutoMapOptionsDto( val mapColorScheme = pigeonVar_list[3] as MapColorSchemeDto? val forceNightMode = pigeonVar_list[4] as NavigationForceNightModeDto? val navigationUIEnabledPreference = pigeonVar_list[5] as NavigationUIEnabledPreferenceDto? - return AutoMapOptionsDto( - cameraPosition, - mapId, - mapType, - mapColorScheme, - forceNightMode, - navigationUIEnabledPreference, - ) + return AutoMapOptionsDto(cameraPosition, mapId, mapType, mapColorScheme, forceNightMode, navigationUIEnabledPreference) } } - fun toList(): List { return listOf( cameraPosition, @@ -665,7 +650,6 @@ data class AutoMapOptionsDto( navigationUIEnabledPreference, ) } - override fun equals(other: Any?): Boolean { if (other !is AutoMapOptionsDto) { return false @@ -673,8 +657,7 @@ data class AutoMapOptionsDto( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) - } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } override fun hashCode(): Int = toList().hashCode() } @@ -684,7 +667,7 @@ data class AutoMapOptionsDto( * * Generated class from Pigeon that represents data sent in messages. */ -data class MapOptionsDto( +data class MapOptionsDto ( /** The initial positioning of the camera in the map view. */ val cameraPosition: CameraPositionDto, /** The type of map to display (e.g., satellite, terrain, hybrid, etc.). */ @@ -717,13 +700,14 @@ data class MapOptionsDto( /** Specifies the padding for the map. */ val padding: MapPaddingDto? = null, /** - * The map ID for advanced map options eg. cloud-based map styling. This value can only be set on - * map initialization and cannot be changed afterwards. + * The map ID for advanced map options eg. cloud-based map styling. + * This value can only be set on map initialization and cannot be changed afterwards. */ val mapId: String? = null, /** The map color scheme mode for the map view. */ - val mapColorScheme: MapColorSchemeDto, -) { + val mapColorScheme: MapColorSchemeDto +) + { companion object { fun fromList(pigeonVar_list: List): MapOptionsDto { val cameraPosition = pigeonVar_list[0] as CameraPositionDto @@ -742,27 +726,9 @@ data class MapOptionsDto( val padding = pigeonVar_list[13] as MapPaddingDto? val mapId = pigeonVar_list[14] as String? val mapColorScheme = pigeonVar_list[15] as MapColorSchemeDto - return MapOptionsDto( - cameraPosition, - mapType, - compassEnabled, - rotateGesturesEnabled, - scrollGesturesEnabled, - tiltGesturesEnabled, - zoomGesturesEnabled, - scrollGesturesEnabledDuringRotateOrZoom, - mapToolbarEnabled, - minZoomPreference, - maxZoomPreference, - zoomControlsEnabled, - cameraTargetBounds, - padding, - mapId, - mapColorScheme, - ) + return MapOptionsDto(cameraPosition, mapType, compassEnabled, rotateGesturesEnabled, scrollGesturesEnabled, tiltGesturesEnabled, zoomGesturesEnabled, scrollGesturesEnabledDuringRotateOrZoom, mapToolbarEnabled, minZoomPreference, maxZoomPreference, zoomControlsEnabled, cameraTargetBounds, padding, mapId, mapColorScheme) } } - fun toList(): List { return listOf( cameraPosition, @@ -783,7 +749,6 @@ data class MapOptionsDto( mapColorScheme, ) } - override fun equals(other: Any?): Boolean { if (other !is MapOptionsDto) { return false @@ -791,8 +756,7 @@ data class MapOptionsDto( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) - } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } override fun hashCode(): Int = toList().hashCode() } @@ -802,12 +766,13 @@ data class MapOptionsDto( * * Generated class from Pigeon that represents data sent in messages. */ -data class NavigationViewOptionsDto( +data class NavigationViewOptionsDto ( /** Determines the initial visibility of the navigation UI on map initialization. */ val navigationUIEnabledPreference: NavigationUIEnabledPreferenceDto, /** Controls the navigation night mode for Navigation UI. */ - val forceNightMode: NavigationForceNightModeDto, -) { + val forceNightMode: NavigationForceNightModeDto +) + { companion object { fun fromList(pigeonVar_list: List): NavigationViewOptionsDto { val navigationUIEnabledPreference = pigeonVar_list[0] as NavigationUIEnabledPreferenceDto @@ -815,11 +780,12 @@ data class NavigationViewOptionsDto( return NavigationViewOptionsDto(navigationUIEnabledPreference, forceNightMode) } } - fun toList(): List { - return listOf(navigationUIEnabledPreference, forceNightMode) + return listOf( + navigationUIEnabledPreference, + forceNightMode, + ) } - override fun equals(other: Any?): Boolean { if (other !is NavigationViewOptionsDto) { return false @@ -827,8 +793,7 @@ data class NavigationViewOptionsDto( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) - } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } override fun hashCode(): Int = toList().hashCode() } @@ -836,15 +801,17 @@ data class NavigationViewOptionsDto( /** * A message for creating a new navigation view. * - * This message is used to initialize a new navigation view with a specified initial parameters. + * This message is used to initialize a new navigation view with a + * specified initial parameters. * * Generated class from Pigeon that represents data sent in messages. */ -data class ViewCreationOptionsDto( +data class ViewCreationOptionsDto ( val mapViewType: MapViewTypeDto, val mapOptions: MapOptionsDto, - val navigationViewOptions: NavigationViewOptionsDto? = null, -) { + val navigationViewOptions: NavigationViewOptionsDto? = null +) + { companion object { fun fromList(pigeonVar_list: List): ViewCreationOptionsDto { val mapViewType = pigeonVar_list[0] as MapViewTypeDto @@ -853,11 +820,13 @@ data class ViewCreationOptionsDto( return ViewCreationOptionsDto(mapViewType, mapOptions, navigationViewOptions) } } - fun toList(): List { - return listOf(mapViewType, mapOptions, navigationViewOptions) + return listOf( + mapViewType, + mapOptions, + navigationViewOptions, + ) } - override fun equals(other: Any?): Boolean { if (other !is ViewCreationOptionsDto) { return false @@ -865,19 +834,19 @@ data class ViewCreationOptionsDto( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) - } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class CameraPositionDto( +data class CameraPositionDto ( val bearing: Double, val target: LatLngDto, val tilt: Double, - val zoom: Double, -) { + val zoom: Double +) + { companion object { fun fromList(pigeonVar_list: List): CameraPositionDto { val bearing = pigeonVar_list[0] as Double @@ -887,11 +856,14 @@ data class CameraPositionDto( return CameraPositionDto(bearing, target, tilt, zoom) } } - fun toList(): List { - return listOf(bearing, target, tilt, zoom) + return listOf( + bearing, + target, + tilt, + zoom, + ) } - override fun equals(other: Any?): Boolean { if (other !is CameraPositionDto) { return false @@ -899,19 +871,19 @@ data class CameraPositionDto( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) - } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class MarkerDto( +data class MarkerDto ( /** Identifies marker */ val markerId: String, /** Options for marker */ - val options: MarkerOptionsDto, -) { + val options: MarkerOptionsDto +) + { companion object { fun fromList(pigeonVar_list: List): MarkerDto { val markerId = pigeonVar_list[0] as String @@ -919,11 +891,12 @@ data class MarkerDto( return MarkerDto(markerId, options) } } - fun toList(): List { - return listOf(markerId, options) + return listOf( + markerId, + options, + ) } - override fun equals(other: Any?): Boolean { if (other !is MarkerDto) { return false @@ -931,14 +904,13 @@ data class MarkerDto( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) - } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class MarkerOptionsDto( +data class MarkerOptionsDto ( val alpha: Double, val anchor: MarkerAnchorDto, val draggable: Boolean, @@ -949,8 +921,9 @@ data class MarkerOptionsDto( val infoWindow: InfoWindowDto, val visible: Boolean, val zIndex: Double, - val icon: ImageDescriptorDto, -) { + val icon: ImageDescriptorDto +) + { companion object { fun fromList(pigeonVar_list: List): MarkerOptionsDto { val alpha = pigeonVar_list[0] as Double @@ -964,22 +937,9 @@ data class MarkerOptionsDto( val visible = pigeonVar_list[8] as Boolean val zIndex = pigeonVar_list[9] as Double val icon = pigeonVar_list[10] as ImageDescriptorDto - return MarkerOptionsDto( - alpha, - anchor, - draggable, - flat, - consumeTapEvents, - position, - rotation, - infoWindow, - visible, - zIndex, - icon, - ) + return MarkerOptionsDto(alpha, anchor, draggable, flat, consumeTapEvents, position, rotation, infoWindow, visible, zIndex, icon) } } - fun toList(): List { return listOf( alpha, @@ -995,7 +955,6 @@ data class MarkerOptionsDto( icon, ) } - override fun equals(other: Any?): Boolean { if (other !is MarkerOptionsDto) { return false @@ -1003,20 +962,20 @@ data class MarkerOptionsDto( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) - } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class ImageDescriptorDto( +data class ImageDescriptorDto ( val registeredImageId: String? = null, val imagePixelRatio: Double? = null, val width: Double? = null, val height: Double? = null, - val type: RegisteredImageTypeDto, -) { + val type: RegisteredImageTypeDto +) + { companion object { fun fromList(pigeonVar_list: List): ImageDescriptorDto { val registeredImageId = pigeonVar_list[0] as String? @@ -1027,11 +986,15 @@ data class ImageDescriptorDto( return ImageDescriptorDto(registeredImageId, imagePixelRatio, width, height, type) } } - fun toList(): List { - return listOf(registeredImageId, imagePixelRatio, width, height, type) + return listOf( + registeredImageId, + imagePixelRatio, + width, + height, + type, + ) } - override fun equals(other: Any?): Boolean { if (other !is ImageDescriptorDto) { return false @@ -1039,18 +1002,18 @@ data class ImageDescriptorDto( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) - } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class InfoWindowDto( +data class InfoWindowDto ( val title: String? = null, val snippet: String? = null, - val anchor: MarkerAnchorDto, -) { + val anchor: MarkerAnchorDto +) + { companion object { fun fromList(pigeonVar_list: List): InfoWindowDto { val title = pigeonVar_list[0] as String? @@ -1059,11 +1022,13 @@ data class InfoWindowDto( return InfoWindowDto(title, snippet, anchor) } } - fun toList(): List { - return listOf(title, snippet, anchor) + return listOf( + title, + snippet, + anchor, + ) } - override fun equals(other: Any?): Boolean { if (other !is InfoWindowDto) { return false @@ -1071,14 +1036,17 @@ data class InfoWindowDto( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) - } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class MarkerAnchorDto(val u: Double, val v: Double) { +data class MarkerAnchorDto ( + val u: Double, + val v: Double +) + { companion object { fun fromList(pigeonVar_list: List): MarkerAnchorDto { val u = pigeonVar_list[0] as Double @@ -1086,11 +1054,12 @@ data class MarkerAnchorDto(val u: Double, val v: Double) { return MarkerAnchorDto(u, v) } } - fun toList(): List { - return listOf(u, v) + return listOf( + u, + v, + ) } - override fun equals(other: Any?): Boolean { if (other !is MarkerAnchorDto) { return false @@ -1098,29 +1067,29 @@ data class MarkerAnchorDto(val u: Double, val v: Double) { if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) - } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } override fun hashCode(): Int = toList().hashCode() } /** - * Represents a point of interest (POI) on the map. POIs include parks, schools, government - * buildings, and businesses. + * Represents a point of interest (POI) on the map. + * POIs include parks, schools, government buildings, and businesses. * * Generated class from Pigeon that represents data sent in messages. */ -data class PointOfInterestDto( +data class PointOfInterestDto ( /** - * The Place ID of this POI, as defined in the Places SDK. This can be used to retrieve additional - * information about the place. + * The Place ID of this POI, as defined in the Places SDK. + * This can be used to retrieve additional information about the place. */ val placeID: String, /** The name of the POI (e.g., "Central Park", "City Hall"). */ val name: String, /** The geographical coordinates of the POI. */ - val latLng: LatLngDto, -) { + val latLng: LatLngDto +) + { companion object { fun fromList(pigeonVar_list: List): PointOfInterestDto { val placeID = pigeonVar_list[0] as String @@ -1129,11 +1098,13 @@ data class PointOfInterestDto( return PointOfInterestDto(placeID, name, latLng) } } - fun toList(): List { - return listOf(placeID, name, latLng) + return listOf( + placeID, + name, + latLng, + ) } - override fun equals(other: Any?): Boolean { if (other !is PointOfInterestDto) { return false @@ -1141,8 +1112,7 @@ data class PointOfInterestDto( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) - } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } override fun hashCode(): Int = toList().hashCode() } @@ -1152,12 +1122,13 @@ data class PointOfInterestDto( * * Generated class from Pigeon that represents data sent in messages. */ -data class IndoorLevelDto( +data class IndoorLevelDto ( /** Full display name of the level. */ val name: String? = null, /** Short display name of the level. */ - val shortName: String? = null, -) { + val shortName: String? = null +) + { companion object { fun fromList(pigeonVar_list: List): IndoorLevelDto { val name = pigeonVar_list[0] as String? @@ -1165,11 +1136,12 @@ data class IndoorLevelDto( return IndoorLevelDto(name, shortName) } } - fun toList(): List { - return listOf(name, shortName) + return listOf( + name, + shortName, + ) } - override fun equals(other: Any?): Boolean { if (other !is IndoorLevelDto) { return false @@ -1177,8 +1149,7 @@ data class IndoorLevelDto( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) - } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } override fun hashCode(): Int = toList().hashCode() } @@ -1188,7 +1159,7 @@ data class IndoorLevelDto( * * Generated class from Pigeon that represents data sent in messages. */ -data class IndoorBuildingDto( +data class IndoorBuildingDto ( /** All levels available in the focused building. */ val levels: List, /** Currently active level index in [levels], if known. */ @@ -1196,8 +1167,9 @@ data class IndoorBuildingDto( /** Default level index in [levels], if known. */ val defaultLevelIndex: Long? = null, /** Whether building is mostly underground, if known. */ - val isUnderground: Boolean? = null, -) { + val isUnderground: Boolean? = null +) + { companion object { fun fromList(pigeonVar_list: List): IndoorBuildingDto { val levels = pigeonVar_list[0] as List @@ -1207,11 +1179,14 @@ data class IndoorBuildingDto( return IndoorBuildingDto(levels, activeLevelIndex, defaultLevelIndex, isUnderground) } } - fun toList(): List { - return listOf(levels, activeLevelIndex, defaultLevelIndex, isUnderground) + return listOf( + levels, + activeLevelIndex, + defaultLevelIndex, + isUnderground, + ) } - override fun equals(other: Any?): Boolean { if (other !is IndoorBuildingDto) { return false @@ -1219,14 +1194,17 @@ data class IndoorBuildingDto( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) - } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class PolygonDto(val polygonId: String, val options: PolygonOptionsDto) { +data class PolygonDto ( + val polygonId: String, + val options: PolygonOptionsDto +) + { companion object { fun fromList(pigeonVar_list: List): PolygonDto { val polygonId = pigeonVar_list[0] as String @@ -1234,11 +1212,12 @@ data class PolygonDto(val polygonId: String, val options: PolygonOptionsDto) { return PolygonDto(polygonId, options) } } - fun toList(): List { - return listOf(polygonId, options) + return listOf( + polygonId, + options, + ) } - override fun equals(other: Any?): Boolean { if (other !is PolygonDto) { return false @@ -1246,14 +1225,13 @@ data class PolygonDto(val polygonId: String, val options: PolygonOptionsDto) { if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) - } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class PolygonOptionsDto( +data class PolygonOptionsDto ( val points: List, val holes: List, val clickable: Boolean, @@ -1262,8 +1240,9 @@ data class PolygonOptionsDto( val strokeColor: Long, val strokeWidth: Double, val visible: Boolean, - val zIndex: Double, -) { + val zIndex: Double +) + { companion object { fun fromList(pigeonVar_list: List): PolygonOptionsDto { val points = pigeonVar_list[0] as List @@ -1275,20 +1254,9 @@ data class PolygonOptionsDto( val strokeWidth = pigeonVar_list[6] as Double val visible = pigeonVar_list[7] as Boolean val zIndex = pigeonVar_list[8] as Double - return PolygonOptionsDto( - points, - holes, - clickable, - fillColor, - geodesic, - strokeColor, - strokeWidth, - visible, - zIndex, - ) + return PolygonOptionsDto(points, holes, clickable, fillColor, geodesic, strokeColor, strokeWidth, visible, zIndex) } } - fun toList(): List { return listOf( points, @@ -1302,7 +1270,6 @@ data class PolygonOptionsDto( zIndex, ) } - override fun equals(other: Any?): Boolean { if (other !is PolygonOptionsDto) { return false @@ -1310,25 +1277,27 @@ data class PolygonOptionsDto( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) - } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class PolygonHoleDto(val points: List) { +data class PolygonHoleDto ( + val points: List +) + { companion object { fun fromList(pigeonVar_list: List): PolygonHoleDto { val points = pigeonVar_list[0] as List return PolygonHoleDto(points) } } - fun toList(): List { - return listOf(points) + return listOf( + points, + ) } - override fun equals(other: Any?): Boolean { if (other !is PolygonHoleDto) { return false @@ -1336,18 +1305,18 @@ data class PolygonHoleDto(val points: List) { if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) - } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class StyleSpanStrokeStyleDto( +data class StyleSpanStrokeStyleDto ( val solidColor: Long? = null, val fromColor: Long? = null, - val toColor: Long? = null, -) { + val toColor: Long? = null +) + { companion object { fun fromList(pigeonVar_list: List): StyleSpanStrokeStyleDto { val solidColor = pigeonVar_list[0] as Long? @@ -1356,11 +1325,13 @@ data class StyleSpanStrokeStyleDto( return StyleSpanStrokeStyleDto(solidColor, fromColor, toColor) } } - fun toList(): List { - return listOf(solidColor, fromColor, toColor) + return listOf( + solidColor, + fromColor, + toColor, + ) } - override fun equals(other: Any?): Boolean { if (other !is StyleSpanStrokeStyleDto) { return false @@ -1368,14 +1339,17 @@ data class StyleSpanStrokeStyleDto( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) - } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class StyleSpanDto(val length: Double, val style: StyleSpanStrokeStyleDto) { +data class StyleSpanDto ( + val length: Double, + val style: StyleSpanStrokeStyleDto +) + { companion object { fun fromList(pigeonVar_list: List): StyleSpanDto { val length = pigeonVar_list[0] as Double @@ -1383,11 +1357,12 @@ data class StyleSpanDto(val length: Double, val style: StyleSpanStrokeStyleDto) return StyleSpanDto(length, style) } } - fun toList(): List { - return listOf(length, style) + return listOf( + length, + style, + ) } - override fun equals(other: Any?): Boolean { if (other !is StyleSpanDto) { return false @@ -1395,14 +1370,17 @@ data class StyleSpanDto(val length: Double, val style: StyleSpanStrokeStyleDto) if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) - } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class PolylineDto(val polylineId: String, val options: PolylineOptionsDto) { +data class PolylineDto ( + val polylineId: String, + val options: PolylineOptionsDto +) + { companion object { fun fromList(pigeonVar_list: List): PolylineDto { val polylineId = pigeonVar_list[0] as String @@ -1410,11 +1388,12 @@ data class PolylineDto(val polylineId: String, val options: PolylineOptionsDto) return PolylineDto(polylineId, options) } } - fun toList(): List { - return listOf(polylineId, options) + return listOf( + polylineId, + options, + ) } - override fun equals(other: Any?): Boolean { if (other !is PolylineDto) { return false @@ -1422,14 +1401,17 @@ data class PolylineDto(val polylineId: String, val options: PolylineOptionsDto) if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) - } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class PatternItemDto(val type: PatternTypeDto, val length: Double? = null) { +data class PatternItemDto ( + val type: PatternTypeDto, + val length: Double? = null +) + { companion object { fun fromList(pigeonVar_list: List): PatternItemDto { val type = pigeonVar_list[0] as PatternTypeDto @@ -1437,11 +1419,12 @@ data class PatternItemDto(val type: PatternTypeDto, val length: Double? = null) return PatternItemDto(type, length) } } - fun toList(): List { - return listOf(type, length) + return listOf( + type, + length, + ) } - override fun equals(other: Any?): Boolean { if (other !is PatternItemDto) { return false @@ -1449,14 +1432,13 @@ data class PatternItemDto(val type: PatternTypeDto, val length: Double? = null) if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) - } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class PolylineOptionsDto( +data class PolylineOptionsDto ( val points: List? = null, val clickable: Boolean? = null, val geodesic: Boolean? = null, @@ -1466,8 +1448,9 @@ data class PolylineOptionsDto( val strokeWidth: Double? = null, val visible: Boolean? = null, val zIndex: Double? = null, - val spans: List, -) { + val spans: List +) + { companion object { fun fromList(pigeonVar_list: List): PolylineOptionsDto { val points = pigeonVar_list[0] as List? @@ -1480,21 +1463,9 @@ data class PolylineOptionsDto( val visible = pigeonVar_list[7] as Boolean? val zIndex = pigeonVar_list[8] as Double? val spans = pigeonVar_list[9] as List - return PolylineOptionsDto( - points, - clickable, - geodesic, - strokeColor, - strokeJointType, - strokePattern, - strokeWidth, - visible, - zIndex, - spans, - ) + return PolylineOptionsDto(points, clickable, geodesic, strokeColor, strokeJointType, strokePattern, strokeWidth, visible, zIndex, spans) } } - fun toList(): List { return listOf( points, @@ -1509,7 +1480,6 @@ data class PolylineOptionsDto( spans, ) } - override fun equals(other: Any?): Boolean { if (other !is PolylineOptionsDto) { return false @@ -1517,19 +1487,19 @@ data class PolylineOptionsDto( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) - } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class CircleDto( +data class CircleDto ( /** Identifies circle. */ val circleId: String, /** Options for circle. */ - val options: CircleOptionsDto, -) { + val options: CircleOptionsDto +) + { companion object { fun fromList(pigeonVar_list: List): CircleDto { val circleId = pigeonVar_list[0] as String @@ -1537,11 +1507,12 @@ data class CircleDto( return CircleDto(circleId, options) } } - fun toList(): List { - return listOf(circleId, options) + return listOf( + circleId, + options, + ) } - override fun equals(other: Any?): Boolean { if (other !is CircleDto) { return false @@ -1549,14 +1520,13 @@ data class CircleDto( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) - } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class CircleOptionsDto( +data class CircleOptionsDto ( val position: LatLngDto, val radius: Double, val strokeWidth: Double, @@ -1565,8 +1535,9 @@ data class CircleOptionsDto( val fillColor: Long, val zIndex: Double, val visible: Boolean, - val clickable: Boolean, -) { + val clickable: Boolean +) + { companion object { fun fromList(pigeonVar_list: List): CircleOptionsDto { val position = pigeonVar_list[0] as LatLngDto @@ -1578,20 +1549,9 @@ data class CircleOptionsDto( val zIndex = pigeonVar_list[6] as Double val visible = pigeonVar_list[7] as Boolean val clickable = pigeonVar_list[8] as Boolean - return CircleOptionsDto( - position, - radius, - strokeWidth, - strokeColor, - strokePattern, - fillColor, - zIndex, - visible, - clickable, - ) + return CircleOptionsDto(position, radius, strokeWidth, strokeColor, strokePattern, fillColor, zIndex, visible, clickable) } } - fun toList(): List { return listOf( position, @@ -1605,7 +1565,6 @@ data class CircleOptionsDto( clickable, ) } - override fun equals(other: Any?): Boolean { if (other !is CircleOptionsDto) { return false @@ -1613,14 +1572,19 @@ data class CircleOptionsDto( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) - } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class MapPaddingDto(val top: Long, val left: Long, val bottom: Long, val right: Long) { +data class MapPaddingDto ( + val top: Long, + val left: Long, + val bottom: Long, + val right: Long +) + { companion object { fun fromList(pigeonVar_list: List): MapPaddingDto { val top = pigeonVar_list[0] as Long @@ -1630,11 +1594,14 @@ data class MapPaddingDto(val top: Long, val left: Long, val bottom: Long, val ri return MapPaddingDto(top, left, bottom, right) } } - fun toList(): List { - return listOf(top, left, bottom, right) + return listOf( + top, + left, + bottom, + right, + ) } - override fun equals(other: Any?): Boolean { if (other !is MapPaddingDto) { return false @@ -1642,50 +1609,82 @@ data class MapPaddingDto(val top: Long, val left: Long, val bottom: Long, val ri if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) - } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } override fun hashCode(): Int = toList().hashCode() } /** - * Navigation header background colors. + * Navigation header styling options. * - * All color values are 32-bit ARGB integers (format: 0xAARRGGBB). Any null value resets that - * specific color to the native SDK default. + * All color values are 32-bit ARGB integers (format: 0xAARRGGBB). + * All text size values are logical pixels. + * Any null value resets that specific field to the native SDK default. + * + * Text size fields are currently Android only and are ignored on iOS. * * Generated class from Pigeon that represents data sent in messages. */ -data class NavigationHeaderStylingOptionsDto( +data class NavigationHeaderStylingOptionsDto ( val primaryDayModeBackgroundColor: Long? = null, val secondaryDayModeBackgroundColor: Long? = null, val primaryNightModeBackgroundColor: Long? = null, val secondaryNightModeBackgroundColor: Long? = null, -) { + val largeManeuverIconColor: Long? = null, + val smallManeuverIconColor: Long? = null, + val nextStepTextColor: Long? = null, + val nextStepTextSize: Double? = null, + val distanceValueTextColor: Long? = null, + val distanceUnitsTextColor: Long? = null, + val distanceValueTextSize: Double? = null, + val distanceUnitsTextSize: Double? = null, + val instructionsTextColor: Long? = null, + val instructionsFirstRowTextSize: Double? = null, + val instructionsSecondRowTextSize: Double? = null, + val guidanceRecommendedLaneColor: Long? = null +) + { companion object { fun fromList(pigeonVar_list: List): NavigationHeaderStylingOptionsDto { val primaryDayModeBackgroundColor = pigeonVar_list[0] as Long? val secondaryDayModeBackgroundColor = pigeonVar_list[1] as Long? val primaryNightModeBackgroundColor = pigeonVar_list[2] as Long? val secondaryNightModeBackgroundColor = pigeonVar_list[3] as Long? - return NavigationHeaderStylingOptionsDto( - primaryDayModeBackgroundColor, - secondaryDayModeBackgroundColor, - primaryNightModeBackgroundColor, - secondaryNightModeBackgroundColor, - ) + val largeManeuverIconColor = pigeonVar_list[4] as Long? + val smallManeuverIconColor = pigeonVar_list[5] as Long? + val nextStepTextColor = pigeonVar_list[6] as Long? + val nextStepTextSize = pigeonVar_list[7] as Double? + val distanceValueTextColor = pigeonVar_list[8] as Long? + val distanceUnitsTextColor = pigeonVar_list[9] as Long? + val distanceValueTextSize = pigeonVar_list[10] as Double? + val distanceUnitsTextSize = pigeonVar_list[11] as Double? + val instructionsTextColor = pigeonVar_list[12] as Long? + val instructionsFirstRowTextSize = pigeonVar_list[13] as Double? + val instructionsSecondRowTextSize = pigeonVar_list[14] as Double? + val guidanceRecommendedLaneColor = pigeonVar_list[15] as Long? + return NavigationHeaderStylingOptionsDto(primaryDayModeBackgroundColor, secondaryDayModeBackgroundColor, primaryNightModeBackgroundColor, secondaryNightModeBackgroundColor, largeManeuverIconColor, smallManeuverIconColor, nextStepTextColor, nextStepTextSize, distanceValueTextColor, distanceUnitsTextColor, distanceValueTextSize, distanceUnitsTextSize, instructionsTextColor, instructionsFirstRowTextSize, instructionsSecondRowTextSize, guidanceRecommendedLaneColor) } } - fun toList(): List { return listOf( primaryDayModeBackgroundColor, secondaryDayModeBackgroundColor, primaryNightModeBackgroundColor, secondaryNightModeBackgroundColor, + largeManeuverIconColor, + smallManeuverIconColor, + nextStepTextColor, + nextStepTextSize, + distanceValueTextColor, + distanceUnitsTextColor, + distanceValueTextSize, + distanceUnitsTextSize, + instructionsTextColor, + instructionsFirstRowTextSize, + instructionsSecondRowTextSize, + guidanceRecommendedLaneColor, ) } - override fun equals(other: Any?): Boolean { if (other !is NavigationHeaderStylingOptionsDto) { return false @@ -1693,14 +1692,17 @@ data class NavigationHeaderStylingOptionsDto( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) - } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class RouteTokenOptionsDto(val routeToken: String, val travelMode: TravelModeDto? = null) { +data class RouteTokenOptionsDto ( + val routeToken: String, + val travelMode: TravelModeDto? = null +) + { companion object { fun fromList(pigeonVar_list: List): RouteTokenOptionsDto { val routeToken = pigeonVar_list[0] as String @@ -1708,11 +1710,12 @@ data class RouteTokenOptionsDto(val routeToken: String, val travelMode: TravelMo return RouteTokenOptionsDto(routeToken, travelMode) } } - fun toList(): List { - return listOf(routeToken, travelMode) + return listOf( + routeToken, + travelMode, + ) } - override fun equals(other: Any?): Boolean { if (other !is RouteTokenOptionsDto) { return false @@ -1720,19 +1723,19 @@ data class RouteTokenOptionsDto(val routeToken: String, val travelMode: TravelMo if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) - } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class DestinationsDto( +data class DestinationsDto ( val waypoints: List, val displayOptions: NavigationDisplayOptionsDto, val routingOptions: RoutingOptionsDto? = null, - val routeTokenOptions: RouteTokenOptionsDto? = null, -) { + val routeTokenOptions: RouteTokenOptionsDto? = null +) + { companion object { fun fromList(pigeonVar_list: List): DestinationsDto { val waypoints = pigeonVar_list[0] as List @@ -1742,11 +1745,14 @@ data class DestinationsDto( return DestinationsDto(waypoints, displayOptions, routingOptions, routeTokenOptions) } } - fun toList(): List { - return listOf(waypoints, displayOptions, routingOptions, routeTokenOptions) + return listOf( + waypoints, + displayOptions, + routingOptions, + routeTokenOptions, + ) } - override fun equals(other: Any?): Boolean { if (other !is DestinationsDto) { return false @@ -1754,14 +1760,13 @@ data class DestinationsDto( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) - } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class RoutingOptionsDto( +data class RoutingOptionsDto ( val alternateRoutesStrategy: AlternateRoutesStrategyDto? = null, val routingStrategy: RoutingStrategyDto? = null, val targetDistanceMeters: List? = null, @@ -1769,8 +1774,9 @@ data class RoutingOptionsDto( val avoidTolls: Boolean? = null, val avoidFerries: Boolean? = null, val avoidHighways: Boolean? = null, - val locationTimeoutMs: Long? = null, -) { + val locationTimeoutMs: Long? = null +) + { companion object { fun fromList(pigeonVar_list: List): RoutingOptionsDto { val alternateRoutesStrategy = pigeonVar_list[0] as AlternateRoutesStrategyDto? @@ -1781,19 +1787,9 @@ data class RoutingOptionsDto( val avoidFerries = pigeonVar_list[5] as Boolean? val avoidHighways = pigeonVar_list[6] as Boolean? val locationTimeoutMs = pigeonVar_list[7] as Long? - return RoutingOptionsDto( - alternateRoutesStrategy, - routingStrategy, - targetDistanceMeters, - travelMode, - avoidTolls, - avoidFerries, - avoidHighways, - locationTimeoutMs, - ) + return RoutingOptionsDto(alternateRoutesStrategy, routingStrategy, targetDistanceMeters, travelMode, avoidTolls, avoidFerries, avoidHighways, locationTimeoutMs) } } - fun toList(): List { return listOf( alternateRoutesStrategy, @@ -1806,7 +1802,6 @@ data class RoutingOptionsDto( locationTimeoutMs, ) } - override fun equals(other: Any?): Boolean { if (other !is RoutingOptionsDto) { return false @@ -1814,20 +1809,20 @@ data class RoutingOptionsDto( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) - } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class NavigationDisplayOptionsDto( +data class NavigationDisplayOptionsDto ( val showDestinationMarkers: Boolean? = null, /** Deprecated: This option now defaults to true. */ val showStopSigns: Boolean? = null, /** Deprecated: This option now defaults to true. */ - val showTrafficLights: Boolean? = null, -) { + val showTrafficLights: Boolean? = null +) + { companion object { fun fromList(pigeonVar_list: List): NavigationDisplayOptionsDto { val showDestinationMarkers = pigeonVar_list[0] as Boolean? @@ -1836,11 +1831,13 @@ data class NavigationDisplayOptionsDto( return NavigationDisplayOptionsDto(showDestinationMarkers, showStopSigns, showTrafficLights) } } - fun toList(): List { - return listOf(showDestinationMarkers, showStopSigns, showTrafficLights) + return listOf( + showDestinationMarkers, + showStopSigns, + showTrafficLights, + ) } - override fun equals(other: Any?): Boolean { if (other !is NavigationDisplayOptionsDto) { return false @@ -1848,20 +1845,20 @@ data class NavigationDisplayOptionsDto( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) - } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class NavigationWaypointDto( +data class NavigationWaypointDto ( val title: String, val target: LatLngDto? = null, val placeID: String? = null, val preferSameSideOfRoad: Boolean? = null, - val preferredSegmentHeading: Long? = null, -) { + val preferredSegmentHeading: Long? = null +) + { companion object { fun fromList(pigeonVar_list: List): NavigationWaypointDto { val title = pigeonVar_list[0] as String @@ -1869,20 +1866,18 @@ data class NavigationWaypointDto( val placeID = pigeonVar_list[2] as String? val preferSameSideOfRoad = pigeonVar_list[3] as Boolean? val preferredSegmentHeading = pigeonVar_list[4] as Long? - return NavigationWaypointDto( - title, - target, - placeID, - preferSameSideOfRoad, - preferredSegmentHeading, - ) + return NavigationWaypointDto(title, target, placeID, preferSameSideOfRoad, preferredSegmentHeading) } } - fun toList(): List { - return listOf(title, target, placeID, preferSameSideOfRoad, preferredSegmentHeading) + return listOf( + title, + target, + placeID, + preferSameSideOfRoad, + preferredSegmentHeading, + ) } - override fun equals(other: Any?): Boolean { if (other !is NavigationWaypointDto) { return false @@ -1890,17 +1885,17 @@ data class NavigationWaypointDto( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) - } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class ContinueToNextDestinationResponseDto( +data class ContinueToNextDestinationResponseDto ( val waypoint: NavigationWaypointDto? = null, - val routeStatus: RouteStatusDto? = null, -) { + val routeStatus: RouteStatusDto? = null +) + { companion object { fun fromList(pigeonVar_list: List): ContinueToNextDestinationResponseDto { val waypoint = pigeonVar_list[0] as NavigationWaypointDto? @@ -1908,11 +1903,12 @@ data class ContinueToNextDestinationResponseDto( return ContinueToNextDestinationResponseDto(waypoint, routeStatus) } } - fun toList(): List { - return listOf(waypoint, routeStatus) + return listOf( + waypoint, + routeStatus, + ) } - override fun equals(other: Any?): Boolean { if (other !is ContinueToNextDestinationResponseDto) { return false @@ -1920,18 +1916,18 @@ data class ContinueToNextDestinationResponseDto( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) - } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class NavigationTimeAndDistanceDto( +data class NavigationTimeAndDistanceDto ( val time: Double, val distance: Double, - val delaySeverity: TrafficDelaySeverityDto, -) { + val delaySeverity: TrafficDelaySeverityDto +) + { companion object { fun fromList(pigeonVar_list: List): NavigationTimeAndDistanceDto { val time = pigeonVar_list[0] as Double @@ -1940,11 +1936,13 @@ data class NavigationTimeAndDistanceDto( return NavigationTimeAndDistanceDto(time, distance, delaySeverity) } } - fun toList(): List { - return listOf(time, distance, delaySeverity) + return listOf( + time, + distance, + delaySeverity, + ) } - override fun equals(other: Any?): Boolean { if (other !is NavigationTimeAndDistanceDto) { return false @@ -1952,35 +1950,33 @@ data class NavigationTimeAndDistanceDto( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) - } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class NavigationAudioGuidanceSettingsDto( +data class NavigationAudioGuidanceSettingsDto ( val isBluetoothAudioEnabled: Boolean? = null, val isVibrationEnabled: Boolean? = null, - val guidanceType: AudioGuidanceTypeDto? = null, -) { + val guidanceType: AudioGuidanceTypeDto? = null +) + { companion object { fun fromList(pigeonVar_list: List): NavigationAudioGuidanceSettingsDto { val isBluetoothAudioEnabled = pigeonVar_list[0] as Boolean? val isVibrationEnabled = pigeonVar_list[1] as Boolean? val guidanceType = pigeonVar_list[2] as AudioGuidanceTypeDto? - return NavigationAudioGuidanceSettingsDto( - isBluetoothAudioEnabled, - isVibrationEnabled, - guidanceType, - ) + return NavigationAudioGuidanceSettingsDto(isBluetoothAudioEnabled, isVibrationEnabled, guidanceType) } } - fun toList(): List { - return listOf(isBluetoothAudioEnabled, isVibrationEnabled, guidanceType) + return listOf( + isBluetoothAudioEnabled, + isVibrationEnabled, + guidanceType, + ) } - override fun equals(other: Any?): Boolean { if (other !is NavigationAudioGuidanceSettingsDto) { return false @@ -1988,25 +1984,27 @@ data class NavigationAudioGuidanceSettingsDto( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) - } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class SimulationOptionsDto(val speedMultiplier: Double) { +data class SimulationOptionsDto ( + val speedMultiplier: Double +) + { companion object { fun fromList(pigeonVar_list: List): SimulationOptionsDto { val speedMultiplier = pigeonVar_list[0] as Double return SimulationOptionsDto(speedMultiplier) } } - fun toList(): List { - return listOf(speedMultiplier) + return listOf( + speedMultiplier, + ) } - override fun equals(other: Any?): Boolean { if (other !is SimulationOptionsDto) { return false @@ -2014,14 +2012,17 @@ data class SimulationOptionsDto(val speedMultiplier: Double) { if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) - } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class LatLngDto(val latitude: Double, val longitude: Double) { +data class LatLngDto ( + val latitude: Double, + val longitude: Double +) + { companion object { fun fromList(pigeonVar_list: List): LatLngDto { val latitude = pigeonVar_list[0] as Double @@ -2029,11 +2030,12 @@ data class LatLngDto(val latitude: Double, val longitude: Double) { return LatLngDto(latitude, longitude) } } - fun toList(): List { - return listOf(latitude, longitude) + return listOf( + latitude, + longitude, + ) } - override fun equals(other: Any?): Boolean { if (other !is LatLngDto) { return false @@ -2041,14 +2043,17 @@ data class LatLngDto(val latitude: Double, val longitude: Double) { if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) - } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class LatLngBoundsDto(val southwest: LatLngDto, val northeast: LatLngDto) { +data class LatLngBoundsDto ( + val southwest: LatLngDto, + val northeast: LatLngDto +) + { companion object { fun fromList(pigeonVar_list: List): LatLngBoundsDto { val southwest = pigeonVar_list[0] as LatLngDto @@ -2056,11 +2061,12 @@ data class LatLngBoundsDto(val southwest: LatLngDto, val northeast: LatLngDto) { return LatLngBoundsDto(southwest, northeast) } } - fun toList(): List { - return listOf(southwest, northeast) + return listOf( + southwest, + northeast, + ) } - override fun equals(other: Any?): Boolean { if (other !is LatLngBoundsDto) { return false @@ -2068,17 +2074,17 @@ data class LatLngBoundsDto(val southwest: LatLngDto, val northeast: LatLngDto) { if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) - } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class SpeedingUpdatedEventDto( +data class SpeedingUpdatedEventDto ( val percentageAboveLimit: Double, - val severity: SpeedAlertSeverityDto, -) { + val severity: SpeedAlertSeverityDto +) + { companion object { fun fromList(pigeonVar_list: List): SpeedingUpdatedEventDto { val percentageAboveLimit = pigeonVar_list[0] as Double @@ -2086,11 +2092,12 @@ data class SpeedingUpdatedEventDto( return SpeedingUpdatedEventDto(percentageAboveLimit, severity) } } - fun toList(): List { - return listOf(percentageAboveLimit, severity) + return listOf( + percentageAboveLimit, + severity, + ) } - override fun equals(other: Any?): Boolean { if (other !is SpeedingUpdatedEventDto) { return false @@ -2098,17 +2105,17 @@ data class SpeedingUpdatedEventDto( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) - } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class GpsAvailabilityChangeEventDto( +data class GpsAvailabilityChangeEventDto ( val isGpsLost: Boolean, - val isGpsValidForNavigation: Boolean, -) { + val isGpsValidForNavigation: Boolean +) + { companion object { fun fromList(pigeonVar_list: List): GpsAvailabilityChangeEventDto { val isGpsLost = pigeonVar_list[0] as Boolean @@ -2116,11 +2123,12 @@ data class GpsAvailabilityChangeEventDto( return GpsAvailabilityChangeEventDto(isGpsLost, isGpsValidForNavigation) } } - fun toList(): List { - return listOf(isGpsLost, isGpsValidForNavigation) + return listOf( + isGpsLost, + isGpsValidForNavigation, + ) } - override fun equals(other: Any?): Boolean { if (other !is GpsAvailabilityChangeEventDto) { return false @@ -2128,17 +2136,17 @@ data class GpsAvailabilityChangeEventDto( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) - } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class SpeedAlertOptionsThresholdPercentageDto( +data class SpeedAlertOptionsThresholdPercentageDto ( val percentage: Double, - val severity: SpeedAlertSeverityDto, -) { + val severity: SpeedAlertSeverityDto +) + { companion object { fun fromList(pigeonVar_list: List): SpeedAlertOptionsThresholdPercentageDto { val percentage = pigeonVar_list[0] as Double @@ -2146,11 +2154,12 @@ data class SpeedAlertOptionsThresholdPercentageDto( return SpeedAlertOptionsThresholdPercentageDto(percentage, severity) } } - fun toList(): List { - return listOf(percentage, severity) + return listOf( + percentage, + severity, + ) } - override fun equals(other: Any?): Boolean { if (other !is SpeedAlertOptionsThresholdPercentageDto) { return false @@ -2158,31 +2167,26 @@ data class SpeedAlertOptionsThresholdPercentageDto( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) - } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class SpeedAlertOptionsDto( +data class SpeedAlertOptionsDto ( val severityUpgradeDurationSeconds: Double, val minorSpeedAlertThresholdPercentage: Double, - val majorSpeedAlertThresholdPercentage: Double, -) { + val majorSpeedAlertThresholdPercentage: Double +) + { companion object { fun fromList(pigeonVar_list: List): SpeedAlertOptionsDto { val severityUpgradeDurationSeconds = pigeonVar_list[0] as Double val minorSpeedAlertThresholdPercentage = pigeonVar_list[1] as Double val majorSpeedAlertThresholdPercentage = pigeonVar_list[2] as Double - return SpeedAlertOptionsDto( - severityUpgradeDurationSeconds, - minorSpeedAlertThresholdPercentage, - majorSpeedAlertThresholdPercentage, - ) + return SpeedAlertOptionsDto(severityUpgradeDurationSeconds, minorSpeedAlertThresholdPercentage, majorSpeedAlertThresholdPercentage) } } - fun toList(): List { return listOf( severityUpgradeDurationSeconds, @@ -2190,7 +2194,6 @@ data class SpeedAlertOptionsDto( majorSpeedAlertThresholdPercentage, ) } - override fun equals(other: Any?): Boolean { if (other !is SpeedAlertOptionsDto) { return false @@ -2198,18 +2201,18 @@ data class SpeedAlertOptionsDto( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) - } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class RouteSegmentTrafficDataRoadStretchRenderingDataDto( +data class RouteSegmentTrafficDataRoadStretchRenderingDataDto ( val style: RouteSegmentTrafficDataRoadStretchRenderingDataStyleDto, val lengthMeters: Long, - val offsetMeters: Long, -) { + val offsetMeters: Long +) + { companion object { fun fromList(pigeonVar_list: List): RouteSegmentTrafficDataRoadStretchRenderingDataDto { val style = pigeonVar_list[0] as RouteSegmentTrafficDataRoadStretchRenderingDataStyleDto @@ -2218,11 +2221,13 @@ data class RouteSegmentTrafficDataRoadStretchRenderingDataDto( return RouteSegmentTrafficDataRoadStretchRenderingDataDto(style, lengthMeters, offsetMeters) } } - fun toList(): List { - return listOf(style, lengthMeters, offsetMeters) + return listOf( + style, + lengthMeters, + offsetMeters, + ) } - override fun equals(other: Any?): Boolean { if (other !is RouteSegmentTrafficDataRoadStretchRenderingDataDto) { return false @@ -2230,30 +2235,30 @@ data class RouteSegmentTrafficDataRoadStretchRenderingDataDto( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) - } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class RouteSegmentTrafficDataDto( +data class RouteSegmentTrafficDataDto ( val status: RouteSegmentTrafficDataStatusDto, - val roadStretchRenderingDataList: List, -) { + val roadStretchRenderingDataList: List +) + { companion object { fun fromList(pigeonVar_list: List): RouteSegmentTrafficDataDto { val status = pigeonVar_list[0] as RouteSegmentTrafficDataStatusDto - val roadStretchRenderingDataList = - pigeonVar_list[1] as List + val roadStretchRenderingDataList = pigeonVar_list[1] as List return RouteSegmentTrafficDataDto(status, roadStretchRenderingDataList) } } - fun toList(): List { - return listOf(status, roadStretchRenderingDataList) + return listOf( + status, + roadStretchRenderingDataList, + ) } - override fun equals(other: Any?): Boolean { if (other !is RouteSegmentTrafficDataDto) { return false @@ -2261,19 +2266,19 @@ data class RouteSegmentTrafficDataDto( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) - } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class RouteSegmentDto( +data class RouteSegmentDto ( val trafficData: RouteSegmentTrafficDataDto? = null, val destinationLatLng: LatLngDto, val latLngs: List? = null, - val destinationWaypoint: NavigationWaypointDto? = null, -) { + val destinationWaypoint: NavigationWaypointDto? = null +) + { companion object { fun fromList(pigeonVar_list: List): RouteSegmentDto { val trafficData = pigeonVar_list[0] as RouteSegmentTrafficDataDto? @@ -2283,11 +2288,14 @@ data class RouteSegmentDto( return RouteSegmentDto(trafficData, destinationLatLng, latLngs, destinationWaypoint) } } - fun toList(): List { - return listOf(trafficData, destinationLatLng, latLngs, destinationWaypoint) + return listOf( + trafficData, + destinationLatLng, + latLngs, + destinationWaypoint, + ) } - override fun equals(other: Any?): Boolean { if (other !is RouteSegmentDto) { return false @@ -2295,24 +2303,23 @@ data class RouteSegmentDto( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) - } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } override fun hashCode(): Int = toList().hashCode() } /** - * One of the possible directions from a lane at the end of a route step, and whether it is on the - * recommended route. + * One of the possible directions from a lane at the end of a route step, and whether it is on the recommended route. * * Generated class from Pigeon that represents data sent in messages. */ -data class LaneDirectionDto( +data class LaneDirectionDto ( /** Shape for this lane direction. */ val laneShape: LaneShapeDto, /** Whether this lane is recommended. */ - val isRecommended: Boolean, -) { + val isRecommended: Boolean +) + { companion object { fun fromList(pigeonVar_list: List): LaneDirectionDto { val laneShape = pigeonVar_list[0] as LaneShapeDto @@ -2320,11 +2327,12 @@ data class LaneDirectionDto( return LaneDirectionDto(laneShape, isRecommended) } } - fun toList(): List { - return listOf(laneShape, isRecommended) + return listOf( + laneShape, + isRecommended, + ) } - override fun equals(other: Any?): Boolean { if (other !is LaneDirectionDto) { return false @@ -2332,8 +2340,7 @@ data class LaneDirectionDto( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) - } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } override fun hashCode(): Int = toList().hashCode() } @@ -2343,24 +2350,22 @@ data class LaneDirectionDto( * * Generated class from Pigeon that represents data sent in messages. */ -data class LaneDto( - /** - * List of possible directions a driver can follow when using this lane at the end of the - * respective route step - */ +data class LaneDto ( + /** List of possible directions a driver can follow when using this lane at the end of the respective route step */ val laneDirections: List -) { +) + { companion object { fun fromList(pigeonVar_list: List): LaneDto { val laneDirections = pigeonVar_list[0] as List return LaneDto(laneDirections) } } - fun toList(): List { - return listOf(laneDirections) + return listOf( + laneDirections, + ) } - override fun equals(other: Any?): Boolean { if (other !is LaneDto) { return false @@ -2368,8 +2373,7 @@ data class LaneDto( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) - } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } override fun hashCode(): Int = toList().hashCode() } @@ -2379,7 +2383,7 @@ data class LaneDto( * * Generated class from Pigeon that represents data sent in messages. */ -data class StepInfoDto( +data class StepInfoDto ( /** Distance in meters from the previous step to this step if available, otherwise null. */ val distanceFromPrevStepMeters: Long? = null, /** Time in seconds from the previous step to this step if available, otherwise null. */ @@ -2395,8 +2399,8 @@ data class StepInfoDto( /** The simplified version of the road name if available, otherwise null. */ val simpleRoadName: String? = null, /** - * The counted number of the exit to take relative to the location where the roundabout was - * entered if available, otherwise null. + * The counted number of the exit to take relative to the location where the + * roundabout was entered if available, otherwise null. */ val roundaboutTurnNumber: Long? = null, /** The list of available lanes at the end of this route step if available, otherwise null. */ @@ -2406,17 +2410,17 @@ data class StepInfoDto( /** The index of the step in the list of all steps in the route if available, otherwise null. */ val stepNumber: Long? = null, /** - * Image descriptor for the generated maneuver image for the current step if available, otherwise - * null. This image is generated only if step image generation option includes maneuver images. + * Image descriptor for the generated maneuver image for the current step if available, otherwise null. + * This image is generated only if step image generation option includes maneuver images. */ val maneuverImage: ImageDescriptorDto? = null, /** - * Image descriptor for the generated lane guidance image for the current step if available, - * otherwise null. This image is generated only if step image generation option includes lane - * images. + * Image descriptor for the generated lane guidance image for the current step if available, otherwise null. + * This image is generated only if step image generation option includes lane images. */ - val lanesImage: ImageDescriptorDto? = null, -) { + val lanesImage: ImageDescriptorDto? = null +) + { companion object { fun fromList(pigeonVar_list: List): StepInfoDto { val distanceFromPrevStepMeters = pigeonVar_list[0] as Long? @@ -2432,24 +2436,9 @@ data class StepInfoDto( val stepNumber = pigeonVar_list[10] as Long? val maneuverImage = pigeonVar_list[11] as ImageDescriptorDto? val lanesImage = pigeonVar_list[12] as ImageDescriptorDto? - return StepInfoDto( - distanceFromPrevStepMeters, - timeFromPrevStepSeconds, - drivingSide, - exitNumber, - fullInstructions, - fullRoadName, - simpleRoadName, - roundaboutTurnNumber, - lanes, - maneuver, - stepNumber, - maneuverImage, - lanesImage, - ) + return StepInfoDto(distanceFromPrevStepMeters, timeFromPrevStepSeconds, drivingSide, exitNumber, fullInstructions, fullRoadName, simpleRoadName, roundaboutTurnNumber, lanes, maneuver, stepNumber, maneuverImage, lanesImage) } } - fun toList(): List { return listOf( distanceFromPrevStepMeters, @@ -2467,7 +2456,6 @@ data class StepInfoDto( lanesImage, ) } - override fun equals(other: Any?): Boolean { if (other !is StepInfoDto) { return false @@ -2475,19 +2463,18 @@ data class StepInfoDto( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) - } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } override fun hashCode(): Int = toList().hashCode() } /** - * Contains information about the state of navigation, the current nav step if available, and - * remaining steps if available. + * Contains information about the state of navigation, the current nav step if + * available, and remaining steps if available. * * Generated class from Pigeon that represents data sent in messages. */ -data class NavInfoDto( +data class NavInfoDto ( /** The current state of navigation. */ val navState: NavStateDto, /** Information about the upcoming maneuver step. */ @@ -2496,11 +2483,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, /** @@ -2509,11 +2499,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, /** @@ -2521,8 +2514,9 @@ data class NavInfoDto( * * Android only. */ - val timeToNextDestinationSeconds: Long? = null, -) { + val timeToNextDestinationSeconds: Long? = null +) + { companion object { fun fromList(pigeonVar_list: List): NavInfoDto { val navState = pigeonVar_list[0] as NavStateDto @@ -2535,21 +2529,9 @@ data class NavInfoDto( val timeToCurrentStepSeconds = pigeonVar_list[7] as Long? val timeToFinalDestinationSeconds = pigeonVar_list[8] as Long? val timeToNextDestinationSeconds = pigeonVar_list[9] as Long? - return NavInfoDto( - navState, - currentStep, - remainingSteps, - routeChanged, - distanceToCurrentStepMeters, - distanceToFinalDestinationMeters, - distanceToNextDestinationMeters, - timeToCurrentStepSeconds, - timeToFinalDestinationSeconds, - timeToNextDestinationSeconds, - ) + return NavInfoDto(navState, currentStep, remainingSteps, routeChanged, distanceToCurrentStepMeters, distanceToFinalDestinationMeters, distanceToNextDestinationMeters, timeToCurrentStepSeconds, timeToFinalDestinationSeconds, timeToNextDestinationSeconds) } } - fun toList(): List { return listOf( navState, @@ -2564,7 +2546,6 @@ data class NavInfoDto( timeToNextDestinationSeconds, ) } - override fun equals(other: Any?): Boolean { if (other !is NavInfoDto) { return false @@ -2572,8 +2553,7 @@ data class NavInfoDto( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) - } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } override fun hashCode(): Int = toList().hashCode() } @@ -2581,12 +2561,12 @@ data class NavInfoDto( /** * UI customization parameters for the Terms and Conditions dialog. * - * All color values are 32-bit ARGB integers (format: 0xAARRGGBB). All parameters are optional - if - * not provided, platform defaults will be used. + * All color values are 32-bit ARGB integers (format: 0xAARRGGBB). + * All parameters are optional - if not provided, platform defaults will be used. * * Generated class from Pigeon that represents data sent in messages. */ -data class TermsAndConditionsUIParamsDto( +data class TermsAndConditionsUIParamsDto ( /** Background color of the dialog box. */ val backgroundColor: Long? = null, /** Text color for the dialog title. */ @@ -2596,8 +2576,9 @@ data class TermsAndConditionsUIParamsDto( /** Text color for the accept button. */ val acceptButtonTextColor: Long? = null, /** Text color for the cancel button. */ - val cancelButtonTextColor: Long? = null, -) { + val cancelButtonTextColor: Long? = null +) + { companion object { fun fromList(pigeonVar_list: List): TermsAndConditionsUIParamsDto { val backgroundColor = pigeonVar_list[0] as Long? @@ -2605,16 +2586,9 @@ data class TermsAndConditionsUIParamsDto( val mainTextColor = pigeonVar_list[2] as Long? val acceptButtonTextColor = pigeonVar_list[3] as Long? val cancelButtonTextColor = pigeonVar_list[4] as Long? - return TermsAndConditionsUIParamsDto( - backgroundColor, - titleColor, - mainTextColor, - acceptButtonTextColor, - cancelButtonTextColor, - ) + return TermsAndConditionsUIParamsDto(backgroundColor, titleColor, mainTextColor, acceptButtonTextColor, cancelButtonTextColor) } } - fun toList(): List { return listOf( backgroundColor, @@ -2624,7 +2598,6 @@ data class TermsAndConditionsUIParamsDto( cancelButtonTextColor, ) } - override fun equals(other: Any?): Boolean { if (other !is TermsAndConditionsUIParamsDto) { return false @@ -2632,8 +2605,7 @@ data class TermsAndConditionsUIParamsDto( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) - } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } override fun hashCode(): Int = toList().hashCode() } @@ -2643,14 +2615,19 @@ data class TermsAndConditionsUIParamsDto( * * Generated class from Pigeon that represents data sent in messages. */ -data class StepImageGenerationOptionsDto( +data class StepImageGenerationOptionsDto ( /** - * Whether to generate maneuver images for navigation steps. Defaults to false if not specified. + * Whether to generate maneuver images for navigation steps. + * Defaults to false if not specified. */ val generateManeuverImages: Boolean? = null, - /** Whether to generate lane images for navigation steps. Defaults to false if not specified. */ - val generateLaneImages: Boolean? = null, -) { + /** + * Whether to generate lane images for navigation steps. + * Defaults to false if not specified. + */ + val generateLaneImages: Boolean? = null +) + { companion object { fun fromList(pigeonVar_list: List): StepImageGenerationOptionsDto { val generateManeuverImages = pigeonVar_list[0] as Boolean? @@ -2658,11 +2635,12 @@ data class StepImageGenerationOptionsDto( return StepImageGenerationOptionsDto(generateManeuverImages, generateLaneImages) } } - fun toList(): List { - return listOf(generateManeuverImages, generateLaneImages) + return listOf( + generateManeuverImages, + generateLaneImages, + ) } - override fun equals(other: Any?): Boolean { if (other !is StepImageGenerationOptionsDto) { return false @@ -2670,17 +2648,17 @@ data class StepImageGenerationOptionsDto( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) - } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } override fun hashCode(): Int = toList().hashCode() } - private open class messagesPigeonCodec : StandardMessageCodec() { override fun readValueOfType(type: Byte, buffer: ByteBuffer): Any? { return when (type) { 129.toByte() -> { - return (readValue(buffer) as Long?)?.let { MapViewTypeDto.ofRaw(it.toInt()) } + return (readValue(buffer) as Long?)?.let { + MapViewTypeDto.ofRaw(it.toInt()) + } } 130.toByte() -> { return (readValue(buffer) as Long?)?.let { @@ -2688,55 +2666,89 @@ private open class messagesPigeonCodec : StandardMessageCodec() { } } 131.toByte() -> { - return (readValue(buffer) as Long?)?.let { MapTypeDto.ofRaw(it.toInt()) } + return (readValue(buffer) as Long?)?.let { + MapTypeDto.ofRaw(it.toInt()) + } } 132.toByte() -> { - return (readValue(buffer) as Long?)?.let { MapColorSchemeDto.ofRaw(it.toInt()) } + return (readValue(buffer) as Long?)?.let { + MapColorSchemeDto.ofRaw(it.toInt()) + } } 133.toByte() -> { - return (readValue(buffer) as Long?)?.let { NavigationForceNightModeDto.ofRaw(it.toInt()) } + return (readValue(buffer) as Long?)?.let { + NavigationForceNightModeDto.ofRaw(it.toInt()) + } } 134.toByte() -> { - return (readValue(buffer) as Long?)?.let { CameraPerspectiveDto.ofRaw(it.toInt()) } + return (readValue(buffer) as Long?)?.let { + CameraPerspectiveDto.ofRaw(it.toInt()) + } } 135.toByte() -> { - return (readValue(buffer) as Long?)?.let { RegisteredImageTypeDto.ofRaw(it.toInt()) } + return (readValue(buffer) as Long?)?.let { + RegisteredImageTypeDto.ofRaw(it.toInt()) + } } 136.toByte() -> { - return (readValue(buffer) as Long?)?.let { MarkerEventTypeDto.ofRaw(it.toInt()) } + return (readValue(buffer) as Long?)?.let { + MarkerEventTypeDto.ofRaw(it.toInt()) + } } 137.toByte() -> { - return (readValue(buffer) as Long?)?.let { MarkerDragEventTypeDto.ofRaw(it.toInt()) } + return (readValue(buffer) as Long?)?.let { + MarkerDragEventTypeDto.ofRaw(it.toInt()) + } } 138.toByte() -> { - return (readValue(buffer) as Long?)?.let { StrokeJointTypeDto.ofRaw(it.toInt()) } + return (readValue(buffer) as Long?)?.let { + StrokeJointTypeDto.ofRaw(it.toInt()) + } } 139.toByte() -> { - return (readValue(buffer) as Long?)?.let { PatternTypeDto.ofRaw(it.toInt()) } + return (readValue(buffer) as Long?)?.let { + PatternTypeDto.ofRaw(it.toInt()) + } } 140.toByte() -> { - return (readValue(buffer) as Long?)?.let { CameraEventTypeDto.ofRaw(it.toInt()) } + return (readValue(buffer) as Long?)?.let { + CameraEventTypeDto.ofRaw(it.toInt()) + } } 141.toByte() -> { - return (readValue(buffer) as Long?)?.let { AlternateRoutesStrategyDto.ofRaw(it.toInt()) } + return (readValue(buffer) as Long?)?.let { + AlternateRoutesStrategyDto.ofRaw(it.toInt()) + } } 142.toByte() -> { - return (readValue(buffer) as Long?)?.let { RoutingStrategyDto.ofRaw(it.toInt()) } + return (readValue(buffer) as Long?)?.let { + RoutingStrategyDto.ofRaw(it.toInt()) + } } 143.toByte() -> { - return (readValue(buffer) as Long?)?.let { TravelModeDto.ofRaw(it.toInt()) } + return (readValue(buffer) as Long?)?.let { + TravelModeDto.ofRaw(it.toInt()) + } } 144.toByte() -> { - return (readValue(buffer) as Long?)?.let { RouteStatusDto.ofRaw(it.toInt()) } + return (readValue(buffer) as Long?)?.let { + RouteStatusDto.ofRaw(it.toInt()) + } } 145.toByte() -> { - return (readValue(buffer) as Long?)?.let { TrafficDelaySeverityDto.ofRaw(it.toInt()) } + return (readValue(buffer) as Long?)?.let { + TrafficDelaySeverityDto.ofRaw(it.toInt()) + } } 146.toByte() -> { - return (readValue(buffer) as Long?)?.let { AudioGuidanceTypeDto.ofRaw(it.toInt()) } + return (readValue(buffer) as Long?)?.let { + AudioGuidanceTypeDto.ofRaw(it.toInt()) + } } 147.toByte() -> { - return (readValue(buffer) as Long?)?.let { SpeedAlertSeverityDto.ofRaw(it.toInt()) } + return (readValue(buffer) as Long?)?.let { + SpeedAlertSeverityDto.ofRaw(it.toInt()) + } } 148.toByte() -> { return (readValue(buffer) as Long?)?.let { @@ -2749,91 +2761,149 @@ private open class messagesPigeonCodec : StandardMessageCodec() { } } 150.toByte() -> { - return (readValue(buffer) as Long?)?.let { ManeuverDto.ofRaw(it.toInt()) } + return (readValue(buffer) as Long?)?.let { + ManeuverDto.ofRaw(it.toInt()) + } } 151.toByte() -> { - return (readValue(buffer) as Long?)?.let { DrivingSideDto.ofRaw(it.toInt()) } + return (readValue(buffer) as Long?)?.let { + DrivingSideDto.ofRaw(it.toInt()) + } } 152.toByte() -> { - return (readValue(buffer) as Long?)?.let { NavStateDto.ofRaw(it.toInt()) } + return (readValue(buffer) as Long?)?.let { + NavStateDto.ofRaw(it.toInt()) + } } 153.toByte() -> { - return (readValue(buffer) as Long?)?.let { LaneShapeDto.ofRaw(it.toInt()) } + return (readValue(buffer) as Long?)?.let { + LaneShapeDto.ofRaw(it.toInt()) + } } 154.toByte() -> { - return (readValue(buffer) as Long?)?.let { TaskRemovedBehaviorDto.ofRaw(it.toInt()) } + return (readValue(buffer) as Long?)?.let { + TaskRemovedBehaviorDto.ofRaw(it.toInt()) + } } 155.toByte() -> { - return (readValue(buffer) as? List)?.let { AutoMapOptionsDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + AutoMapOptionsDto.fromList(it) + } } 156.toByte() -> { - return (readValue(buffer) as? List)?.let { MapOptionsDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + MapOptionsDto.fromList(it) + } } 157.toByte() -> { - return (readValue(buffer) as? List)?.let { NavigationViewOptionsDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + NavigationViewOptionsDto.fromList(it) + } } 158.toByte() -> { - return (readValue(buffer) as? List)?.let { ViewCreationOptionsDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + ViewCreationOptionsDto.fromList(it) + } } 159.toByte() -> { - return (readValue(buffer) as? List)?.let { CameraPositionDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + CameraPositionDto.fromList(it) + } } 160.toByte() -> { - return (readValue(buffer) as? List)?.let { MarkerDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + MarkerDto.fromList(it) + } } 161.toByte() -> { - return (readValue(buffer) as? List)?.let { MarkerOptionsDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + MarkerOptionsDto.fromList(it) + } } 162.toByte() -> { - return (readValue(buffer) as? List)?.let { ImageDescriptorDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + ImageDescriptorDto.fromList(it) + } } 163.toByte() -> { - return (readValue(buffer) as? List)?.let { InfoWindowDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + InfoWindowDto.fromList(it) + } } 164.toByte() -> { - return (readValue(buffer) as? List)?.let { MarkerAnchorDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + MarkerAnchorDto.fromList(it) + } } 165.toByte() -> { - return (readValue(buffer) as? List)?.let { PointOfInterestDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + PointOfInterestDto.fromList(it) + } } 166.toByte() -> { - return (readValue(buffer) as? List)?.let { IndoorLevelDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + IndoorLevelDto.fromList(it) + } } 167.toByte() -> { - return (readValue(buffer) as? List)?.let { IndoorBuildingDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + IndoorBuildingDto.fromList(it) + } } 168.toByte() -> { - return (readValue(buffer) as? List)?.let { PolygonDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + PolygonDto.fromList(it) + } } 169.toByte() -> { - return (readValue(buffer) as? List)?.let { PolygonOptionsDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + PolygonOptionsDto.fromList(it) + } } 170.toByte() -> { - return (readValue(buffer) as? List)?.let { PolygonHoleDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + PolygonHoleDto.fromList(it) + } } 171.toByte() -> { - return (readValue(buffer) as? List)?.let { StyleSpanStrokeStyleDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + StyleSpanStrokeStyleDto.fromList(it) + } } 172.toByte() -> { - return (readValue(buffer) as? List)?.let { StyleSpanDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + StyleSpanDto.fromList(it) + } } 173.toByte() -> { - return (readValue(buffer) as? List)?.let { PolylineDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + PolylineDto.fromList(it) + } } 174.toByte() -> { - return (readValue(buffer) as? List)?.let { PatternItemDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + PatternItemDto.fromList(it) + } } 175.toByte() -> { - return (readValue(buffer) as? List)?.let { PolylineOptionsDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + PolylineOptionsDto.fromList(it) + } } 176.toByte() -> { - return (readValue(buffer) as? List)?.let { CircleDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + CircleDto.fromList(it) + } } 177.toByte() -> { - return (readValue(buffer) as? List)?.let { CircleOptionsDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + CircleOptionsDto.fromList(it) + } } 178.toByte() -> { - return (readValue(buffer) as? List)?.let { MapPaddingDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + MapPaddingDto.fromList(it) + } } 179.toByte() -> { return (readValue(buffer) as? List)?.let { @@ -2841,19 +2911,29 @@ private open class messagesPigeonCodec : StandardMessageCodec() { } } 180.toByte() -> { - return (readValue(buffer) as? List)?.let { RouteTokenOptionsDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + RouteTokenOptionsDto.fromList(it) + } } 181.toByte() -> { - return (readValue(buffer) as? List)?.let { DestinationsDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + DestinationsDto.fromList(it) + } } 182.toByte() -> { - return (readValue(buffer) as? List)?.let { RoutingOptionsDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + RoutingOptionsDto.fromList(it) + } } 183.toByte() -> { - return (readValue(buffer) as? List)?.let { NavigationDisplayOptionsDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + NavigationDisplayOptionsDto.fromList(it) + } } 184.toByte() -> { - return (readValue(buffer) as? List)?.let { NavigationWaypointDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + NavigationWaypointDto.fromList(it) + } } 185.toByte() -> { return (readValue(buffer) as? List)?.let { @@ -2861,7 +2941,9 @@ private open class messagesPigeonCodec : StandardMessageCodec() { } } 186.toByte() -> { - return (readValue(buffer) as? List)?.let { NavigationTimeAndDistanceDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + NavigationTimeAndDistanceDto.fromList(it) + } } 187.toByte() -> { return (readValue(buffer) as? List)?.let { @@ -2869,16 +2951,24 @@ private open class messagesPigeonCodec : StandardMessageCodec() { } } 188.toByte() -> { - return (readValue(buffer) as? List)?.let { SimulationOptionsDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + SimulationOptionsDto.fromList(it) + } } 189.toByte() -> { - return (readValue(buffer) as? List)?.let { LatLngDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + LatLngDto.fromList(it) + } } 190.toByte() -> { - return (readValue(buffer) as? List)?.let { LatLngBoundsDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + LatLngBoundsDto.fromList(it) + } } 191.toByte() -> { - return (readValue(buffer) as? List)?.let { SpeedingUpdatedEventDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + SpeedingUpdatedEventDto.fromList(it) + } } 192.toByte() -> { return (readValue(buffer) as? List)?.let { @@ -2891,7 +2981,9 @@ private open class messagesPigeonCodec : StandardMessageCodec() { } } 194.toByte() -> { - return (readValue(buffer) as? List)?.let { SpeedAlertOptionsDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + SpeedAlertOptionsDto.fromList(it) + } } 195.toByte() -> { return (readValue(buffer) as? List)?.let { @@ -2899,22 +2991,34 @@ private open class messagesPigeonCodec : StandardMessageCodec() { } } 196.toByte() -> { - return (readValue(buffer) as? List)?.let { RouteSegmentTrafficDataDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + RouteSegmentTrafficDataDto.fromList(it) + } } 197.toByte() -> { - return (readValue(buffer) as? List)?.let { RouteSegmentDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + RouteSegmentDto.fromList(it) + } } 198.toByte() -> { - return (readValue(buffer) as? List)?.let { LaneDirectionDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + LaneDirectionDto.fromList(it) + } } 199.toByte() -> { - return (readValue(buffer) as? List)?.let { LaneDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + LaneDto.fromList(it) + } } 200.toByte() -> { - return (readValue(buffer) as? List)?.let { StepInfoDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + StepInfoDto.fromList(it) + } } 201.toByte() -> { - return (readValue(buffer) as? List)?.let { NavInfoDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + NavInfoDto.fromList(it) + } } 202.toByte() -> { return (readValue(buffer) as? List)?.let { @@ -2929,8 +3033,7 @@ private open class messagesPigeonCodec : StandardMessageCodec() { else -> super.readValueOfType(type, buffer) } } - - override fun writeValue(stream: ByteArrayOutputStream, value: Any?) { + override fun writeValue(stream: ByteArrayOutputStream, value: Any?) { when (value) { is MapViewTypeDto -> { stream.write(129) @@ -3237,10 +3340,12 @@ private open class messagesPigeonCodec : StandardMessageCodec() { } } + /** - * Dummy interface to force generation of the platform view creation params. Pigeon only generates - * messages if the messages are used in API. [ViewCreationOptionsDto] is encoded and decoded - * directly to generate a PlatformView creation message. + * Dummy interface to force generation of the platform view creation params. + * Pigeon only generates messages if the messages are used in API. + * [ViewCreationOptionsDto] is encoded and decoded directly to generate a + * PlatformView creation message. * * This API should never be used directly. * @@ -3251,37 +3356,25 @@ interface ViewCreationApi { companion object { /** The codec used by ViewCreationApi. */ - val codec: MessageCodec by lazy { messagesPigeonCodec() } - - /** - * Sets up an instance of `ViewCreationApi` to handle messages through the `binaryMessenger`. - */ + val codec: MessageCodec by lazy { + messagesPigeonCodec() + } + /** Sets up an instance of `ViewCreationApi` to handle messages through the `binaryMessenger`. */ @JvmOverloads - fun setUp( - binaryMessenger: BinaryMessenger, - api: ViewCreationApi?, - messageChannelSuffix: String = "", - ) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + fun setUp(binaryMessenger: BinaryMessenger, api: ViewCreationApi?, messageChannelSuffix: String = "") { + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.ViewCreationApi.create$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.ViewCreationApi.create$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val msgArg = args[0] as ViewCreationOptionsDto - val wrapped: List = - try { - api.create(msgArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.create(msgArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -3291,300 +3384,137 @@ interface ViewCreationApi { } } } - /** Generated interface from Pigeon that represents a handler of messages from Flutter. */ interface MapViewApi { fun awaitMapReady(viewId: Long, callback: (Result) -> Unit) - fun isMyLocationEnabled(viewId: Long): Boolean - fun setMyLocationEnabled(viewId: Long, enabled: Boolean) - fun getMyLocation(viewId: Long): LatLngDto? - fun getMapType(viewId: Long): MapTypeDto - fun setMapType(viewId: Long, mapType: MapTypeDto) - fun setMapStyle(viewId: Long, styleJson: String) - fun isNavigationTripProgressBarEnabled(viewId: Long): Boolean - fun setNavigationTripProgressBarEnabled(viewId: Long, enabled: Boolean) - fun isNavigationHeaderEnabled(viewId: Long): Boolean - fun setNavigationHeaderEnabled(viewId: Long, enabled: Boolean) - fun getNavigationHeaderStylingOptions(viewId: Long): NavigationHeaderStylingOptionsDto - - fun setNavigationHeaderStylingOptions( - viewId: Long, - stylingOptions: NavigationHeaderStylingOptionsDto, - ) - + fun setNavigationHeaderStylingOptions(viewId: Long, stylingOptions: NavigationHeaderStylingOptionsDto) fun isNavigationFooterEnabled(viewId: Long): Boolean - fun setNavigationFooterEnabled(viewId: Long, enabled: Boolean) - fun isRecenterButtonEnabled(viewId: Long): Boolean - fun setRecenterButtonEnabled(viewId: Long, enabled: Boolean) - fun isSpeedLimitIconEnabled(viewId: Long): Boolean - fun setSpeedLimitIconEnabled(viewId: Long, enabled: Boolean) - fun isSpeedometerEnabled(viewId: Long): Boolean - fun setSpeedometerEnabled(viewId: Long, enabled: Boolean) - fun isNavigationUIEnabled(viewId: Long): Boolean - fun setNavigationUIEnabled(viewId: Long, enabled: Boolean) - fun isMyLocationButtonEnabled(viewId: Long): Boolean - fun setMyLocationButtonEnabled(viewId: Long, enabled: Boolean) - fun isConsumeMyLocationButtonClickEventsEnabled(viewId: Long): Boolean - fun setConsumeMyLocationButtonClickEventsEnabled(viewId: Long, enabled: Boolean) - fun isZoomGesturesEnabled(viewId: Long): Boolean - fun setZoomGesturesEnabled(viewId: Long, enabled: Boolean) - fun isZoomControlsEnabled(viewId: Long): Boolean - fun setZoomControlsEnabled(viewId: Long, enabled: Boolean) - fun isCompassEnabled(viewId: Long): Boolean - fun setCompassEnabled(viewId: Long, enabled: Boolean) - fun isRotateGesturesEnabled(viewId: Long): Boolean - fun setRotateGesturesEnabled(viewId: Long, enabled: Boolean) - fun isScrollGesturesEnabled(viewId: Long): Boolean - fun setScrollGesturesEnabled(viewId: Long, enabled: Boolean) - fun isScrollGesturesEnabledDuringRotateOrZoom(viewId: Long): Boolean - fun setScrollGesturesDuringRotateOrZoomEnabled(viewId: Long, enabled: Boolean) - fun isTiltGesturesEnabled(viewId: Long): Boolean - fun setTiltGesturesEnabled(viewId: Long, enabled: Boolean) - fun isMapToolbarEnabled(viewId: Long): Boolean - fun setMapToolbarEnabled(viewId: Long, enabled: Boolean) - fun isTrafficEnabled(viewId: Long): Boolean - fun setTrafficEnabled(viewId: Long, enabled: Boolean) - fun isTrafficIncidentCardsEnabled(viewId: Long): Boolean - fun setTrafficIncidentCardsEnabled(viewId: Long, enabled: Boolean) - fun isTrafficPromptsEnabled(viewId: Long): Boolean - fun setTrafficPromptsEnabled(viewId: Long, enabled: Boolean) - fun isReportIncidentButtonEnabled(viewId: Long): Boolean - fun setReportIncidentButtonEnabled(viewId: Long, enabled: Boolean) - fun isIncidentReportingAvailable(viewId: Long): Boolean - fun showReportIncidentsPanel(viewId: Long) - fun isBuildingsEnabled(viewId: Long): Boolean - fun setBuildingsEnabled(viewId: Long, enabled: Boolean) - fun isIndoorEnabled(viewId: Long): Boolean - fun setIndoorEnabled(viewId: Long, enabled: Boolean) - fun isIndoorLevelPickerEnabled(viewId: Long): Boolean - fun setIndoorLevelPickerEnabled(viewId: Long, enabled: Boolean) - fun getFocusedIndoorBuilding(viewId: Long): IndoorBuildingDto? - /** - * Activates the indoor level at [levelIndex] within the currently focused indoor building. Throws - * if no building is focused or the index is out of range. + * Activates the indoor level at [levelIndex] within the currently focused + * indoor building. Throws if no building is focused or the index is out of + * range. */ fun activateIndoorLevel(viewId: Long, levelIndex: Long) - fun getCameraPosition(viewId: Long): CameraPositionDto - fun getVisibleRegion(viewId: Long): LatLngBoundsDto - fun followMyLocation(viewId: Long, perspective: CameraPerspectiveDto, zoomLevel: Double?) - - fun animateCameraToCameraPosition( - viewId: Long, - cameraPosition: CameraPositionDto, - duration: Long?, - callback: (Result) -> Unit, - ) - - fun animateCameraToLatLng( - viewId: Long, - point: LatLngDto, - duration: Long?, - callback: (Result) -> Unit, - ) - - fun animateCameraToLatLngBounds( - viewId: Long, - bounds: LatLngBoundsDto, - padding: Double, - duration: Long?, - callback: (Result) -> Unit, - ) - - fun animateCameraToLatLngZoom( - viewId: Long, - point: LatLngDto, - zoom: Double, - duration: Long?, - callback: (Result) -> Unit, - ) - - fun animateCameraByScroll( - viewId: Long, - scrollByDx: Double, - scrollByDy: Double, - duration: Long?, - callback: (Result) -> Unit, - ) - - fun animateCameraByZoom( - viewId: Long, - zoomBy: Double, - focusDx: Double?, - focusDy: Double?, - duration: Long?, - callback: (Result) -> Unit, - ) - - fun animateCameraToZoom( - viewId: Long, - zoom: Double, - duration: Long?, - callback: (Result) -> Unit, - ) - + fun animateCameraToCameraPosition(viewId: Long, cameraPosition: CameraPositionDto, duration: Long?, callback: (Result) -> Unit) + fun animateCameraToLatLng(viewId: Long, point: LatLngDto, duration: Long?, callback: (Result) -> Unit) + fun animateCameraToLatLngBounds(viewId: Long, bounds: LatLngBoundsDto, padding: Double, duration: Long?, callback: (Result) -> Unit) + fun animateCameraToLatLngZoom(viewId: Long, point: LatLngDto, zoom: Double, duration: Long?, callback: (Result) -> Unit) + fun animateCameraByScroll(viewId: Long, scrollByDx: Double, scrollByDy: Double, duration: Long?, callback: (Result) -> Unit) + fun animateCameraByZoom(viewId: Long, zoomBy: Double, focusDx: Double?, focusDy: Double?, duration: Long?, callback: (Result) -> Unit) + fun animateCameraToZoom(viewId: Long, zoom: Double, duration: Long?, callback: (Result) -> Unit) fun moveCameraToCameraPosition(viewId: Long, cameraPosition: CameraPositionDto) - fun moveCameraToLatLng(viewId: Long, point: LatLngDto) - fun moveCameraToLatLngBounds(viewId: Long, bounds: LatLngBoundsDto, padding: Double) - fun moveCameraToLatLngZoom(viewId: Long, point: LatLngDto, zoom: Double) - fun moveCameraByScroll(viewId: Long, scrollByDx: Double, scrollByDy: Double) - fun moveCameraByZoom(viewId: Long, zoomBy: Double, focusDx: Double?, focusDy: Double?) - fun moveCameraToZoom(viewId: Long, zoom: Double) - fun showRouteOverview(viewId: Long) - fun getMinZoomPreference(viewId: Long): Double - fun getMaxZoomPreference(viewId: Long): Double - fun resetMinMaxZoomPreference(viewId: Long) - fun setMinZoomPreference(viewId: Long, minZoomPreference: Double) - fun setMaxZoomPreference(viewId: Long, maxZoomPreference: Double) - fun getMarkers(viewId: Long): List - fun addMarkers(viewId: Long, markers: List): List - fun updateMarkers(viewId: Long, markers: List): List - fun removeMarkers(viewId: Long, markers: List) - fun clearMarkers(viewId: Long) - fun clear(viewId: Long) - fun getPolygons(viewId: Long): List - fun addPolygons(viewId: Long, polygons: List): List - fun updatePolygons(viewId: Long, polygons: List): List - fun removePolygons(viewId: Long, polygons: List) - fun clearPolygons(viewId: Long) - fun getPolylines(viewId: Long): List - fun addPolylines(viewId: Long, polylines: List): List - fun updatePolylines(viewId: Long, polylines: List): List - fun removePolylines(viewId: Long, polylines: List) - fun clearPolylines(viewId: Long) - fun getCircles(viewId: Long): List - fun addCircles(viewId: Long, circles: List): List - fun updateCircles(viewId: Long, circles: List): List - fun removeCircles(viewId: Long, circles: List) - fun clearCircles(viewId: Long) - fun enableOnCameraChangedEvents(viewId: Long) - fun setPadding(viewId: Long, padding: MapPaddingDto) - fun getPadding(viewId: Long): MapPaddingDto - fun getMapColorScheme(viewId: Long): MapColorSchemeDto - fun setMapColorScheme(viewId: Long, mapColorScheme: MapColorSchemeDto) - fun getForceNightMode(viewId: Long): NavigationForceNightModeDto - fun setForceNightMode(viewId: Long, forceNightMode: NavigationForceNightModeDto) companion object { /** The codec used by MapViewApi. */ - val codec: MessageCodec by lazy { messagesPigeonCodec() } - + val codec: MessageCodec by lazy { + messagesPigeonCodec() + } /** Sets up an instance of `MapViewApi` to handle messages through the `binaryMessenger`. */ @JvmOverloads - fun setUp( - binaryMessenger: BinaryMessenger, - api: MapViewApi?, - messageChannelSuffix: String = "", - ) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + fun setUp(binaryMessenger: BinaryMessenger, api: MapViewApi?, messageChannelSuffix: String = "") { + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.awaitMapReady$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.awaitMapReady$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -3603,22 +3533,16 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMyLocationEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMyLocationEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - listOf(api.isMyLocationEnabled(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.isMyLocationEnabled(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -3626,24 +3550,18 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMyLocationEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMyLocationEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val enabledArg = args[1] as Boolean - val wrapped: List = - try { - api.setMyLocationEnabled(viewIdArg, enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setMyLocationEnabled(viewIdArg, enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -3651,22 +3569,16 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMyLocation$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMyLocation$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - listOf(api.getMyLocation(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.getMyLocation(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -3674,22 +3586,16 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMapType$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMapType$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - listOf(api.getMapType(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.getMapType(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -3697,24 +3603,18 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapType$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapType$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val mapTypeArg = args[1] as MapTypeDto - val wrapped: List = - try { - api.setMapType(viewIdArg, mapTypeArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setMapType(viewIdArg, mapTypeArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -3722,24 +3622,18 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapStyle$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapStyle$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val styleJsonArg = args[1] as String - val wrapped: List = - try { - api.setMapStyle(viewIdArg, styleJsonArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setMapStyle(viewIdArg, styleJsonArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -3747,22 +3641,16 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationTripProgressBarEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationTripProgressBarEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - listOf(api.isNavigationTripProgressBarEnabled(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.isNavigationTripProgressBarEnabled(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -3770,24 +3658,18 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationTripProgressBarEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationTripProgressBarEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val enabledArg = args[1] as Boolean - val wrapped: List = - try { - api.setNavigationTripProgressBarEnabled(viewIdArg, enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setNavigationTripProgressBarEnabled(viewIdArg, enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -3795,22 +3677,16 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationHeaderEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationHeaderEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - listOf(api.isNavigationHeaderEnabled(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.isNavigationHeaderEnabled(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -3818,24 +3694,18 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationHeaderEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationHeaderEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val enabledArg = args[1] as Boolean - val wrapped: List = - try { - api.setNavigationHeaderEnabled(viewIdArg, enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setNavigationHeaderEnabled(viewIdArg, enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -3843,22 +3713,16 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getNavigationHeaderStylingOptions$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getNavigationHeaderStylingOptions$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - listOf(api.getNavigationHeaderStylingOptions(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.getNavigationHeaderStylingOptions(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -3866,24 +3730,18 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationHeaderStylingOptions$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationHeaderStylingOptions$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val stylingOptionsArg = args[1] as NavigationHeaderStylingOptionsDto - val wrapped: List = - try { - api.setNavigationHeaderStylingOptions(viewIdArg, stylingOptionsArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setNavigationHeaderStylingOptions(viewIdArg, stylingOptionsArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -3891,22 +3749,16 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationFooterEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationFooterEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - listOf(api.isNavigationFooterEnabled(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.isNavigationFooterEnabled(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -3914,24 +3766,18 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationFooterEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationFooterEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val enabledArg = args[1] as Boolean - val wrapped: List = - try { - api.setNavigationFooterEnabled(viewIdArg, enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setNavigationFooterEnabled(viewIdArg, enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -3939,22 +3785,16 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isRecenterButtonEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isRecenterButtonEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - listOf(api.isRecenterButtonEnabled(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.isRecenterButtonEnabled(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -3962,24 +3802,18 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setRecenterButtonEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setRecenterButtonEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val enabledArg = args[1] as Boolean - val wrapped: List = - try { - api.setRecenterButtonEnabled(viewIdArg, enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setRecenterButtonEnabled(viewIdArg, enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -3987,22 +3821,16 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isSpeedLimitIconEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isSpeedLimitIconEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - listOf(api.isSpeedLimitIconEnabled(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.isSpeedLimitIconEnabled(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4010,24 +3838,18 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setSpeedLimitIconEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setSpeedLimitIconEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val enabledArg = args[1] as Boolean - val wrapped: List = - try { - api.setSpeedLimitIconEnabled(viewIdArg, enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setSpeedLimitIconEnabled(viewIdArg, enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4035,22 +3857,16 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isSpeedometerEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isSpeedometerEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - listOf(api.isSpeedometerEnabled(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.isSpeedometerEnabled(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4058,24 +3874,18 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setSpeedometerEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setSpeedometerEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val enabledArg = args[1] as Boolean - val wrapped: List = - try { - api.setSpeedometerEnabled(viewIdArg, enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setSpeedometerEnabled(viewIdArg, enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4083,22 +3893,16 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationUIEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationUIEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - listOf(api.isNavigationUIEnabled(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.isNavigationUIEnabled(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4106,24 +3910,18 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationUIEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationUIEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val enabledArg = args[1] as Boolean - val wrapped: List = - try { - api.setNavigationUIEnabled(viewIdArg, enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setNavigationUIEnabled(viewIdArg, enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4131,22 +3929,16 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMyLocationButtonEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMyLocationButtonEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - listOf(api.isMyLocationButtonEnabled(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.isMyLocationButtonEnabled(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4154,24 +3946,18 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMyLocationButtonEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMyLocationButtonEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val enabledArg = args[1] as Boolean - val wrapped: List = - try { - api.setMyLocationButtonEnabled(viewIdArg, enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setMyLocationButtonEnabled(viewIdArg, enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4179,22 +3965,16 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isConsumeMyLocationButtonClickEventsEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isConsumeMyLocationButtonClickEventsEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - listOf(api.isConsumeMyLocationButtonClickEventsEnabled(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.isConsumeMyLocationButtonClickEventsEnabled(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4202,24 +3982,18 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setConsumeMyLocationButtonClickEventsEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setConsumeMyLocationButtonClickEventsEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val enabledArg = args[1] as Boolean - val wrapped: List = - try { - api.setConsumeMyLocationButtonClickEventsEnabled(viewIdArg, enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setConsumeMyLocationButtonClickEventsEnabled(viewIdArg, enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4227,22 +4001,16 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isZoomGesturesEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isZoomGesturesEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - listOf(api.isZoomGesturesEnabled(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.isZoomGesturesEnabled(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4250,24 +4018,18 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setZoomGesturesEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setZoomGesturesEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val enabledArg = args[1] as Boolean - val wrapped: List = - try { - api.setZoomGesturesEnabled(viewIdArg, enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setZoomGesturesEnabled(viewIdArg, enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4275,22 +4037,16 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isZoomControlsEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isZoomControlsEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - listOf(api.isZoomControlsEnabled(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.isZoomControlsEnabled(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4298,24 +4054,18 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setZoomControlsEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setZoomControlsEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val enabledArg = args[1] as Boolean - val wrapped: List = - try { - api.setZoomControlsEnabled(viewIdArg, enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setZoomControlsEnabled(viewIdArg, enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4323,22 +4073,16 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isCompassEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isCompassEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - listOf(api.isCompassEnabled(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.isCompassEnabled(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4346,24 +4090,18 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setCompassEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setCompassEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val enabledArg = args[1] as Boolean - val wrapped: List = - try { - api.setCompassEnabled(viewIdArg, enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setCompassEnabled(viewIdArg, enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4371,22 +4109,16 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isRotateGesturesEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isRotateGesturesEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - listOf(api.isRotateGesturesEnabled(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.isRotateGesturesEnabled(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4394,24 +4126,18 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setRotateGesturesEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setRotateGesturesEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val enabledArg = args[1] as Boolean - val wrapped: List = - try { - api.setRotateGesturesEnabled(viewIdArg, enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setRotateGesturesEnabled(viewIdArg, enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4419,22 +4145,16 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isScrollGesturesEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isScrollGesturesEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - listOf(api.isScrollGesturesEnabled(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.isScrollGesturesEnabled(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4442,24 +4162,18 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setScrollGesturesEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setScrollGesturesEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val enabledArg = args[1] as Boolean - val wrapped: List = - try { - api.setScrollGesturesEnabled(viewIdArg, enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setScrollGesturesEnabled(viewIdArg, enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4467,22 +4181,16 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isScrollGesturesEnabledDuringRotateOrZoom$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isScrollGesturesEnabledDuringRotateOrZoom$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - listOf(api.isScrollGesturesEnabledDuringRotateOrZoom(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.isScrollGesturesEnabledDuringRotateOrZoom(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4490,24 +4198,18 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setScrollGesturesDuringRotateOrZoomEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setScrollGesturesDuringRotateOrZoomEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val enabledArg = args[1] as Boolean - val wrapped: List = - try { - api.setScrollGesturesDuringRotateOrZoomEnabled(viewIdArg, enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setScrollGesturesDuringRotateOrZoomEnabled(viewIdArg, enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4515,22 +4217,16 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTiltGesturesEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTiltGesturesEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - listOf(api.isTiltGesturesEnabled(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.isTiltGesturesEnabled(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4538,24 +4234,18 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTiltGesturesEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTiltGesturesEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val enabledArg = args[1] as Boolean - val wrapped: List = - try { - api.setTiltGesturesEnabled(viewIdArg, enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setTiltGesturesEnabled(viewIdArg, enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4563,22 +4253,16 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMapToolbarEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMapToolbarEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - listOf(api.isMapToolbarEnabled(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.isMapToolbarEnabled(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4586,24 +4270,18 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapToolbarEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapToolbarEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val enabledArg = args[1] as Boolean - val wrapped: List = - try { - api.setMapToolbarEnabled(viewIdArg, enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setMapToolbarEnabled(viewIdArg, enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4611,22 +4289,16 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - listOf(api.isTrafficEnabled(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.isTrafficEnabled(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4634,24 +4306,18 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val enabledArg = args[1] as Boolean - val wrapped: List = - try { - api.setTrafficEnabled(viewIdArg, enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setTrafficEnabled(viewIdArg, enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4659,22 +4325,16 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficIncidentCardsEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficIncidentCardsEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - listOf(api.isTrafficIncidentCardsEnabled(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.isTrafficIncidentCardsEnabled(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4682,24 +4342,18 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficIncidentCardsEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficIncidentCardsEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val enabledArg = args[1] as Boolean - val wrapped: List = - try { - api.setTrafficIncidentCardsEnabled(viewIdArg, enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setTrafficIncidentCardsEnabled(viewIdArg, enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4707,22 +4361,16 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficPromptsEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficPromptsEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - listOf(api.isTrafficPromptsEnabled(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.isTrafficPromptsEnabled(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4730,24 +4378,18 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficPromptsEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficPromptsEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val enabledArg = args[1] as Boolean - val wrapped: List = - try { - api.setTrafficPromptsEnabled(viewIdArg, enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setTrafficPromptsEnabled(viewIdArg, enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4755,22 +4397,16 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isReportIncidentButtonEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isReportIncidentButtonEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - listOf(api.isReportIncidentButtonEnabled(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.isReportIncidentButtonEnabled(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4778,24 +4414,18 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setReportIncidentButtonEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setReportIncidentButtonEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val enabledArg = args[1] as Boolean - val wrapped: List = - try { - api.setReportIncidentButtonEnabled(viewIdArg, enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setReportIncidentButtonEnabled(viewIdArg, enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4803,22 +4433,16 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isIncidentReportingAvailable$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isIncidentReportingAvailable$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - listOf(api.isIncidentReportingAvailable(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.isIncidentReportingAvailable(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4826,23 +4450,17 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.showReportIncidentsPanel$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.showReportIncidentsPanel$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - api.showReportIncidentsPanel(viewIdArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.showReportIncidentsPanel(viewIdArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4850,22 +4468,16 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isBuildingsEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isBuildingsEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - listOf(api.isBuildingsEnabled(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.isBuildingsEnabled(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4873,24 +4485,18 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setBuildingsEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setBuildingsEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val enabledArg = args[1] as Boolean - val wrapped: List = - try { - api.setBuildingsEnabled(viewIdArg, enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setBuildingsEnabled(viewIdArg, enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4898,22 +4504,16 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isIndoorEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isIndoorEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - listOf(api.isIndoorEnabled(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.isIndoorEnabled(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4921,24 +4521,18 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setIndoorEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setIndoorEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val enabledArg = args[1] as Boolean - val wrapped: List = - try { - api.setIndoorEnabled(viewIdArg, enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setIndoorEnabled(viewIdArg, enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4946,22 +4540,16 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isIndoorLevelPickerEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isIndoorLevelPickerEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - listOf(api.isIndoorLevelPickerEnabled(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.isIndoorLevelPickerEnabled(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4969,24 +4557,18 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setIndoorLevelPickerEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setIndoorLevelPickerEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val enabledArg = args[1] as Boolean - val wrapped: List = - try { - api.setIndoorLevelPickerEnabled(viewIdArg, enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setIndoorLevelPickerEnabled(viewIdArg, enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4994,22 +4576,16 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getFocusedIndoorBuilding$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getFocusedIndoorBuilding$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - listOf(api.getFocusedIndoorBuilding(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.getFocusedIndoorBuilding(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5017,24 +4593,18 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.activateIndoorLevel$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.activateIndoorLevel$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val levelIndexArg = args[1] as Long - val wrapped: List = - try { - api.activateIndoorLevel(viewIdArg, levelIndexArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.activateIndoorLevel(viewIdArg, levelIndexArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5042,22 +4612,16 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getCameraPosition$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getCameraPosition$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - listOf(api.getCameraPosition(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.getCameraPosition(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5065,22 +4629,16 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getVisibleRegion$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getVisibleRegion$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - listOf(api.getVisibleRegion(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.getVisibleRegion(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5088,25 +4646,19 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.followMyLocation$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.followMyLocation$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val perspectiveArg = args[1] as CameraPerspectiveDto val zoomLevelArg = args[2] as Double? - val wrapped: List = - try { - api.followMyLocation(viewIdArg, perspectiveArg, zoomLevelArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.followMyLocation(viewIdArg, perspectiveArg, zoomLevelArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5114,20 +4666,14 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToCameraPosition$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToCameraPosition$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val cameraPositionArg = args[1] as CameraPositionDto val durationArg = args[2] as Long? - api.animateCameraToCameraPosition(viewIdArg, cameraPositionArg, durationArg) { - result: Result -> + api.animateCameraToCameraPosition(viewIdArg, cameraPositionArg, durationArg) { result: Result -> val error = result.exceptionOrNull() if (error != null) { reply.reply(MessagesPigeonUtils.wrapError(error)) @@ -5142,12 +4688,7 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLng$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLng$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -5169,12 +4710,7 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLngBounds$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLngBounds$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -5182,8 +4718,7 @@ interface MapViewApi { val boundsArg = args[1] as LatLngBoundsDto val paddingArg = args[2] as Double val durationArg = args[3] as Long? - api.animateCameraToLatLngBounds(viewIdArg, boundsArg, paddingArg, durationArg) { - result: Result -> + api.animateCameraToLatLngBounds(viewIdArg, boundsArg, paddingArg, durationArg) { result: Result -> val error = result.exceptionOrNull() if (error != null) { reply.reply(MessagesPigeonUtils.wrapError(error)) @@ -5198,12 +4733,7 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLngZoom$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLngZoom$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -5211,8 +4741,7 @@ interface MapViewApi { val pointArg = args[1] as LatLngDto val zoomArg = args[2] as Double val durationArg = args[3] as Long? - api.animateCameraToLatLngZoom(viewIdArg, pointArg, zoomArg, durationArg) { - result: Result -> + api.animateCameraToLatLngZoom(viewIdArg, pointArg, zoomArg, durationArg) { result: Result -> val error = result.exceptionOrNull() if (error != null) { reply.reply(MessagesPigeonUtils.wrapError(error)) @@ -5227,12 +4756,7 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraByScroll$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraByScroll$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -5240,8 +4764,7 @@ interface MapViewApi { val scrollByDxArg = args[1] as Double val scrollByDyArg = args[2] as Double val durationArg = args[3] as Long? - api.animateCameraByScroll(viewIdArg, scrollByDxArg, scrollByDyArg, durationArg) { - result: Result -> + api.animateCameraByScroll(viewIdArg, scrollByDxArg, scrollByDyArg, durationArg) { result: Result -> val error = result.exceptionOrNull() if (error != null) { reply.reply(MessagesPigeonUtils.wrapError(error)) @@ -5256,12 +4779,7 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraByZoom$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraByZoom$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -5270,8 +4788,7 @@ interface MapViewApi { val focusDxArg = args[2] as Double? val focusDyArg = args[3] as Double? val durationArg = args[4] as Long? - api.animateCameraByZoom(viewIdArg, zoomByArg, focusDxArg, focusDyArg, durationArg) { - result: Result -> + api.animateCameraByZoom(viewIdArg, zoomByArg, focusDxArg, focusDyArg, durationArg) { result: Result -> val error = result.exceptionOrNull() if (error != null) { reply.reply(MessagesPigeonUtils.wrapError(error)) @@ -5286,12 +4803,7 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToZoom$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToZoom$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -5313,24 +4825,18 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToCameraPosition$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToCameraPosition$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val cameraPositionArg = args[1] as CameraPositionDto - val wrapped: List = - try { - api.moveCameraToCameraPosition(viewIdArg, cameraPositionArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.moveCameraToCameraPosition(viewIdArg, cameraPositionArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5338,24 +4844,18 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLng$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLng$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val pointArg = args[1] as LatLngDto - val wrapped: List = - try { - api.moveCameraToLatLng(viewIdArg, pointArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.moveCameraToLatLng(viewIdArg, pointArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5363,25 +4863,19 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLngBounds$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLngBounds$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val boundsArg = args[1] as LatLngBoundsDto val paddingArg = args[2] as Double - val wrapped: List = - try { - api.moveCameraToLatLngBounds(viewIdArg, boundsArg, paddingArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.moveCameraToLatLngBounds(viewIdArg, boundsArg, paddingArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5389,25 +4883,19 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLngZoom$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLngZoom$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val pointArg = args[1] as LatLngDto val zoomArg = args[2] as Double - val wrapped: List = - try { - api.moveCameraToLatLngZoom(viewIdArg, pointArg, zoomArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.moveCameraToLatLngZoom(viewIdArg, pointArg, zoomArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5415,25 +4903,19 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraByScroll$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraByScroll$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val scrollByDxArg = args[1] as Double val scrollByDyArg = args[2] as Double - val wrapped: List = - try { - api.moveCameraByScroll(viewIdArg, scrollByDxArg, scrollByDyArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.moveCameraByScroll(viewIdArg, scrollByDxArg, scrollByDyArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5441,12 +4923,7 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraByZoom$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraByZoom$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -5454,13 +4931,12 @@ interface MapViewApi { val zoomByArg = args[1] as Double val focusDxArg = args[2] as Double? val focusDyArg = args[3] as Double? - val wrapped: List = - try { - api.moveCameraByZoom(viewIdArg, zoomByArg, focusDxArg, focusDyArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.moveCameraByZoom(viewIdArg, zoomByArg, focusDxArg, focusDyArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5468,24 +4944,18 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToZoom$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToZoom$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val zoomArg = args[1] as Double - val wrapped: List = - try { - api.moveCameraToZoom(viewIdArg, zoomArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.moveCameraToZoom(viewIdArg, zoomArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5493,23 +4963,17 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.showRouteOverview$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.showRouteOverview$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - api.showRouteOverview(viewIdArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.showRouteOverview(viewIdArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5517,22 +4981,16 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMinZoomPreference$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMinZoomPreference$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - listOf(api.getMinZoomPreference(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.getMinZoomPreference(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5540,22 +4998,16 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMaxZoomPreference$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMaxZoomPreference$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - listOf(api.getMaxZoomPreference(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.getMaxZoomPreference(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5563,23 +5015,17 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.resetMinMaxZoomPreference$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.resetMinMaxZoomPreference$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - api.resetMinMaxZoomPreference(viewIdArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.resetMinMaxZoomPreference(viewIdArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5587,24 +5033,18 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMinZoomPreference$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMinZoomPreference$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val minZoomPreferenceArg = args[1] as Double - val wrapped: List = - try { - api.setMinZoomPreference(viewIdArg, minZoomPreferenceArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setMinZoomPreference(viewIdArg, minZoomPreferenceArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5612,24 +5052,18 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMaxZoomPreference$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMaxZoomPreference$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val maxZoomPreferenceArg = args[1] as Double - val wrapped: List = - try { - api.setMaxZoomPreference(viewIdArg, maxZoomPreferenceArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setMaxZoomPreference(viewIdArg, maxZoomPreferenceArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5637,22 +5071,16 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMarkers$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMarkers$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - listOf(api.getMarkers(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.getMarkers(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5660,23 +5088,17 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addMarkers$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addMarkers$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val markersArg = args[1] as List - val wrapped: List = - try { - listOf(api.addMarkers(viewIdArg, markersArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.addMarkers(viewIdArg, markersArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5684,23 +5106,17 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updateMarkers$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updateMarkers$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val markersArg = args[1] as List - val wrapped: List = - try { - listOf(api.updateMarkers(viewIdArg, markersArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.updateMarkers(viewIdArg, markersArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5708,24 +5124,18 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removeMarkers$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removeMarkers$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val markersArg = args[1] as List - val wrapped: List = - try { - api.removeMarkers(viewIdArg, markersArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.removeMarkers(viewIdArg, markersArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5733,23 +5143,17 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearMarkers$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearMarkers$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - api.clearMarkers(viewIdArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.clearMarkers(viewIdArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5757,23 +5161,17 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clear$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clear$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - api.clear(viewIdArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.clear(viewIdArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5781,22 +5179,16 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPolygons$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPolygons$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - listOf(api.getPolygons(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.getPolygons(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5804,23 +5196,17 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addPolygons$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addPolygons$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val polygonsArg = args[1] as List - val wrapped: List = - try { - listOf(api.addPolygons(viewIdArg, polygonsArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.addPolygons(viewIdArg, polygonsArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5828,23 +5214,17 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updatePolygons$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updatePolygons$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val polygonsArg = args[1] as List - val wrapped: List = - try { - listOf(api.updatePolygons(viewIdArg, polygonsArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.updatePolygons(viewIdArg, polygonsArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5852,24 +5232,18 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removePolygons$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removePolygons$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val polygonsArg = args[1] as List - val wrapped: List = - try { - api.removePolygons(viewIdArg, polygonsArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.removePolygons(viewIdArg, polygonsArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5877,23 +5251,17 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearPolygons$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearPolygons$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - api.clearPolygons(viewIdArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.clearPolygons(viewIdArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5901,22 +5269,16 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPolylines$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPolylines$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - listOf(api.getPolylines(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.getPolylines(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5924,23 +5286,17 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addPolylines$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addPolylines$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val polylinesArg = args[1] as List - val wrapped: List = - try { - listOf(api.addPolylines(viewIdArg, polylinesArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.addPolylines(viewIdArg, polylinesArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5948,23 +5304,17 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updatePolylines$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updatePolylines$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val polylinesArg = args[1] as List - val wrapped: List = - try { - listOf(api.updatePolylines(viewIdArg, polylinesArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.updatePolylines(viewIdArg, polylinesArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5972,24 +5322,18 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removePolylines$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removePolylines$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val polylinesArg = args[1] as List - val wrapped: List = - try { - api.removePolylines(viewIdArg, polylinesArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.removePolylines(viewIdArg, polylinesArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5997,23 +5341,17 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearPolylines$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearPolylines$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - api.clearPolylines(viewIdArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.clearPolylines(viewIdArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -6021,22 +5359,16 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getCircles$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getCircles$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - listOf(api.getCircles(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.getCircles(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -6044,23 +5376,17 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addCircles$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addCircles$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val circlesArg = args[1] as List - val wrapped: List = - try { - listOf(api.addCircles(viewIdArg, circlesArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.addCircles(viewIdArg, circlesArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -6068,23 +5394,17 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updateCircles$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updateCircles$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val circlesArg = args[1] as List - val wrapped: List = - try { - listOf(api.updateCircles(viewIdArg, circlesArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.updateCircles(viewIdArg, circlesArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -6092,24 +5412,18 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removeCircles$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removeCircles$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val circlesArg = args[1] as List - val wrapped: List = - try { - api.removeCircles(viewIdArg, circlesArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.removeCircles(viewIdArg, circlesArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -6117,23 +5431,17 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearCircles$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearCircles$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - api.clearCircles(viewIdArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.clearCircles(viewIdArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -6141,23 +5449,17 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.enableOnCameraChangedEvents$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.enableOnCameraChangedEvents$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - api.enableOnCameraChangedEvents(viewIdArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.enableOnCameraChangedEvents(viewIdArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -6165,24 +5467,18 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setPadding$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setPadding$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val paddingArg = args[1] as MapPaddingDto - val wrapped: List = - try { - api.setPadding(viewIdArg, paddingArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setPadding(viewIdArg, paddingArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -6190,22 +5486,16 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPadding$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPadding$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - listOf(api.getPadding(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.getPadding(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -6213,22 +5503,16 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMapColorScheme$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMapColorScheme$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - listOf(api.getMapColorScheme(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.getMapColorScheme(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -6236,24 +5520,18 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapColorScheme$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapColorScheme$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val mapColorSchemeArg = args[1] as MapColorSchemeDto - val wrapped: List = - try { - api.setMapColorScheme(viewIdArg, mapColorSchemeArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setMapColorScheme(viewIdArg, mapColorSchemeArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -6261,22 +5539,16 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getForceNightMode$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getForceNightMode$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - listOf(api.getForceNightMode(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.getForceNightMode(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -6284,24 +5556,18 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setForceNightMode$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setForceNightMode$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val forceNightModeArg = args[1] as NavigationForceNightModeDto - val wrapped: List = - try { - api.setForceNightMode(viewIdArg, forceNightModeArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setForceNightMode(viewIdArg, forceNightModeArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -6311,47 +5577,25 @@ interface MapViewApi { } } } - /** Generated interface from Pigeon that represents a handler of messages from Flutter. */ interface ImageRegistryApi { - fun registerBitmapImage( - imageId: String, - bytes: ByteArray, - imagePixelRatio: Double, - width: Double?, - height: Double?, - ): ImageDescriptorDto - + fun registerBitmapImage(imageId: String, bytes: ByteArray, imagePixelRatio: Double, width: Double?, height: Double?): ImageDescriptorDto fun unregisterImage(imageDescriptor: ImageDescriptorDto) - fun getRegisteredImages(): List - fun clearRegisteredImages(filter: RegisteredImageTypeDto?) - fun getRegisteredImageData(imageDescriptor: ImageDescriptorDto): ByteArray? companion object { /** The codec used by ImageRegistryApi. */ - val codec: MessageCodec by lazy { messagesPigeonCodec() } - - /** - * Sets up an instance of `ImageRegistryApi` to handle messages through the `binaryMessenger`. - */ + val codec: MessageCodec by lazy { + messagesPigeonCodec() + } + /** Sets up an instance of `ImageRegistryApi` to handle messages through the `binaryMessenger`. */ @JvmOverloads - fun setUp( - binaryMessenger: BinaryMessenger, - api: ImageRegistryApi?, - messageChannelSuffix: String = "", - ) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + fun setUp(binaryMessenger: BinaryMessenger, api: ImageRegistryApi?, messageChannelSuffix: String = "") { + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.registerBitmapImage$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.registerBitmapImage$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -6360,20 +5604,11 @@ interface ImageRegistryApi { val imagePixelRatioArg = args[2] as Double val widthArg = args[3] as Double? val heightArg = args[4] as Double? - val wrapped: List = - try { - listOf( - api.registerBitmapImage( - imageIdArg, - bytesArg, - imagePixelRatioArg, - widthArg, - heightArg, - ) - ) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.registerBitmapImage(imageIdArg, bytesArg, imagePixelRatioArg, widthArg, heightArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -6381,23 +5616,17 @@ interface ImageRegistryApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.unregisterImage$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.unregisterImage$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val imageDescriptorArg = args[0] as ImageDescriptorDto - val wrapped: List = - try { - api.unregisterImage(imageDescriptorArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.unregisterImage(imageDescriptorArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -6405,20 +5634,14 @@ interface ImageRegistryApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.getRegisteredImages$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.getRegisteredImages$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - listOf(api.getRegisteredImages()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.getRegisteredImages()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -6426,23 +5649,17 @@ interface ImageRegistryApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.clearRegisteredImages$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.clearRegisteredImages$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val filterArg = args[0] as RegisteredImageTypeDto? - val wrapped: List = - try { - api.clearRegisteredImages(filterArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.clearRegisteredImages(filterArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -6450,22 +5667,16 @@ interface ImageRegistryApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.getRegisteredImageData$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.getRegisteredImageData$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val imageDescriptorArg = args[0] as ImageDescriptorDto - val wrapped: List = - try { - listOf(api.getRegisteredImageData(imageDescriptorArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.getRegisteredImageData(imageDescriptorArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -6475,22 +5686,18 @@ interface ImageRegistryApi { } } } - /** Generated class from Pigeon that represents Flutter messages that can be called from Kotlin. */ -class ViewEventApi( - private val binaryMessenger: BinaryMessenger, - private val messageChannelSuffix: String = "", -) { +class ViewEventApi(private val binaryMessenger: BinaryMessenger, private val messageChannelSuffix: String = "") { companion object { /** The codec used by ViewEventApi. */ - val codec: MessageCodec by lazy { messagesPigeonCodec() } + val codec: MessageCodec by lazy { + messagesPigeonCodec() + } } - - fun onMapClickEvent(viewIdArg: Long, latLngArg: LatLngDto, callback: (Result) -> Unit) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = - "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMapClickEvent$separatedMessageChannelSuffix" + fun onMapClickEvent(viewIdArg: Long, latLngArg: LatLngDto, callback: (Result) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMapClickEvent$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(viewIdArg, latLngArg)) { if (it is List<*>) { @@ -6501,15 +5708,13 @@ class ViewEventApi( } } else { callback(Result.failure(MessagesPigeonUtils.createConnectionError(channelName))) - } + } } } - - fun onMapLongClickEvent(viewIdArg: Long, latLngArg: LatLngDto, callback: (Result) -> Unit) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = - "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMapLongClickEvent$separatedMessageChannelSuffix" + fun onMapLongClickEvent(viewIdArg: Long, latLngArg: LatLngDto, callback: (Result) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMapLongClickEvent$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(viewIdArg, latLngArg)) { if (it is List<*>) { @@ -6520,15 +5725,13 @@ class ViewEventApi( } } else { callback(Result.failure(MessagesPigeonUtils.createConnectionError(channelName))) - } + } } } - - fun onRecenterButtonClicked(viewIdArg: Long, callback: (Result) -> Unit) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = - "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onRecenterButtonClicked$separatedMessageChannelSuffix" + fun onRecenterButtonClicked(viewIdArg: Long, callback: (Result) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onRecenterButtonClicked$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(viewIdArg)) { if (it is List<*>) { @@ -6539,20 +5742,13 @@ class ViewEventApi( } } else { callback(Result.failure(MessagesPigeonUtils.createConnectionError(channelName))) - } + } } } - - fun onMarkerEvent( - viewIdArg: Long, - markerIdArg: String, - eventTypeArg: MarkerEventTypeDto, - callback: (Result) -> Unit, - ) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = - "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMarkerEvent$separatedMessageChannelSuffix" + fun onMarkerEvent(viewIdArg: Long, markerIdArg: String, eventTypeArg: MarkerEventTypeDto, callback: (Result) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMarkerEvent$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(viewIdArg, markerIdArg, eventTypeArg)) { if (it is List<*>) { @@ -6563,21 +5759,13 @@ class ViewEventApi( } } else { callback(Result.failure(MessagesPigeonUtils.createConnectionError(channelName))) - } + } } } - - fun onMarkerDragEvent( - viewIdArg: Long, - markerIdArg: String, - eventTypeArg: MarkerDragEventTypeDto, - positionArg: LatLngDto, - callback: (Result) -> Unit, - ) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = - "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMarkerDragEvent$separatedMessageChannelSuffix" + fun onMarkerDragEvent(viewIdArg: Long, markerIdArg: String, eventTypeArg: MarkerDragEventTypeDto, positionArg: LatLngDto, callback: (Result) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMarkerDragEvent$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(viewIdArg, markerIdArg, eventTypeArg, positionArg)) { if (it is List<*>) { @@ -6588,15 +5776,13 @@ class ViewEventApi( } } else { callback(Result.failure(MessagesPigeonUtils.createConnectionError(channelName))) - } + } } } - - fun onPolygonClicked(viewIdArg: Long, polygonIdArg: String, callback: (Result) -> Unit) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = - "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPolygonClicked$separatedMessageChannelSuffix" + fun onPolygonClicked(viewIdArg: Long, polygonIdArg: String, callback: (Result) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPolygonClicked$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(viewIdArg, polygonIdArg)) { if (it is List<*>) { @@ -6607,15 +5793,13 @@ class ViewEventApi( } } else { callback(Result.failure(MessagesPigeonUtils.createConnectionError(channelName))) - } + } } } - - fun onPolylineClicked(viewIdArg: Long, polylineIdArg: String, callback: (Result) -> Unit) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = - "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPolylineClicked$separatedMessageChannelSuffix" + fun onPolylineClicked(viewIdArg: Long, polylineIdArg: String, callback: (Result) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPolylineClicked$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(viewIdArg, polylineIdArg)) { if (it is List<*>) { @@ -6626,15 +5810,13 @@ class ViewEventApi( } } else { callback(Result.failure(MessagesPigeonUtils.createConnectionError(channelName))) - } + } } } - - fun onCircleClicked(viewIdArg: Long, circleIdArg: String, callback: (Result) -> Unit) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = - "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onCircleClicked$separatedMessageChannelSuffix" + fun onCircleClicked(viewIdArg: Long, circleIdArg: String, callback: (Result) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onCircleClicked$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(viewIdArg, circleIdArg)) { if (it is List<*>) { @@ -6645,19 +5827,13 @@ class ViewEventApi( } } else { callback(Result.failure(MessagesPigeonUtils.createConnectionError(channelName))) - } + } } } - - fun onPoiClick( - viewIdArg: Long, - pointOfInterestArg: PointOfInterestDto, - callback: (Result) -> Unit, - ) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = - "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPoiClick$separatedMessageChannelSuffix" + fun onPoiClick(viewIdArg: Long, pointOfInterestArg: PointOfInterestDto, callback: (Result) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPoiClick$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(viewIdArg, pointOfInterestArg)) { if (it is List<*>) { @@ -6668,19 +5844,13 @@ class ViewEventApi( } } else { callback(Result.failure(MessagesPigeonUtils.createConnectionError(channelName))) - } + } } } - - fun onNavigationUIEnabledChanged( - viewIdArg: Long, - navigationUIEnabledArg: Boolean, - callback: (Result) -> Unit, - ) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = - "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onNavigationUIEnabledChanged$separatedMessageChannelSuffix" + fun onNavigationUIEnabledChanged(viewIdArg: Long, navigationUIEnabledArg: Boolean, callback: (Result) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onNavigationUIEnabledChanged$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(viewIdArg, navigationUIEnabledArg)) { if (it is List<*>) { @@ -6691,19 +5861,13 @@ class ViewEventApi( } } else { callback(Result.failure(MessagesPigeonUtils.createConnectionError(channelName))) - } + } } } - - fun onPromptVisibilityChanged( - viewIdArg: Long, - promptVisibleArg: Boolean, - callback: (Result) -> Unit, - ) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = - "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPromptVisibilityChanged$separatedMessageChannelSuffix" + fun onPromptVisibilityChanged(viewIdArg: Long, promptVisibleArg: Boolean, callback: (Result) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPromptVisibilityChanged$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(viewIdArg, promptVisibleArg)) { if (it is List<*>) { @@ -6714,15 +5878,13 @@ class ViewEventApi( } } else { callback(Result.failure(MessagesPigeonUtils.createConnectionError(channelName))) - } + } } } - - fun onMyLocationClicked(viewIdArg: Long, callback: (Result) -> Unit) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = - "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMyLocationClicked$separatedMessageChannelSuffix" + fun onMyLocationClicked(viewIdArg: Long, callback: (Result) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMyLocationClicked$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(viewIdArg)) { if (it is List<*>) { @@ -6733,15 +5895,13 @@ class ViewEventApi( } } else { callback(Result.failure(MessagesPigeonUtils.createConnectionError(channelName))) - } + } } } - - fun onMyLocationButtonClicked(viewIdArg: Long, callback: (Result) -> Unit) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = - "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMyLocationButtonClicked$separatedMessageChannelSuffix" + fun onMyLocationButtonClicked(viewIdArg: Long, callback: (Result) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMyLocationButtonClicked$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(viewIdArg)) { if (it is List<*>) { @@ -6752,19 +5912,13 @@ class ViewEventApi( } } else { callback(Result.failure(MessagesPigeonUtils.createConnectionError(channelName))) - } + } } } - - fun onIndoorFocusedBuildingChanged( - viewIdArg: Long, - buildingArg: IndoorBuildingDto?, - callback: (Result) -> Unit, - ) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = - "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onIndoorFocusedBuildingChanged$separatedMessageChannelSuffix" + fun onIndoorFocusedBuildingChanged(viewIdArg: Long, buildingArg: IndoorBuildingDto?, callback: (Result) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onIndoorFocusedBuildingChanged$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(viewIdArg, buildingArg)) { if (it is List<*>) { @@ -6775,19 +5929,13 @@ class ViewEventApi( } } else { callback(Result.failure(MessagesPigeonUtils.createConnectionError(channelName))) - } + } } } - - fun onIndoorActiveLevelChanged( - viewIdArg: Long, - buildingArg: IndoorBuildingDto?, - callback: (Result) -> Unit, - ) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = - "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onIndoorActiveLevelChanged$separatedMessageChannelSuffix" + fun onIndoorActiveLevelChanged(viewIdArg: Long, buildingArg: IndoorBuildingDto?, callback: (Result) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onIndoorActiveLevelChanged$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(viewIdArg, buildingArg)) { if (it is List<*>) { @@ -6798,20 +5946,13 @@ class ViewEventApi( } } else { callback(Result.failure(MessagesPigeonUtils.createConnectionError(channelName))) - } + } } } - - fun onCameraChanged( - viewIdArg: Long, - eventTypeArg: CameraEventTypeDto, - positionArg: CameraPositionDto, - callback: (Result) -> Unit, - ) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = - "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onCameraChanged$separatedMessageChannelSuffix" + fun onCameraChanged(viewIdArg: Long, eventTypeArg: CameraEventTypeDto, positionArg: CameraPositionDto, callback: (Result) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onCameraChanged$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(viewIdArg, eventTypeArg, positionArg)) { if (it is List<*>) { @@ -6822,140 +5963,65 @@ class ViewEventApi( } } else { callback(Result.failure(MessagesPigeonUtils.createConnectionError(channelName))) - } + } } } } - /** Generated interface from Pigeon that represents a handler of messages from Flutter. */ interface NavigationSessionApi { - fun createNavigationSession( - abnormalTerminationReportingEnabled: Boolean, - behavior: TaskRemovedBehaviorDto, - callback: (Result) -> Unit, - ) - + fun createNavigationSession(abnormalTerminationReportingEnabled: Boolean, behavior: TaskRemovedBehaviorDto, callback: (Result) -> Unit) fun isInitialized(): Boolean - fun cleanup(resetSession: Boolean) - - fun showTermsAndConditionsDialog( - title: String, - companyName: String, - shouldOnlyShowDriverAwarenessDisclaimer: Boolean, - uiParams: TermsAndConditionsUIParamsDto?, - callback: (Result) -> Unit, - ) - + fun showTermsAndConditionsDialog(title: String, companyName: String, shouldOnlyShowDriverAwarenessDisclaimer: Boolean, uiParams: TermsAndConditionsUIParamsDto?, callback: (Result) -> Unit) fun areTermsAccepted(): Boolean - fun resetTermsAccepted() - fun getNavSDKVersion(): String - fun isGuidanceRunning(): Boolean - fun startGuidance() - fun stopGuidance() - fun setDestinations(destinations: DestinationsDto, callback: (Result) -> Unit) - fun clearDestinations() - fun continueToNextDestination(callback: (Result) -> Unit) - fun getCurrentTimeAndDistance(): NavigationTimeAndDistanceDto - fun setAudioGuidance(settings: NavigationAudioGuidanceSettingsDto) - fun setSpeedAlertOptions(options: SpeedAlertOptionsDto) - fun getRouteSegments(): List - fun getTraveledRoute(): List - fun getCurrentRouteSegment(): RouteSegmentDto? - fun setUserLocation(location: LatLngDto) - fun removeUserLocation() - fun simulateLocationsAlongExistingRoute() - fun simulateLocationsAlongExistingRouteWithOptions(options: SimulationOptionsDto) - - fun simulateLocationsAlongNewRoute( - waypoints: List, - callback: (Result) -> Unit, - ) - - fun simulateLocationsAlongNewRouteWithRoutingOptions( - waypoints: List, - routingOptions: RoutingOptionsDto, - callback: (Result) -> Unit, - ) - - fun simulateLocationsAlongNewRouteWithRoutingAndSimulationOptions( - waypoints: List, - routingOptions: RoutingOptionsDto, - simulationOptions: SimulationOptionsDto, - callback: (Result) -> Unit, - ) - + fun simulateLocationsAlongNewRoute(waypoints: List, callback: (Result) -> Unit) + fun simulateLocationsAlongNewRouteWithRoutingOptions(waypoints: List, routingOptions: RoutingOptionsDto, callback: (Result) -> Unit) + fun simulateLocationsAlongNewRouteWithRoutingAndSimulationOptions(waypoints: List, routingOptions: RoutingOptionsDto, simulationOptions: SimulationOptionsDto, callback: (Result) -> Unit) fun pauseSimulation() - fun resumeSimulation() - /** iOS-only method. */ fun allowBackgroundLocationUpdates(allow: Boolean) - fun enableRoadSnappedLocationUpdates() - fun disableRoadSnappedLocationUpdates() - - fun enableTurnByTurnNavigationEvents( - numNextStepsToPreview: Long?, - options: StepImageGenerationOptionsDto?, - ) - + fun enableTurnByTurnNavigationEvents(numNextStepsToPreview: Long?, options: StepImageGenerationOptionsDto?) fun disableTurnByTurnNavigationEvents() - - fun registerRemainingTimeOrDistanceChangedListener( - remainingTimeThresholdSeconds: Long, - remainingDistanceThresholdMeters: Long, - ) + fun registerRemainingTimeOrDistanceChangedListener(remainingTimeThresholdSeconds: Long, remainingDistanceThresholdMeters: Long) companion object { /** The codec used by NavigationSessionApi. */ - val codec: MessageCodec by lazy { messagesPigeonCodec() } - - /** - * Sets up an instance of `NavigationSessionApi` to handle messages through the - * `binaryMessenger`. - */ + val codec: MessageCodec by lazy { + messagesPigeonCodec() + } + /** Sets up an instance of `NavigationSessionApi` to handle messages through the `binaryMessenger`. */ @JvmOverloads - fun setUp( - binaryMessenger: BinaryMessenger, - api: NavigationSessionApi?, - messageChannelSuffix: String = "", - ) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + fun setUp(binaryMessenger: BinaryMessenger, api: NavigationSessionApi?, messageChannelSuffix: String = "") { + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.createNavigationSession$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.createNavigationSession$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val abnormalTerminationReportingEnabledArg = args[0] as Boolean val behaviorArg = args[1] as TaskRemovedBehaviorDto - api.createNavigationSession(abnormalTerminationReportingEnabledArg, behaviorArg) { - result: Result -> + api.createNavigationSession(abnormalTerminationReportingEnabledArg, behaviorArg) { result: Result -> val error = result.exceptionOrNull() if (error != null) { reply.reply(MessagesPigeonUtils.wrapError(error)) @@ -6969,20 +6035,14 @@ interface NavigationSessionApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.isInitialized$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.isInitialized$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - listOf(api.isInitialized()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.isInitialized()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -6990,23 +6050,17 @@ interface NavigationSessionApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.cleanup$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.cleanup$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val resetSessionArg = args[0] as Boolean - val wrapped: List = - try { - api.cleanup(resetSessionArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.cleanup(resetSessionArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7014,12 +6068,7 @@ interface NavigationSessionApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.showTermsAndConditionsDialog$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.showTermsAndConditionsDialog$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -7027,12 +6076,7 @@ interface NavigationSessionApi { val companyNameArg = args[1] as String val shouldOnlyShowDriverAwarenessDisclaimerArg = args[2] as Boolean val uiParamsArg = args[3] as TermsAndConditionsUIParamsDto? - api.showTermsAndConditionsDialog( - titleArg, - companyNameArg, - shouldOnlyShowDriverAwarenessDisclaimerArg, - uiParamsArg, - ) { result: Result -> + api.showTermsAndConditionsDialog(titleArg, companyNameArg, shouldOnlyShowDriverAwarenessDisclaimerArg, uiParamsArg) { result: Result -> val error = result.exceptionOrNull() if (error != null) { reply.reply(MessagesPigeonUtils.wrapError(error)) @@ -7047,20 +6091,14 @@ interface NavigationSessionApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.areTermsAccepted$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.areTermsAccepted$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - listOf(api.areTermsAccepted()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.areTermsAccepted()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7068,21 +6106,15 @@ interface NavigationSessionApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.resetTermsAccepted$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.resetTermsAccepted$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - api.resetTermsAccepted() - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.resetTermsAccepted() + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7090,20 +6122,14 @@ interface NavigationSessionApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getNavSDKVersion$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getNavSDKVersion$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - listOf(api.getNavSDKVersion()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.getNavSDKVersion()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7111,20 +6137,14 @@ interface NavigationSessionApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.isGuidanceRunning$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.isGuidanceRunning$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - listOf(api.isGuidanceRunning()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.isGuidanceRunning()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7132,21 +6152,15 @@ interface NavigationSessionApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.startGuidance$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.startGuidance$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - api.startGuidance() - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.startGuidance() + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7154,21 +6168,15 @@ interface NavigationSessionApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.stopGuidance$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.stopGuidance$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - api.stopGuidance() - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.stopGuidance() + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7176,12 +6184,7 @@ interface NavigationSessionApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setDestinations$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setDestinations$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -7201,21 +6204,15 @@ interface NavigationSessionApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.clearDestinations$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.clearDestinations$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - api.clearDestinations() - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.clearDestinations() + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7223,15 +6220,10 @@ interface NavigationSessionApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.continueToNextDestination$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.continueToNextDestination$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - api.continueToNextDestination { result: Result -> + api.continueToNextDestination{ result: Result -> val error = result.exceptionOrNull() if (error != null) { reply.reply(MessagesPigeonUtils.wrapError(error)) @@ -7246,20 +6238,14 @@ interface NavigationSessionApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getCurrentTimeAndDistance$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getCurrentTimeAndDistance$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - listOf(api.getCurrentTimeAndDistance()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.getCurrentTimeAndDistance()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7267,23 +6253,17 @@ interface NavigationSessionApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setAudioGuidance$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setAudioGuidance$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val settingsArg = args[0] as NavigationAudioGuidanceSettingsDto - val wrapped: List = - try { - api.setAudioGuidance(settingsArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setAudioGuidance(settingsArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7291,23 +6271,17 @@ interface NavigationSessionApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setSpeedAlertOptions$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setSpeedAlertOptions$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val optionsArg = args[0] as SpeedAlertOptionsDto - val wrapped: List = - try { - api.setSpeedAlertOptions(optionsArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setSpeedAlertOptions(optionsArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7315,20 +6289,14 @@ interface NavigationSessionApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getRouteSegments$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getRouteSegments$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - listOf(api.getRouteSegments()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.getRouteSegments()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7336,20 +6304,14 @@ interface NavigationSessionApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getTraveledRoute$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getTraveledRoute$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - listOf(api.getTraveledRoute()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.getTraveledRoute()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7357,20 +6319,14 @@ interface NavigationSessionApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getCurrentRouteSegment$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getCurrentRouteSegment$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - listOf(api.getCurrentRouteSegment()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.getCurrentRouteSegment()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7378,23 +6334,17 @@ interface NavigationSessionApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setUserLocation$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setUserLocation$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val locationArg = args[0] as LatLngDto - val wrapped: List = - try { - api.setUserLocation(locationArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setUserLocation(locationArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7402,21 +6352,15 @@ interface NavigationSessionApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.removeUserLocation$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.removeUserLocation$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - api.removeUserLocation() - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.removeUserLocation() + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7424,21 +6368,15 @@ interface NavigationSessionApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongExistingRoute$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongExistingRoute$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - api.simulateLocationsAlongExistingRoute() - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.simulateLocationsAlongExistingRoute() + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7446,23 +6384,17 @@ interface NavigationSessionApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongExistingRouteWithOptions$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongExistingRouteWithOptions$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val optionsArg = args[0] as SimulationOptionsDto - val wrapped: List = - try { - api.simulateLocationsAlongExistingRouteWithOptions(optionsArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.simulateLocationsAlongExistingRouteWithOptions(optionsArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7470,12 +6402,7 @@ interface NavigationSessionApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRoute$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRoute$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -7495,19 +6422,13 @@ interface NavigationSessionApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRouteWithRoutingOptions$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRouteWithRoutingOptions$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val waypointsArg = args[0] as List val routingOptionsArg = args[1] as RoutingOptionsDto - api.simulateLocationsAlongNewRouteWithRoutingOptions(waypointsArg, routingOptionsArg) { - result: Result -> + api.simulateLocationsAlongNewRouteWithRoutingOptions(waypointsArg, routingOptionsArg) { result: Result -> val error = result.exceptionOrNull() if (error != null) { reply.reply(MessagesPigeonUtils.wrapError(error)) @@ -7522,23 +6443,14 @@ interface NavigationSessionApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRouteWithRoutingAndSimulationOptions$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRouteWithRoutingAndSimulationOptions$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val waypointsArg = args[0] as List val routingOptionsArg = args[1] as RoutingOptionsDto val simulationOptionsArg = args[2] as SimulationOptionsDto - api.simulateLocationsAlongNewRouteWithRoutingAndSimulationOptions( - waypointsArg, - routingOptionsArg, - simulationOptionsArg, - ) { result: Result -> + api.simulateLocationsAlongNewRouteWithRoutingAndSimulationOptions(waypointsArg, routingOptionsArg, simulationOptionsArg) { result: Result -> val error = result.exceptionOrNull() if (error != null) { reply.reply(MessagesPigeonUtils.wrapError(error)) @@ -7553,21 +6465,15 @@ interface NavigationSessionApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.pauseSimulation$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.pauseSimulation$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - api.pauseSimulation() - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.pauseSimulation() + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7575,21 +6481,15 @@ interface NavigationSessionApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.resumeSimulation$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.resumeSimulation$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - api.resumeSimulation() - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.resumeSimulation() + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7597,23 +6497,17 @@ interface NavigationSessionApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.allowBackgroundLocationUpdates$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.allowBackgroundLocationUpdates$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val allowArg = args[0] as Boolean - val wrapped: List = - try { - api.allowBackgroundLocationUpdates(allowArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.allowBackgroundLocationUpdates(allowArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7621,21 +6515,15 @@ interface NavigationSessionApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.enableRoadSnappedLocationUpdates$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.enableRoadSnappedLocationUpdates$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - api.enableRoadSnappedLocationUpdates() - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.enableRoadSnappedLocationUpdates() + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7643,21 +6531,15 @@ interface NavigationSessionApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.disableRoadSnappedLocationUpdates$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.disableRoadSnappedLocationUpdates$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - api.disableRoadSnappedLocationUpdates() - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.disableRoadSnappedLocationUpdates() + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7665,24 +6547,18 @@ interface NavigationSessionApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.enableTurnByTurnNavigationEvents$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.enableTurnByTurnNavigationEvents$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val numNextStepsToPreviewArg = args[0] as Long? val optionsArg = args[1] as StepImageGenerationOptionsDto? - val wrapped: List = - try { - api.enableTurnByTurnNavigationEvents(numNextStepsToPreviewArg, optionsArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.enableTurnByTurnNavigationEvents(numNextStepsToPreviewArg, optionsArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7690,21 +6566,15 @@ interface NavigationSessionApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.disableTurnByTurnNavigationEvents$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.disableTurnByTurnNavigationEvents$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - api.disableTurnByTurnNavigationEvents() - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.disableTurnByTurnNavigationEvents() + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7712,27 +6582,18 @@ interface NavigationSessionApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.registerRemainingTimeOrDistanceChangedListener$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.registerRemainingTimeOrDistanceChangedListener$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val remainingTimeThresholdSecondsArg = args[0] as Long val remainingDistanceThresholdMetersArg = args[1] as Long - val wrapped: List = - try { - api.registerRemainingTimeOrDistanceChangedListener( - remainingTimeThresholdSecondsArg, - remainingDistanceThresholdMetersArg, - ) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.registerRemainingTimeOrDistanceChangedListener(remainingTimeThresholdSecondsArg, remainingDistanceThresholdMetersArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7742,22 +6603,18 @@ interface NavigationSessionApi { } } } - /** Generated class from Pigeon that represents Flutter messages that can be called from Kotlin. */ -class NavigationSessionEventApi( - private val binaryMessenger: BinaryMessenger, - private val messageChannelSuffix: String = "", -) { +class NavigationSessionEventApi(private val binaryMessenger: BinaryMessenger, private val messageChannelSuffix: String = "") { companion object { /** The codec used by NavigationSessionEventApi. */ - val codec: MessageCodec by lazy { messagesPigeonCodec() } + val codec: MessageCodec by lazy { + messagesPigeonCodec() + } } - - fun onSpeedingUpdated(msgArg: SpeedingUpdatedEventDto, callback: (Result) -> Unit) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onSpeedingUpdated$separatedMessageChannelSuffix" + fun onSpeedingUpdated(msgArg: SpeedingUpdatedEventDto, callback: (Result) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onSpeedingUpdated$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(msgArg)) { if (it is List<*>) { @@ -7768,15 +6625,13 @@ class NavigationSessionEventApi( } } else { callback(Result.failure(MessagesPigeonUtils.createConnectionError(channelName))) - } + } } } - - fun onRoadSnappedLocationUpdated(locationArg: LatLngDto, callback: (Result) -> Unit) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRoadSnappedLocationUpdated$separatedMessageChannelSuffix" + fun onRoadSnappedLocationUpdated(locationArg: LatLngDto, callback: (Result) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRoadSnappedLocationUpdated$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(locationArg)) { if (it is List<*>) { @@ -7787,15 +6642,13 @@ class NavigationSessionEventApi( } } else { callback(Result.failure(MessagesPigeonUtils.createConnectionError(channelName))) - } + } } } - - fun onRoadSnappedRawLocationUpdated(locationArg: LatLngDto, callback: (Result) -> Unit) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRoadSnappedRawLocationUpdated$separatedMessageChannelSuffix" + fun onRoadSnappedRawLocationUpdated(locationArg: LatLngDto, callback: (Result) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRoadSnappedRawLocationUpdated$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(locationArg)) { if (it is List<*>) { @@ -7806,15 +6659,13 @@ class NavigationSessionEventApi( } } else { callback(Result.failure(MessagesPigeonUtils.createConnectionError(channelName))) - } + } } } - - fun onArrival(waypointArg: NavigationWaypointDto, callback: (Result) -> Unit) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onArrival$separatedMessageChannelSuffix" + fun onArrival(waypointArg: NavigationWaypointDto, callback: (Result) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onArrival$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(waypointArg)) { if (it is List<*>) { @@ -7825,15 +6676,13 @@ class NavigationSessionEventApi( } } else { callback(Result.failure(MessagesPigeonUtils.createConnectionError(channelName))) - } + } } } - - fun onRouteChanged(callback: (Result) -> Unit) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRouteChanged$separatedMessageChannelSuffix" + fun onRouteChanged(callback: (Result) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRouteChanged$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(null) { if (it is List<*>) { @@ -7844,20 +6693,13 @@ class NavigationSessionEventApi( } } else { callback(Result.failure(MessagesPigeonUtils.createConnectionError(channelName))) - } + } } } - - fun onRemainingTimeOrDistanceChanged( - remainingTimeArg: Double, - remainingDistanceArg: Double, - delaySeverityArg: TrafficDelaySeverityDto, - callback: (Result) -> Unit, - ) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRemainingTimeOrDistanceChanged$separatedMessageChannelSuffix" + fun onRemainingTimeOrDistanceChanged(remainingTimeArg: Double, remainingDistanceArg: Double, delaySeverityArg: TrafficDelaySeverityDto, callback: (Result) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRemainingTimeOrDistanceChanged$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(remainingTimeArg, remainingDistanceArg, delaySeverityArg)) { if (it is List<*>) { @@ -7868,16 +6710,14 @@ class NavigationSessionEventApi( } } else { callback(Result.failure(MessagesPigeonUtils.createConnectionError(channelName))) - } + } } } - /** Android-only event. */ - fun onTrafficUpdated(callback: (Result) -> Unit) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onTrafficUpdated$separatedMessageChannelSuffix" + fun onTrafficUpdated(callback: (Result) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onTrafficUpdated$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(null) { if (it is List<*>) { @@ -7888,16 +6728,14 @@ class NavigationSessionEventApi( } } else { callback(Result.failure(MessagesPigeonUtils.createConnectionError(channelName))) - } + } } } - /** Android-only event. */ - fun onRerouting(callback: (Result) -> Unit) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRerouting$separatedMessageChannelSuffix" + fun onRerouting(callback: (Result) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRerouting$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(null) { if (it is List<*>) { @@ -7908,16 +6746,14 @@ class NavigationSessionEventApi( } } else { callback(Result.failure(MessagesPigeonUtils.createConnectionError(channelName))) - } + } } } - /** Android-only event. */ - fun onGpsAvailabilityUpdate(availableArg: Boolean, callback: (Result) -> Unit) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onGpsAvailabilityUpdate$separatedMessageChannelSuffix" + fun onGpsAvailabilityUpdate(availableArg: Boolean, callback: (Result) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onGpsAvailabilityUpdate$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(availableArg)) { if (it is List<*>) { @@ -7928,19 +6764,14 @@ class NavigationSessionEventApi( } } else { callback(Result.failure(MessagesPigeonUtils.createConnectionError(channelName))) - } + } } } - /** Android-only event. */ - fun onGpsAvailabilityChange( - eventArg: GpsAvailabilityChangeEventDto, - callback: (Result) -> Unit, - ) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onGpsAvailabilityChange$separatedMessageChannelSuffix" + fun onGpsAvailabilityChange(eventArg: GpsAvailabilityChangeEventDto, callback: (Result) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onGpsAvailabilityChange$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(eventArg)) { if (it is List<*>) { @@ -7951,16 +6782,14 @@ class NavigationSessionEventApi( } } else { callback(Result.failure(MessagesPigeonUtils.createConnectionError(channelName))) - } + } } } - /** Turn-by-Turn navigation events. */ - fun onNavInfo(navInfoArg: NavInfoDto, callback: (Result) -> Unit) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onNavInfo$separatedMessageChannelSuffix" + fun onNavInfo(navInfoArg: NavInfoDto, callback: (Result) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onNavInfo$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(navInfoArg)) { if (it is List<*>) { @@ -7971,16 +6800,17 @@ class NavigationSessionEventApi( } } else { callback(Result.failure(MessagesPigeonUtils.createConnectionError(channelName))) - } + } } } - - /** Navigation session event. Called when a new navigation session starts with active guidance. */ - fun onNewNavigationSession(callback: (Result) -> Unit) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onNewNavigationSession$separatedMessageChannelSuffix" + /** + * Navigation session event. Called when a new navigation + * session starts with active guidance. + */ + fun onNewNavigationSession(callback: (Result) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onNewNavigationSession$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(null) { if (it is List<*>) { @@ -7991,269 +6821,137 @@ class NavigationSessionEventApi( } } else { callback(Result.failure(MessagesPigeonUtils.createConnectionError(channelName))) - } + } } } } - /** Generated interface from Pigeon that represents a handler of messages from Flutter. */ interface AutoMapViewApi { /** - * Sets the map options to be used for Android Auto and CarPlay views. Should be called before the - * Auto/CarPlay screen is created. This allows customization of mapId and basic map settings. + * Sets the map options to be used for Android Auto and CarPlay views. + * Should be called before the Auto/CarPlay screen is created. + * This allows customization of mapId and basic map settings. */ fun setAutoMapOptions(mapOptions: AutoMapOptionsDto) - fun isMyLocationEnabled(): Boolean - fun setMyLocationEnabled(enabled: Boolean) - fun getMyLocation(): LatLngDto? - fun getMapType(): MapTypeDto - fun setMapType(mapType: MapTypeDto) - fun setMapStyle(styleJson: String) - fun getCameraPosition(): CameraPositionDto - fun getVisibleRegion(): LatLngBoundsDto - fun followMyLocation(perspective: CameraPerspectiveDto, zoomLevel: Double?) - - fun animateCameraToCameraPosition( - cameraPosition: CameraPositionDto, - duration: Long?, - callback: (Result) -> Unit, - ) - + fun animateCameraToCameraPosition(cameraPosition: CameraPositionDto, duration: Long?, callback: (Result) -> Unit) fun animateCameraToLatLng(point: LatLngDto, duration: Long?, callback: (Result) -> Unit) - - fun animateCameraToLatLngBounds( - bounds: LatLngBoundsDto, - padding: Double, - duration: Long?, - callback: (Result) -> Unit, - ) - - fun animateCameraToLatLngZoom( - point: LatLngDto, - zoom: Double, - duration: Long?, - callback: (Result) -> Unit, - ) - - fun animateCameraByScroll( - scrollByDx: Double, - scrollByDy: Double, - duration: Long?, - callback: (Result) -> Unit, - ) - - fun animateCameraByZoom( - zoomBy: Double, - focusDx: Double?, - focusDy: Double?, - duration: Long?, - callback: (Result) -> Unit, - ) - + fun animateCameraToLatLngBounds(bounds: LatLngBoundsDto, padding: Double, duration: Long?, callback: (Result) -> Unit) + fun animateCameraToLatLngZoom(point: LatLngDto, zoom: Double, duration: Long?, callback: (Result) -> Unit) + fun animateCameraByScroll(scrollByDx: Double, scrollByDy: Double, duration: Long?, callback: (Result) -> Unit) + fun animateCameraByZoom(zoomBy: Double, focusDx: Double?, focusDy: Double?, duration: Long?, callback: (Result) -> Unit) fun animateCameraToZoom(zoom: Double, duration: Long?, callback: (Result) -> Unit) - fun moveCameraToCameraPosition(cameraPosition: CameraPositionDto) - fun moveCameraToLatLng(point: LatLngDto) - fun moveCameraToLatLngBounds(bounds: LatLngBoundsDto, padding: Double) - fun moveCameraToLatLngZoom(point: LatLngDto, zoom: Double) - fun moveCameraByScroll(scrollByDx: Double, scrollByDy: Double) - fun moveCameraByZoom(zoomBy: Double, focusDx: Double?, focusDy: Double?) - fun moveCameraToZoom(zoom: Double) - fun getMinZoomPreference(): Double - fun getMaxZoomPreference(): Double - fun resetMinMaxZoomPreference() - fun setMinZoomPreference(minZoomPreference: Double) - fun setMaxZoomPreference(maxZoomPreference: Double) - fun setMyLocationButtonEnabled(enabled: Boolean) - fun setConsumeMyLocationButtonClickEventsEnabled(enabled: Boolean) - fun setZoomGesturesEnabled(enabled: Boolean) - fun setZoomControlsEnabled(enabled: Boolean) - fun setCompassEnabled(enabled: Boolean) - fun setRotateGesturesEnabled(enabled: Boolean) - fun setScrollGesturesEnabled(enabled: Boolean) - fun setScrollGesturesDuringRotateOrZoomEnabled(enabled: Boolean) - fun setTiltGesturesEnabled(enabled: Boolean) - fun setMapToolbarEnabled(enabled: Boolean) - fun setTrafficEnabled(enabled: Boolean) - fun setTrafficPromptsEnabled(enabled: Boolean) - fun setTrafficIncidentCardsEnabled(enabled: Boolean) - fun setNavigationTripProgressBarEnabled(enabled: Boolean) - fun setSpeedLimitIconEnabled(enabled: Boolean) - fun setSpeedometerEnabled(enabled: Boolean) - fun setNavigationUIEnabled(enabled: Boolean) - fun isMyLocationButtonEnabled(): Boolean - fun isConsumeMyLocationButtonClickEventsEnabled(): Boolean - fun isZoomGesturesEnabled(): Boolean - fun isZoomControlsEnabled(): Boolean - fun isCompassEnabled(): Boolean - fun isRotateGesturesEnabled(): Boolean - fun isScrollGesturesEnabled(): Boolean - fun isScrollGesturesEnabledDuringRotateOrZoom(): Boolean - fun isTiltGesturesEnabled(): Boolean - fun isMapToolbarEnabled(): Boolean - fun isTrafficEnabled(): Boolean - fun isTrafficPromptsEnabled(): Boolean - fun isTrafficIncidentCardsEnabled(): Boolean - fun isNavigationTripProgressBarEnabled(): Boolean - fun isSpeedLimitIconEnabled(): Boolean - fun isSpeedometerEnabled(): Boolean - fun isNavigationUIEnabled(): Boolean - fun isIndoorEnabled(): Boolean - fun setIndoorEnabled(enabled: Boolean) - fun getFocusedIndoorBuilding(): IndoorBuildingDto? - fun activateIndoorLevel(levelIndex: Long) - fun showRouteOverview() - fun getMarkers(): List - fun addMarkers(markers: List): List - fun updateMarkers(markers: List): List - fun removeMarkers(markers: List) - fun clearMarkers() - fun clear() - fun getPolygons(): List - fun addPolygons(polygons: List): List - fun updatePolygons(polygons: List): List - fun removePolygons(polygons: List) - fun clearPolygons() - fun getPolylines(): List - fun addPolylines(polylines: List): List - fun updatePolylines(polylines: List): List - fun removePolylines(polylines: List) - fun clearPolylines() - fun getCircles(): List - fun addCircles(circles: List): List - fun updateCircles(circles: List): List - fun removeCircles(circles: List) - fun clearCircles() - fun enableOnCameraChangedEvents() - fun isAutoScreenAvailable(): Boolean - fun setPadding(padding: MapPaddingDto) - fun getPadding(): MapPaddingDto - fun getMapColorScheme(): MapColorSchemeDto - fun setMapColorScheme(mapColorScheme: MapColorSchemeDto) - fun getForceNightMode(): NavigationForceNightModeDto - fun setForceNightMode(forceNightMode: NavigationForceNightModeDto) - fun sendCustomNavigationAutoEvent(event: String, data: Any) companion object { /** The codec used by AutoMapViewApi. */ - val codec: MessageCodec by lazy { messagesPigeonCodec() } - + val codec: MessageCodec by lazy { + messagesPigeonCodec() + } /** Sets up an instance of `AutoMapViewApi` to handle messages through the `binaryMessenger`. */ @JvmOverloads - fun setUp( - binaryMessenger: BinaryMessenger, - api: AutoMapViewApi?, - messageChannelSuffix: String = "", - ) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + fun setUp(binaryMessenger: BinaryMessenger, api: AutoMapViewApi?, messageChannelSuffix: String = "") { + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setAutoMapOptions$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setAutoMapOptions$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val mapOptionsArg = args[0] as AutoMapOptionsDto - val wrapped: List = - try { - api.setAutoMapOptions(mapOptionsArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setAutoMapOptions(mapOptionsArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8261,20 +6959,14 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isMyLocationEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isMyLocationEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - listOf(api.isMyLocationEnabled()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.isMyLocationEnabled()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8282,23 +6974,17 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMyLocationEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMyLocationEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val enabledArg = args[0] as Boolean - val wrapped: List = - try { - api.setMyLocationEnabled(enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setMyLocationEnabled(enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8306,20 +6992,14 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMyLocation$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMyLocation$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - listOf(api.getMyLocation()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.getMyLocation()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8327,20 +7007,14 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMapType$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMapType$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - listOf(api.getMapType()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.getMapType()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8348,23 +7022,17 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapType$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapType$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val mapTypeArg = args[0] as MapTypeDto - val wrapped: List = - try { - api.setMapType(mapTypeArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setMapType(mapTypeArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8372,23 +7040,17 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapStyle$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapStyle$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val styleJsonArg = args[0] as String - val wrapped: List = - try { - api.setMapStyle(styleJsonArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setMapStyle(styleJsonArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8396,20 +7058,14 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getCameraPosition$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getCameraPosition$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - listOf(api.getCameraPosition()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.getCameraPosition()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8417,20 +7073,14 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getVisibleRegion$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getVisibleRegion$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - listOf(api.getVisibleRegion()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.getVisibleRegion()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8438,24 +7088,18 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.followMyLocation$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.followMyLocation$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val perspectiveArg = args[0] as CameraPerspectiveDto val zoomLevelArg = args[1] as Double? - val wrapped: List = - try { - api.followMyLocation(perspectiveArg, zoomLevelArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.followMyLocation(perspectiveArg, zoomLevelArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8463,19 +7107,13 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToCameraPosition$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToCameraPosition$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val cameraPositionArg = args[0] as CameraPositionDto val durationArg = args[1] as Long? - api.animateCameraToCameraPosition(cameraPositionArg, durationArg) { - result: Result -> + api.animateCameraToCameraPosition(cameraPositionArg, durationArg) { result: Result -> val error = result.exceptionOrNull() if (error != null) { reply.reply(MessagesPigeonUtils.wrapError(error)) @@ -8490,12 +7128,7 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLng$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLng$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -8516,20 +7149,14 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLngBounds$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLngBounds$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val boundsArg = args[0] as LatLngBoundsDto val paddingArg = args[1] as Double val durationArg = args[2] as Long? - api.animateCameraToLatLngBounds(boundsArg, paddingArg, durationArg) { - result: Result -> + api.animateCameraToLatLngBounds(boundsArg, paddingArg, durationArg) { result: Result -> val error = result.exceptionOrNull() if (error != null) { reply.reply(MessagesPigeonUtils.wrapError(error)) @@ -8544,20 +7171,14 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLngZoom$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLngZoom$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val pointArg = args[0] as LatLngDto val zoomArg = args[1] as Double val durationArg = args[2] as Long? - api.animateCameraToLatLngZoom(pointArg, zoomArg, durationArg) { result: Result - -> + api.animateCameraToLatLngZoom(pointArg, zoomArg, durationArg) { result: Result -> val error = result.exceptionOrNull() if (error != null) { reply.reply(MessagesPigeonUtils.wrapError(error)) @@ -8572,20 +7193,14 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraByScroll$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraByScroll$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val scrollByDxArg = args[0] as Double val scrollByDyArg = args[1] as Double val durationArg = args[2] as Long? - api.animateCameraByScroll(scrollByDxArg, scrollByDyArg, durationArg) { - result: Result -> + api.animateCameraByScroll(scrollByDxArg, scrollByDyArg, durationArg) { result: Result -> val error = result.exceptionOrNull() if (error != null) { reply.reply(MessagesPigeonUtils.wrapError(error)) @@ -8600,12 +7215,7 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraByZoom$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraByZoom$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -8613,8 +7223,7 @@ interface AutoMapViewApi { val focusDxArg = args[1] as Double? val focusDyArg = args[2] as Double? val durationArg = args[3] as Long? - api.animateCameraByZoom(zoomByArg, focusDxArg, focusDyArg, durationArg) { - result: Result -> + api.animateCameraByZoom(zoomByArg, focusDxArg, focusDyArg, durationArg) { result: Result -> val error = result.exceptionOrNull() if (error != null) { reply.reply(MessagesPigeonUtils.wrapError(error)) @@ -8629,12 +7238,7 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToZoom$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToZoom$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -8655,23 +7259,17 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToCameraPosition$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToCameraPosition$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val cameraPositionArg = args[0] as CameraPositionDto - val wrapped: List = - try { - api.moveCameraToCameraPosition(cameraPositionArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.moveCameraToCameraPosition(cameraPositionArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8679,23 +7277,17 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLng$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLng$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val pointArg = args[0] as LatLngDto - val wrapped: List = - try { - api.moveCameraToLatLng(pointArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.moveCameraToLatLng(pointArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8703,24 +7295,18 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLngBounds$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLngBounds$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val boundsArg = args[0] as LatLngBoundsDto val paddingArg = args[1] as Double - val wrapped: List = - try { - api.moveCameraToLatLngBounds(boundsArg, paddingArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.moveCameraToLatLngBounds(boundsArg, paddingArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8728,24 +7314,18 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLngZoom$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLngZoom$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val pointArg = args[0] as LatLngDto val zoomArg = args[1] as Double - val wrapped: List = - try { - api.moveCameraToLatLngZoom(pointArg, zoomArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.moveCameraToLatLngZoom(pointArg, zoomArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8753,24 +7333,18 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraByScroll$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraByScroll$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val scrollByDxArg = args[0] as Double val scrollByDyArg = args[1] as Double - val wrapped: List = - try { - api.moveCameraByScroll(scrollByDxArg, scrollByDyArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.moveCameraByScroll(scrollByDxArg, scrollByDyArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8778,25 +7352,19 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraByZoom$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraByZoom$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val zoomByArg = args[0] as Double val focusDxArg = args[1] as Double? val focusDyArg = args[2] as Double? - val wrapped: List = - try { - api.moveCameraByZoom(zoomByArg, focusDxArg, focusDyArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.moveCameraByZoom(zoomByArg, focusDxArg, focusDyArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8804,23 +7372,17 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToZoom$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToZoom$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val zoomArg = args[0] as Double - val wrapped: List = - try { - api.moveCameraToZoom(zoomArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.moveCameraToZoom(zoomArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8828,20 +7390,14 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMinZoomPreference$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMinZoomPreference$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - listOf(api.getMinZoomPreference()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.getMinZoomPreference()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8849,20 +7405,14 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMaxZoomPreference$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMaxZoomPreference$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - listOf(api.getMaxZoomPreference()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.getMaxZoomPreference()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8870,21 +7420,15 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.resetMinMaxZoomPreference$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.resetMinMaxZoomPreference$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - api.resetMinMaxZoomPreference() - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.resetMinMaxZoomPreference() + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8892,23 +7436,17 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMinZoomPreference$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMinZoomPreference$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val minZoomPreferenceArg = args[0] as Double - val wrapped: List = - try { - api.setMinZoomPreference(minZoomPreferenceArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setMinZoomPreference(minZoomPreferenceArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8916,23 +7454,17 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMaxZoomPreference$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMaxZoomPreference$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val maxZoomPreferenceArg = args[0] as Double - val wrapped: List = - try { - api.setMaxZoomPreference(maxZoomPreferenceArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setMaxZoomPreference(maxZoomPreferenceArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8940,23 +7472,17 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMyLocationButtonEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMyLocationButtonEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val enabledArg = args[0] as Boolean - val wrapped: List = - try { - api.setMyLocationButtonEnabled(enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setMyLocationButtonEnabled(enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8964,23 +7490,17 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setConsumeMyLocationButtonClickEventsEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setConsumeMyLocationButtonClickEventsEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val enabledArg = args[0] as Boolean - val wrapped: List = - try { - api.setConsumeMyLocationButtonClickEventsEnabled(enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setConsumeMyLocationButtonClickEventsEnabled(enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8988,23 +7508,17 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setZoomGesturesEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setZoomGesturesEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val enabledArg = args[0] as Boolean - val wrapped: List = - try { - api.setZoomGesturesEnabled(enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setZoomGesturesEnabled(enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -9012,23 +7526,17 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setZoomControlsEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setZoomControlsEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val enabledArg = args[0] as Boolean - val wrapped: List = - try { - api.setZoomControlsEnabled(enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setZoomControlsEnabled(enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -9036,23 +7544,17 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setCompassEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setCompassEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val enabledArg = args[0] as Boolean - val wrapped: List = - try { - api.setCompassEnabled(enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setCompassEnabled(enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -9060,23 +7562,17 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setRotateGesturesEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setRotateGesturesEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val enabledArg = args[0] as Boolean - val wrapped: List = - try { - api.setRotateGesturesEnabled(enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setRotateGesturesEnabled(enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -9084,23 +7580,17 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setScrollGesturesEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setScrollGesturesEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val enabledArg = args[0] as Boolean - val wrapped: List = - try { - api.setScrollGesturesEnabled(enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setScrollGesturesEnabled(enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -9108,23 +7598,17 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setScrollGesturesDuringRotateOrZoomEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setScrollGesturesDuringRotateOrZoomEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val enabledArg = args[0] as Boolean - val wrapped: List = - try { - api.setScrollGesturesDuringRotateOrZoomEnabled(enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setScrollGesturesDuringRotateOrZoomEnabled(enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -9132,23 +7616,17 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTiltGesturesEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTiltGesturesEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val enabledArg = args[0] as Boolean - val wrapped: List = - try { - api.setTiltGesturesEnabled(enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setTiltGesturesEnabled(enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -9156,23 +7634,17 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapToolbarEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapToolbarEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val enabledArg = args[0] as Boolean - val wrapped: List = - try { - api.setMapToolbarEnabled(enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setMapToolbarEnabled(enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -9180,23 +7652,17 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val enabledArg = args[0] as Boolean - val wrapped: List = - try { - api.setTrafficEnabled(enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setTrafficEnabled(enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -9204,23 +7670,17 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficPromptsEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficPromptsEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val enabledArg = args[0] as Boolean - val wrapped: List = - try { - api.setTrafficPromptsEnabled(enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setTrafficPromptsEnabled(enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -9228,23 +7688,17 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficIncidentCardsEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficIncidentCardsEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val enabledArg = args[0] as Boolean - val wrapped: List = - try { - api.setTrafficIncidentCardsEnabled(enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setTrafficIncidentCardsEnabled(enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -9252,23 +7706,17 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setNavigationTripProgressBarEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setNavigationTripProgressBarEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val enabledArg = args[0] as Boolean - val wrapped: List = - try { - api.setNavigationTripProgressBarEnabled(enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setNavigationTripProgressBarEnabled(enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -9276,23 +7724,17 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setSpeedLimitIconEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setSpeedLimitIconEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val enabledArg = args[0] as Boolean - val wrapped: List = - try { - api.setSpeedLimitIconEnabled(enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setSpeedLimitIconEnabled(enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -9300,23 +7742,17 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setSpeedometerEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setSpeedometerEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val enabledArg = args[0] as Boolean - val wrapped: List = - try { - api.setSpeedometerEnabled(enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setSpeedometerEnabled(enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -9324,23 +7760,17 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setNavigationUIEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setNavigationUIEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val enabledArg = args[0] as Boolean - val wrapped: List = - try { - api.setNavigationUIEnabled(enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setNavigationUIEnabled(enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -9348,20 +7778,14 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isMyLocationButtonEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isMyLocationButtonEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - listOf(api.isMyLocationButtonEnabled()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.isMyLocationButtonEnabled()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -9369,20 +7793,14 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isConsumeMyLocationButtonClickEventsEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isConsumeMyLocationButtonClickEventsEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - listOf(api.isConsumeMyLocationButtonClickEventsEnabled()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.isConsumeMyLocationButtonClickEventsEnabled()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -9390,20 +7808,14 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isZoomGesturesEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isZoomGesturesEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - listOf(api.isZoomGesturesEnabled()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.isZoomGesturesEnabled()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -9411,20 +7823,14 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isZoomControlsEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isZoomControlsEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - listOf(api.isZoomControlsEnabled()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.isZoomControlsEnabled()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -9432,20 +7838,14 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isCompassEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isCompassEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - listOf(api.isCompassEnabled()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.isCompassEnabled()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -9453,20 +7853,14 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isRotateGesturesEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isRotateGesturesEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - listOf(api.isRotateGesturesEnabled()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.isRotateGesturesEnabled()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -9474,20 +7868,14 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isScrollGesturesEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isScrollGesturesEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - listOf(api.isScrollGesturesEnabled()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.isScrollGesturesEnabled()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -9495,20 +7883,14 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isScrollGesturesEnabledDuringRotateOrZoom$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isScrollGesturesEnabledDuringRotateOrZoom$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - listOf(api.isScrollGesturesEnabledDuringRotateOrZoom()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.isScrollGesturesEnabledDuringRotateOrZoom()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -9516,20 +7898,14 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTiltGesturesEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTiltGesturesEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - listOf(api.isTiltGesturesEnabled()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.isTiltGesturesEnabled()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -9537,20 +7913,14 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isMapToolbarEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isMapToolbarEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - listOf(api.isMapToolbarEnabled()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.isMapToolbarEnabled()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -9558,20 +7928,14 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTrafficEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTrafficEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - listOf(api.isTrafficEnabled()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.isTrafficEnabled()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -9579,20 +7943,14 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTrafficPromptsEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTrafficPromptsEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - listOf(api.isTrafficPromptsEnabled()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.isTrafficPromptsEnabled()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -9600,20 +7958,14 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTrafficIncidentCardsEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTrafficIncidentCardsEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - listOf(api.isTrafficIncidentCardsEnabled()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.isTrafficIncidentCardsEnabled()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -9621,20 +7973,14 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isNavigationTripProgressBarEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isNavigationTripProgressBarEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - listOf(api.isNavigationTripProgressBarEnabled()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.isNavigationTripProgressBarEnabled()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -9642,20 +7988,14 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isSpeedLimitIconEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isSpeedLimitIconEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - listOf(api.isSpeedLimitIconEnabled()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.isSpeedLimitIconEnabled()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -9663,20 +8003,14 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isSpeedometerEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isSpeedometerEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - listOf(api.isSpeedometerEnabled()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.isSpeedometerEnabled()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -9684,20 +8018,14 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isNavigationUIEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isNavigationUIEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - listOf(api.isNavigationUIEnabled()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.isNavigationUIEnabled()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -9705,20 +8033,14 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isIndoorEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isIndoorEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - listOf(api.isIndoorEnabled()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.isIndoorEnabled()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -9726,23 +8048,17 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setIndoorEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setIndoorEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val enabledArg = args[0] as Boolean - val wrapped: List = - try { - api.setIndoorEnabled(enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setIndoorEnabled(enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -9750,20 +8066,14 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getFocusedIndoorBuilding$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getFocusedIndoorBuilding$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - listOf(api.getFocusedIndoorBuilding()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.getFocusedIndoorBuilding()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -9771,23 +8081,17 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.activateIndoorLevel$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.activateIndoorLevel$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val levelIndexArg = args[0] as Long - val wrapped: List = - try { - api.activateIndoorLevel(levelIndexArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.activateIndoorLevel(levelIndexArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -9795,21 +8099,15 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.showRouteOverview$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.showRouteOverview$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - api.showRouteOverview() - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.showRouteOverview() + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -9817,20 +8115,14 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMarkers$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMarkers$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - listOf(api.getMarkers()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.getMarkers()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -9838,22 +8130,16 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addMarkers$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addMarkers$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val markersArg = args[0] as List - val wrapped: List = - try { - listOf(api.addMarkers(markersArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.addMarkers(markersArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -9861,22 +8147,16 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updateMarkers$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updateMarkers$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val markersArg = args[0] as List - val wrapped: List = - try { - listOf(api.updateMarkers(markersArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.updateMarkers(markersArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -9884,23 +8164,17 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removeMarkers$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removeMarkers$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val markersArg = args[0] as List - val wrapped: List = - try { - api.removeMarkers(markersArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.removeMarkers(markersArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -9908,21 +8182,15 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearMarkers$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearMarkers$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - api.clearMarkers() - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.clearMarkers() + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -9930,21 +8198,15 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clear$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clear$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - api.clear() - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.clear() + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -9952,20 +8214,14 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getPolygons$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getPolygons$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - listOf(api.getPolygons()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.getPolygons()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -9973,22 +8229,16 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addPolygons$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addPolygons$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val polygonsArg = args[0] as List - val wrapped: List = - try { - listOf(api.addPolygons(polygonsArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.addPolygons(polygonsArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -9996,22 +8246,16 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updatePolygons$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updatePolygons$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val polygonsArg = args[0] as List - val wrapped: List = - try { - listOf(api.updatePolygons(polygonsArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.updatePolygons(polygonsArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -10019,23 +8263,17 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removePolygons$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removePolygons$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val polygonsArg = args[0] as List - val wrapped: List = - try { - api.removePolygons(polygonsArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.removePolygons(polygonsArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -10043,21 +8281,15 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearPolygons$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearPolygons$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - api.clearPolygons() - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.clearPolygons() + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -10065,20 +8297,14 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getPolylines$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getPolylines$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - listOf(api.getPolylines()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.getPolylines()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -10086,22 +8312,16 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addPolylines$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addPolylines$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val polylinesArg = args[0] as List - val wrapped: List = - try { - listOf(api.addPolylines(polylinesArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.addPolylines(polylinesArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -10109,22 +8329,16 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updatePolylines$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updatePolylines$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val polylinesArg = args[0] as List - val wrapped: List = - try { - listOf(api.updatePolylines(polylinesArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.updatePolylines(polylinesArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -10132,23 +8346,17 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removePolylines$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removePolylines$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val polylinesArg = args[0] as List - val wrapped: List = - try { - api.removePolylines(polylinesArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.removePolylines(polylinesArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -10156,21 +8364,15 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearPolylines$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearPolylines$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - api.clearPolylines() - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.clearPolylines() + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -10178,20 +8380,14 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getCircles$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getCircles$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - listOf(api.getCircles()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.getCircles()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -10199,22 +8395,16 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addCircles$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addCircles$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val circlesArg = args[0] as List - val wrapped: List = - try { - listOf(api.addCircles(circlesArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.addCircles(circlesArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -10222,22 +8412,16 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updateCircles$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updateCircles$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val circlesArg = args[0] as List - val wrapped: List = - try { - listOf(api.updateCircles(circlesArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.updateCircles(circlesArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -10245,23 +8429,17 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removeCircles$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removeCircles$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val circlesArg = args[0] as List - val wrapped: List = - try { - api.removeCircles(circlesArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.removeCircles(circlesArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -10269,21 +8447,15 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearCircles$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearCircles$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - api.clearCircles() - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.clearCircles() + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -10291,21 +8463,15 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.enableOnCameraChangedEvents$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.enableOnCameraChangedEvents$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - api.enableOnCameraChangedEvents() - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.enableOnCameraChangedEvents() + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -10313,20 +8479,14 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isAutoScreenAvailable$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isAutoScreenAvailable$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - listOf(api.isAutoScreenAvailable()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.isAutoScreenAvailable()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -10334,23 +8494,17 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setPadding$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setPadding$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val paddingArg = args[0] as MapPaddingDto - val wrapped: List = - try { - api.setPadding(paddingArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setPadding(paddingArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -10358,20 +8512,14 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getPadding$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getPadding$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - listOf(api.getPadding()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.getPadding()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -10379,20 +8527,14 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMapColorScheme$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMapColorScheme$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - listOf(api.getMapColorScheme()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.getMapColorScheme()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -10400,23 +8542,17 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapColorScheme$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapColorScheme$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val mapColorSchemeArg = args[0] as MapColorSchemeDto - val wrapped: List = - try { - api.setMapColorScheme(mapColorSchemeArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setMapColorScheme(mapColorSchemeArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -10424,20 +8560,14 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getForceNightMode$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getForceNightMode$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - listOf(api.getForceNightMode()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.getForceNightMode()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -10445,23 +8575,17 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setForceNightMode$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setForceNightMode$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val forceNightModeArg = args[0] as NavigationForceNightModeDto - val wrapped: List = - try { - api.setForceNightMode(forceNightModeArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setForceNightMode(forceNightModeArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -10469,24 +8593,18 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.sendCustomNavigationAutoEvent$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.sendCustomNavigationAutoEvent$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val eventArg = args[0] as String val dataArg = args[1] as Any - val wrapped: List = - try { - api.sendCustomNavigationAutoEvent(eventArg, dataArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.sendCustomNavigationAutoEvent(eventArg, dataArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -10496,26 +8614,18 @@ interface AutoMapViewApi { } } } - /** Generated class from Pigeon that represents Flutter messages that can be called from Kotlin. */ -class AutoViewEventApi( - private val binaryMessenger: BinaryMessenger, - private val messageChannelSuffix: String = "", -) { +class AutoViewEventApi(private val binaryMessenger: BinaryMessenger, private val messageChannelSuffix: String = "") { companion object { /** The codec used by AutoViewEventApi. */ - val codec: MessageCodec by lazy { messagesPigeonCodec() } - } - - fun onCustomNavigationAutoEvent( - eventArg: String, - dataArg: Any, - callback: (Result) -> Unit, - ) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = - "dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onCustomNavigationAutoEvent$separatedMessageChannelSuffix" + val codec: MessageCodec by lazy { + messagesPigeonCodec() + } + } + fun onCustomNavigationAutoEvent(eventArg: String, dataArg: Any, callback: (Result) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onCustomNavigationAutoEvent$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(eventArg, dataArg)) { if (it is List<*>) { @@ -10526,15 +8636,13 @@ class AutoViewEventApi( } } else { callback(Result.failure(MessagesPigeonUtils.createConnectionError(channelName))) - } + } } } - - fun onAutoScreenAvailabilityChanged(isAvailableArg: Boolean, callback: (Result) -> Unit) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = - "dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onAutoScreenAvailabilityChanged$separatedMessageChannelSuffix" + fun onAutoScreenAvailabilityChanged(isAvailableArg: Boolean, callback: (Result) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onAutoScreenAvailabilityChanged$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(isAvailableArg)) { if (it is List<*>) { @@ -10545,15 +8653,13 @@ class AutoViewEventApi( } } else { callback(Result.failure(MessagesPigeonUtils.createConnectionError(channelName))) - } + } } } - - fun onPromptVisibilityChanged(promptVisibleArg: Boolean, callback: (Result) -> Unit) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = - "dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onPromptVisibilityChanged$separatedMessageChannelSuffix" + fun onPromptVisibilityChanged(promptVisibleArg: Boolean, callback: (Result) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onPromptVisibilityChanged$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(promptVisibleArg)) { if (it is List<*>) { @@ -10564,18 +8670,13 @@ class AutoViewEventApi( } } else { callback(Result.failure(MessagesPigeonUtils.createConnectionError(channelName))) - } + } } } - - fun onNavigationUIEnabledChanged( - navigationUIEnabledArg: Boolean, - callback: (Result) -> Unit, - ) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = - "dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onNavigationUIEnabledChanged$separatedMessageChannelSuffix" + fun onNavigationUIEnabledChanged(navigationUIEnabledArg: Boolean, callback: (Result) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onNavigationUIEnabledChanged$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(navigationUIEnabledArg)) { if (it is List<*>) { @@ -10586,18 +8687,13 @@ class AutoViewEventApi( } } else { callback(Result.failure(MessagesPigeonUtils.createConnectionError(channelName))) - } + } } } - - fun onIndoorFocusedBuildingChanged( - buildingArg: IndoorBuildingDto?, - callback: (Result) -> Unit, - ) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = - "dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onIndoorFocusedBuildingChanged$separatedMessageChannelSuffix" + fun onIndoorFocusedBuildingChanged(buildingArg: IndoorBuildingDto?, callback: (Result) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onIndoorFocusedBuildingChanged$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(buildingArg)) { if (it is List<*>) { @@ -10608,18 +8704,13 @@ class AutoViewEventApi( } } else { callback(Result.failure(MessagesPigeonUtils.createConnectionError(channelName))) - } + } } } - - fun onIndoorActiveLevelChanged( - buildingArg: IndoorBuildingDto?, - callback: (Result) -> Unit, - ) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = - "dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onIndoorActiveLevelChanged$separatedMessageChannelSuffix" + fun onIndoorActiveLevelChanged(buildingArg: IndoorBuildingDto?, callback: (Result) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onIndoorActiveLevelChanged$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(buildingArg)) { if (it is List<*>) { @@ -10630,48 +8721,34 @@ class AutoViewEventApi( } } else { callback(Result.failure(MessagesPigeonUtils.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 { messagesPigeonCodec() } - - /** - * Sets up an instance of `NavigationInspector` to handle messages through the - * `binaryMessenger`. - */ + val codec: MessageCodec by lazy { + messagesPigeonCodec() + } + /** Sets up an instance of `NavigationInspector` to handle messages through the `binaryMessenger`. */ @JvmOverloads - fun setUp( - binaryMessenger: BinaryMessenger, - api: NavigationInspector?, - messageChannelSuffix: String = "", - ) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + fun setUp(binaryMessenger: BinaryMessenger, api: NavigationInspector?, messageChannelSuffix: String = "") { + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.NavigationInspector.isViewAttachedToSession$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationInspector.isViewAttachedToSession$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - listOf(api.isViewAttachedToSession(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.isViewAttachedToSession(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { diff --git a/example/lib/pages/navigation.dart b/example/lib/pages/navigation.dart index e886109e..de5d44e3 100644 --- a/example/lib/pages/navigation.dart +++ b/example/lib/pages/navigation.dart @@ -2182,13 +2182,39 @@ class _NavigationPageState extends ExamplePageState { Colors.blueGrey, ), ), - child: const Text('Apply sample colors'), + child: const Text('Apply background colors'), + ), + ElevatedButton( + onPressed: () => _applyNavigationHeaderStyling( + const NavigationHeaderStylingOptions( + primaryDayModeBackgroundColor: Colors.indigo, + secondaryDayModeBackgroundColor: + Colors.deepPurple, + primaryNightModeBackgroundColor: Colors.black, + secondaryNightModeBackgroundColor: + Colors.indigo, + largeManeuverIconColor: Colors.orange, + smallManeuverIconColor: Colors.amber, + nextStepTextColor: Colors.yellow, + nextStepTextSize: 18, + distanceValueTextColor: Colors.white, + distanceUnitsTextColor: Colors.white70, + distanceValueTextSize: 24, + distanceUnitsTextSize: 16, + instructionsTextColor: Colors.cyanAccent, + instructionsFirstRowTextSize: 28, + instructionsSecondRowTextSize: 22, + guidanceRecommendedLaneColor: + Colors.lightGreenAccent, + ), + ), + child: const Text('Apply full styling sample'), ), ElevatedButton( onPressed: () => _applyNavigationHeaderStyling( const NavigationHeaderStylingOptions(), ), - child: const Text('Reset header colors'), + child: const Text('Reset header styling'), ), ], ), @@ -2197,6 +2223,15 @@ class _NavigationPageState extends ExamplePageState { 'Current primary day color: ' '${_navigationHeaderStylingOptions.primaryDayModeBackgroundColor ?? 'default'}', ), + Text( + 'Current large maneuver icon color: ' + '${_navigationHeaderStylingOptions.largeManeuverIconColor ?? 'default'}', + ), + Text( + 'Current next-step text size: ' + '${_navigationHeaderStylingOptions.nextStepTextSize ?? 'default'} ' + '(Android only)', + ), ], ), ), diff --git a/ios/google_navigation_flutter/Sources/google_navigation_flutter/GoogleMapsNavigationView.swift b/ios/google_navigation_flutter/Sources/google_navigation_flutter/GoogleMapsNavigationView.swift index 9e784664..78e14690 100644 --- a/ios/google_navigation_flutter/Sources/google_navigation_flutter/GoogleMapsNavigationView.swift +++ b/ios/google_navigation_flutter/Sources/google_navigation_flutter/GoogleMapsNavigationView.swift @@ -628,7 +628,20 @@ public class GoogleMapsNavigationView: NSObject, FlutterPlatformView, ViewSettle primaryNightModeBackgroundColor: _mapView.settings .navigationHeaderPrimaryBackgroundColorNightMode?.toRgb(), secondaryNightModeBackgroundColor: _mapView.settings - .navigationHeaderSecondaryBackgroundColorNightMode?.toRgb() + .navigationHeaderSecondaryBackgroundColorNightMode?.toRgb(), + largeManeuverIconColor: _mapView.settings.navigationHeaderLargeManeuverIconColor? + .toRgb(), + smallManeuverIconColor: _mapView.settings.navigationHeaderSmallManeuverIconColor? + .toRgb(), + nextStepTextColor: _mapView.settings.navigationHeaderNextStepTextColor?.toRgb(), + distanceValueTextColor: _mapView.settings.navigationHeaderDistanceValueTextColor? + .toRgb(), + distanceUnitsTextColor: _mapView.settings.navigationHeaderDistanceUnitsTextColor? + .toRgb(), + instructionsTextColor: _mapView.settings.navigationHeaderInstructionsTextColor? + .toRgb(), + guidanceRecommendedLaneColor: _mapView.settings + .navigationHeaderGuidanceRecommendedLaneColor?.toRgb() ) } @@ -641,6 +654,20 @@ public class GoogleMapsNavigationView: NSObject, FlutterPlatformView, ViewSettle .primaryNightModeBackgroundColor.map { UIColor(from: $0) } _mapView.settings.navigationHeaderSecondaryBackgroundColorNightMode = stylingOptions .secondaryNightModeBackgroundColor.map { UIColor(from: $0) } + _mapView.settings.navigationHeaderLargeManeuverIconColor = stylingOptions + .largeManeuverIconColor.map { UIColor(from: $0) } + _mapView.settings.navigationHeaderSmallManeuverIconColor = stylingOptions + .smallManeuverIconColor.map { UIColor(from: $0) } + _mapView.settings.navigationHeaderNextStepTextColor = stylingOptions + .nextStepTextColor.map { UIColor(from: $0) } + _mapView.settings.navigationHeaderDistanceValueTextColor = stylingOptions + .distanceValueTextColor.map { UIColor(from: $0) } + _mapView.settings.navigationHeaderDistanceUnitsTextColor = stylingOptions + .distanceUnitsTextColor.map { UIColor(from: $0) } + _mapView.settings.navigationHeaderInstructionsTextColor = stylingOptions + .instructionsTextColor.map { UIColor(from: $0) } + _mapView.settings.navigationHeaderGuidanceRecommendedLaneColor = stylingOptions + .guidanceRecommendedLaneColor.map { UIColor(from: $0) } } func isNavigationFooterEnabled() -> Bool { 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 f1fc2f95..0799220a 100644 --- a/ios/google_navigation_flutter/Sources/google_navigation_flutter/messages.g.swift +++ b/ios/google_navigation_flutter/Sources/google_navigation_flutter/messages.g.swift @@ -70,9 +70,7 @@ private func wrapError(_ error: Any) -> [Any?] { } private func createConnectionError(withChannelName channelName: String) -> PigeonError { - return PigeonError( - code: "channel-error", message: "Unable to establish connection on channel: '\(channelName)'.", - details: "") + return PigeonError(code: "channel-error", message: "Unable to establish connection on channel: '\(channelName)'.", details: "") } private func isNullish(_ value: Any?) -> Bool { @@ -127,12 +125,12 @@ func deepEqualsmessages(_ lhs: Any?, _ rhs: Any?) -> Bool { func deepHashmessages(value: Any?, hasher: inout Hasher) { if let valueList = value as? [AnyHashable] { - for item in valueList { deepHashmessages(value: item, hasher: &hasher) } - return + for item in valueList { deepHashmessages(value: item, hasher: &hasher) } + return } if let valueDict = value as? [AnyHashable: AnyHashable] { - for key in valueDict.keys { + for key in valueDict.keys { hasher.combine(key) deepHashmessages(value: valueDict[key]!, hasher: &hasher) } @@ -146,6 +144,8 @@ func deepHashmessages(value: Any?, hasher: inout Hasher) { return hasher.combine(String(describing: value)) } + + /// Describes the type of map to construct. enum MapViewTypeDto: Int { /// Navigation view supports navigation overlay, and current navigation session is displayed on the map. @@ -517,6 +517,7 @@ struct AutoMapOptionsDto: Hashable { /// Determines the initial visibility of the navigation UI on map initialization. var navigationUIEnabledPreference: NavigationUIEnabledPreferenceDto? = nil + // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> AutoMapOptionsDto? { let cameraPosition: CameraPositionDto? = nilOrValue(pigeonVar_list[0]) @@ -524,8 +525,7 @@ struct AutoMapOptionsDto: Hashable { let mapType: MapTypeDto? = nilOrValue(pigeonVar_list[2]) let mapColorScheme: MapColorSchemeDto? = nilOrValue(pigeonVar_list[3]) let forceNightMode: NavigationForceNightModeDto? = nilOrValue(pigeonVar_list[4]) - let navigationUIEnabledPreference: NavigationUIEnabledPreferenceDto? = nilOrValue( - pigeonVar_list[5]) + let navigationUIEnabledPreference: NavigationUIEnabledPreferenceDto? = nilOrValue(pigeonVar_list[5]) return AutoMapOptionsDto( cameraPosition: cameraPosition, @@ -547,8 +547,7 @@ struct AutoMapOptionsDto: Hashable { ] } static func == (lhs: AutoMapOptionsDto, rhs: AutoMapOptionsDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) - } + return deepEqualsmessages(lhs.toList(), rhs.toList()) } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -593,6 +592,7 @@ struct MapOptionsDto: Hashable { /// The map color scheme mode for the map view. var mapColorScheme: MapColorSchemeDto + // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> MapOptionsDto? { let cameraPosition = pigeonVar_list[0] as! CameraPositionDto @@ -652,8 +652,7 @@ struct MapOptionsDto: Hashable { ] } static func == (lhs: MapOptionsDto, rhs: MapOptionsDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) - } + return deepEqualsmessages(lhs.toList(), rhs.toList()) } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -668,6 +667,7 @@ struct NavigationViewOptionsDto: Hashable { /// Controls the navigation night mode for Navigation UI. var forceNightMode: NavigationForceNightModeDto + // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> NavigationViewOptionsDto? { let navigationUIEnabledPreference = pigeonVar_list[0] as! NavigationUIEnabledPreferenceDto @@ -685,8 +685,7 @@ struct NavigationViewOptionsDto: Hashable { ] } static func == (lhs: NavigationViewOptionsDto, rhs: NavigationViewOptionsDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) - } + return deepEqualsmessages(lhs.toList(), rhs.toList()) } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -703,6 +702,7 @@ struct ViewCreationOptionsDto: Hashable { var mapOptions: MapOptionsDto var navigationViewOptions: NavigationViewOptionsDto? = nil + // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> ViewCreationOptionsDto? { let mapViewType = pigeonVar_list[0] as! MapViewTypeDto @@ -723,8 +723,7 @@ struct ViewCreationOptionsDto: Hashable { ] } static func == (lhs: ViewCreationOptionsDto, rhs: ViewCreationOptionsDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) - } + return deepEqualsmessages(lhs.toList(), rhs.toList()) } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -737,6 +736,7 @@ struct CameraPositionDto: Hashable { var tilt: Double var zoom: Double + // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> CameraPositionDto? { let bearing = pigeonVar_list[0] as! Double @@ -760,8 +760,7 @@ struct CameraPositionDto: Hashable { ] } static func == (lhs: CameraPositionDto, rhs: CameraPositionDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) - } + return deepEqualsmessages(lhs.toList(), rhs.toList()) } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -774,6 +773,7 @@ struct MarkerDto: Hashable { /// Options for marker var options: MarkerOptionsDto + // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> MarkerDto? { let markerId = pigeonVar_list[0] as! String @@ -791,8 +791,7 @@ struct MarkerDto: Hashable { ] } static func == (lhs: MarkerDto, rhs: MarkerDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) - } + return deepEqualsmessages(lhs.toList(), rhs.toList()) } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -812,6 +811,7 @@ struct MarkerOptionsDto: Hashable { var zIndex: Double var icon: ImageDescriptorDto + // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> MarkerOptionsDto? { let alpha = pigeonVar_list[0] as! Double @@ -856,8 +856,7 @@ struct MarkerOptionsDto: Hashable { ] } static func == (lhs: MarkerOptionsDto, rhs: MarkerOptionsDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) - } + return deepEqualsmessages(lhs.toList(), rhs.toList()) } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -871,6 +870,7 @@ struct ImageDescriptorDto: Hashable { var height: Double? = nil var type: RegisteredImageTypeDto + // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> ImageDescriptorDto? { let registeredImageId: String? = nilOrValue(pigeonVar_list[0]) @@ -897,8 +897,7 @@ struct ImageDescriptorDto: Hashable { ] } static func == (lhs: ImageDescriptorDto, rhs: ImageDescriptorDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) - } + return deepEqualsmessages(lhs.toList(), rhs.toList()) } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -910,6 +909,7 @@ struct InfoWindowDto: Hashable { var snippet: String? = nil var anchor: MarkerAnchorDto + // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> InfoWindowDto? { let title: String? = nilOrValue(pigeonVar_list[0]) @@ -930,8 +930,7 @@ struct InfoWindowDto: Hashable { ] } static func == (lhs: InfoWindowDto, rhs: InfoWindowDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) - } + return deepEqualsmessages(lhs.toList(), rhs.toList()) } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -942,6 +941,7 @@ struct MarkerAnchorDto: Hashable { var u: Double var v: Double + // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> MarkerAnchorDto? { let u = pigeonVar_list[0] as! Double @@ -959,8 +959,7 @@ struct MarkerAnchorDto: Hashable { ] } static func == (lhs: MarkerAnchorDto, rhs: MarkerAnchorDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) - } + return deepEqualsmessages(lhs.toList(), rhs.toList()) } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -979,6 +978,7 @@ struct PointOfInterestDto: Hashable { /// The geographical coordinates of the POI. var latLng: LatLngDto + // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> PointOfInterestDto? { let placeID = pigeonVar_list[0] as! String @@ -999,8 +999,7 @@ struct PointOfInterestDto: Hashable { ] } static func == (lhs: PointOfInterestDto, rhs: PointOfInterestDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) - } + return deepEqualsmessages(lhs.toList(), rhs.toList()) } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -1015,6 +1014,7 @@ struct IndoorLevelDto: Hashable { /// Short display name of the level. var shortName: String? = nil + // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> IndoorLevelDto? { let name: String? = nilOrValue(pigeonVar_list[0]) @@ -1032,8 +1032,7 @@ struct IndoorLevelDto: Hashable { ] } static func == (lhs: IndoorLevelDto, rhs: IndoorLevelDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) - } + return deepEqualsmessages(lhs.toList(), rhs.toList()) } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -1052,6 +1051,7 @@ struct IndoorBuildingDto: Hashable { /// Whether building is mostly underground, if known. var isUnderground: Bool? = nil + // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> IndoorBuildingDto? { let levels = pigeonVar_list[0] as! [IndoorLevelDto?] @@ -1075,8 +1075,7 @@ struct IndoorBuildingDto: Hashable { ] } static func == (lhs: IndoorBuildingDto, rhs: IndoorBuildingDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) - } + return deepEqualsmessages(lhs.toList(), rhs.toList()) } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -1087,6 +1086,7 @@ struct PolygonDto: Hashable { var polygonId: String var options: PolygonOptionsDto + // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> PolygonDto? { let polygonId = pigeonVar_list[0] as! String @@ -1104,8 +1104,7 @@ struct PolygonDto: Hashable { ] } static func == (lhs: PolygonDto, rhs: PolygonDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) - } + return deepEqualsmessages(lhs.toList(), rhs.toList()) } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -1123,6 +1122,7 @@ struct PolygonOptionsDto: Hashable { var visible: Bool var zIndex: Double + // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> PolygonOptionsDto? { let points = pigeonVar_list[0] as! [LatLngDto?] @@ -1161,8 +1161,7 @@ struct PolygonOptionsDto: Hashable { ] } static func == (lhs: PolygonOptionsDto, rhs: PolygonOptionsDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) - } + return deepEqualsmessages(lhs.toList(), rhs.toList()) } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -1172,6 +1171,7 @@ struct PolygonOptionsDto: Hashable { struct PolygonHoleDto: Hashable { var points: [LatLngDto?] + // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> PolygonHoleDto? { let points = pigeonVar_list[0] as! [LatLngDto?] @@ -1186,8 +1186,7 @@ struct PolygonHoleDto: Hashable { ] } static func == (lhs: PolygonHoleDto, rhs: PolygonHoleDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) - } + return deepEqualsmessages(lhs.toList(), rhs.toList()) } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -1199,6 +1198,7 @@ struct StyleSpanStrokeStyleDto: Hashable { var fromColor: Int64? = nil var toColor: Int64? = nil + // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> StyleSpanStrokeStyleDto? { let solidColor: Int64? = nilOrValue(pigeonVar_list[0]) @@ -1219,8 +1219,7 @@ struct StyleSpanStrokeStyleDto: Hashable { ] } static func == (lhs: StyleSpanStrokeStyleDto, rhs: StyleSpanStrokeStyleDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) - } + return deepEqualsmessages(lhs.toList(), rhs.toList()) } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -1231,6 +1230,7 @@ struct StyleSpanDto: Hashable { var length: Double var style: StyleSpanStrokeStyleDto + // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> StyleSpanDto? { let length = pigeonVar_list[0] as! Double @@ -1248,8 +1248,7 @@ struct StyleSpanDto: Hashable { ] } static func == (lhs: StyleSpanDto, rhs: StyleSpanDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) - } + return deepEqualsmessages(lhs.toList(), rhs.toList()) } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -1260,6 +1259,7 @@ struct PolylineDto: Hashable { var polylineId: String var options: PolylineOptionsDto + // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> PolylineDto? { let polylineId = pigeonVar_list[0] as! String @@ -1277,8 +1277,7 @@ struct PolylineDto: Hashable { ] } static func == (lhs: PolylineDto, rhs: PolylineDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) - } + return deepEqualsmessages(lhs.toList(), rhs.toList()) } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -1289,6 +1288,7 @@ struct PatternItemDto: Hashable { var type: PatternTypeDto var length: Double? = nil + // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> PatternItemDto? { let type = pigeonVar_list[0] as! PatternTypeDto @@ -1306,8 +1306,7 @@ struct PatternItemDto: Hashable { ] } static func == (lhs: PatternItemDto, rhs: PatternItemDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) - } + return deepEqualsmessages(lhs.toList(), rhs.toList()) } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -1326,6 +1325,7 @@ struct PolylineOptionsDto: Hashable { var zIndex: Double? = nil var spans: [StyleSpanDto?] + // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> PolylineOptionsDto? { let points: [LatLngDto?]? = nilOrValue(pigeonVar_list[0]) @@ -1367,8 +1367,7 @@ struct PolylineOptionsDto: Hashable { ] } static func == (lhs: PolylineOptionsDto, rhs: PolylineOptionsDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) - } + return deepEqualsmessages(lhs.toList(), rhs.toList()) } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -1381,6 +1380,7 @@ struct CircleDto: Hashable { /// Options for circle. var options: CircleOptionsDto + // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> CircleDto? { let circleId = pigeonVar_list[0] as! String @@ -1398,8 +1398,7 @@ struct CircleDto: Hashable { ] } static func == (lhs: CircleDto, rhs: CircleDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) - } + return deepEqualsmessages(lhs.toList(), rhs.toList()) } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -1417,6 +1416,7 @@ struct CircleOptionsDto: Hashable { var visible: Bool var clickable: Bool + // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> CircleOptionsDto? { let position = pigeonVar_list[0] as! LatLngDto @@ -1455,8 +1455,7 @@ struct CircleOptionsDto: Hashable { ] } static func == (lhs: CircleOptionsDto, rhs: CircleOptionsDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) - } + return deepEqualsmessages(lhs.toList(), rhs.toList()) } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -1469,6 +1468,7 @@ struct MapPaddingDto: Hashable { var bottom: Int64 var right: Int64 + // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> MapPaddingDto? { let top = pigeonVar_list[0] as! Int64 @@ -1492,17 +1492,19 @@ struct MapPaddingDto: Hashable { ] } static func == (lhs: MapPaddingDto, rhs: MapPaddingDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) - } + return deepEqualsmessages(lhs.toList(), rhs.toList()) } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } } -/// Navigation header background colors. +/// Navigation header styling options. /// /// All color values are 32-bit ARGB integers (format: 0xAARRGGBB). -/// Any null value resets that specific color to the native SDK default. +/// All text size values are logical pixels. +/// Any null value resets that specific field to the native SDK default. +/// +/// Text size fields are currently Android only and are ignored on iOS. /// /// Generated class from Pigeon that represents data sent in messages. struct NavigationHeaderStylingOptionsDto: Hashable { @@ -1510,6 +1512,19 @@ struct NavigationHeaderStylingOptionsDto: Hashable { var secondaryDayModeBackgroundColor: Int64? = nil var primaryNightModeBackgroundColor: Int64? = nil var secondaryNightModeBackgroundColor: Int64? = nil + var largeManeuverIconColor: Int64? = nil + var smallManeuverIconColor: Int64? = nil + var nextStepTextColor: Int64? = nil + var nextStepTextSize: Double? = nil + var distanceValueTextColor: Int64? = nil + var distanceUnitsTextColor: Int64? = nil + var distanceValueTextSize: Double? = nil + var distanceUnitsTextSize: Double? = nil + var instructionsTextColor: Int64? = nil + var instructionsFirstRowTextSize: Double? = nil + var instructionsSecondRowTextSize: Double? = nil + var guidanceRecommendedLaneColor: Int64? = nil + // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> NavigationHeaderStylingOptionsDto? { @@ -1517,12 +1532,36 @@ struct NavigationHeaderStylingOptionsDto: Hashable { let secondaryDayModeBackgroundColor: Int64? = nilOrValue(pigeonVar_list[1]) let primaryNightModeBackgroundColor: Int64? = nilOrValue(pigeonVar_list[2]) let secondaryNightModeBackgroundColor: Int64? = nilOrValue(pigeonVar_list[3]) + let largeManeuverIconColor: Int64? = nilOrValue(pigeonVar_list[4]) + let smallManeuverIconColor: Int64? = nilOrValue(pigeonVar_list[5]) + let nextStepTextColor: Int64? = nilOrValue(pigeonVar_list[6]) + let nextStepTextSize: Double? = nilOrValue(pigeonVar_list[7]) + let distanceValueTextColor: Int64? = nilOrValue(pigeonVar_list[8]) + let distanceUnitsTextColor: Int64? = nilOrValue(pigeonVar_list[9]) + let distanceValueTextSize: Double? = nilOrValue(pigeonVar_list[10]) + let distanceUnitsTextSize: Double? = nilOrValue(pigeonVar_list[11]) + let instructionsTextColor: Int64? = nilOrValue(pigeonVar_list[12]) + let instructionsFirstRowTextSize: Double? = nilOrValue(pigeonVar_list[13]) + let instructionsSecondRowTextSize: Double? = nilOrValue(pigeonVar_list[14]) + let guidanceRecommendedLaneColor: Int64? = nilOrValue(pigeonVar_list[15]) return NavigationHeaderStylingOptionsDto( primaryDayModeBackgroundColor: primaryDayModeBackgroundColor, secondaryDayModeBackgroundColor: secondaryDayModeBackgroundColor, primaryNightModeBackgroundColor: primaryNightModeBackgroundColor, - secondaryNightModeBackgroundColor: secondaryNightModeBackgroundColor + secondaryNightModeBackgroundColor: secondaryNightModeBackgroundColor, + largeManeuverIconColor: largeManeuverIconColor, + smallManeuverIconColor: smallManeuverIconColor, + nextStepTextColor: nextStepTextColor, + nextStepTextSize: nextStepTextSize, + distanceValueTextColor: distanceValueTextColor, + distanceUnitsTextColor: distanceUnitsTextColor, + distanceValueTextSize: distanceValueTextSize, + distanceUnitsTextSize: distanceUnitsTextSize, + instructionsTextColor: instructionsTextColor, + instructionsFirstRowTextSize: instructionsFirstRowTextSize, + instructionsSecondRowTextSize: instructionsSecondRowTextSize, + guidanceRecommendedLaneColor: guidanceRecommendedLaneColor ) } func toList() -> [Any?] { @@ -1531,13 +1570,22 @@ struct NavigationHeaderStylingOptionsDto: Hashable { secondaryDayModeBackgroundColor, primaryNightModeBackgroundColor, secondaryNightModeBackgroundColor, + largeManeuverIconColor, + smallManeuverIconColor, + nextStepTextColor, + nextStepTextSize, + distanceValueTextColor, + distanceUnitsTextColor, + distanceValueTextSize, + distanceUnitsTextSize, + instructionsTextColor, + instructionsFirstRowTextSize, + instructionsSecondRowTextSize, + guidanceRecommendedLaneColor, ] } - static func == (lhs: NavigationHeaderStylingOptionsDto, rhs: NavigationHeaderStylingOptionsDto) - -> Bool - { - return deepEqualsmessages(lhs.toList(), rhs.toList()) - } + static func == (lhs: NavigationHeaderStylingOptionsDto, rhs: NavigationHeaderStylingOptionsDto) -> Bool { + return deepEqualsmessages(lhs.toList(), rhs.toList()) } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -1548,6 +1596,7 @@ struct RouteTokenOptionsDto: Hashable { var routeToken: String var travelMode: TravelModeDto? = nil + // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> RouteTokenOptionsDto? { let routeToken = pigeonVar_list[0] as! String @@ -1565,8 +1614,7 @@ struct RouteTokenOptionsDto: Hashable { ] } static func == (lhs: RouteTokenOptionsDto, rhs: RouteTokenOptionsDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) - } + return deepEqualsmessages(lhs.toList(), rhs.toList()) } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -1579,6 +1627,7 @@ struct DestinationsDto: Hashable { var routingOptions: RoutingOptionsDto? = nil var routeTokenOptions: RouteTokenOptionsDto? = nil + // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> DestinationsDto? { let waypoints = pigeonVar_list[0] as! [NavigationWaypointDto?] @@ -1602,8 +1651,7 @@ struct DestinationsDto: Hashable { ] } static func == (lhs: DestinationsDto, rhs: DestinationsDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) - } + return deepEqualsmessages(lhs.toList(), rhs.toList()) } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -1620,6 +1668,7 @@ struct RoutingOptionsDto: Hashable { var avoidHighways: Bool? = nil var locationTimeoutMs: Int64? = nil + // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> RoutingOptionsDto? { let alternateRoutesStrategy: AlternateRoutesStrategyDto? = nilOrValue(pigeonVar_list[0]) @@ -1655,8 +1704,7 @@ struct RoutingOptionsDto: Hashable { ] } static func == (lhs: RoutingOptionsDto, rhs: RoutingOptionsDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) - } + return deepEqualsmessages(lhs.toList(), rhs.toList()) } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -1670,6 +1718,7 @@ struct NavigationDisplayOptionsDto: Hashable { /// Deprecated: This option now defaults to true. var showTrafficLights: Bool? = nil + // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> NavigationDisplayOptionsDto? { let showDestinationMarkers: Bool? = nilOrValue(pigeonVar_list[0]) @@ -1690,8 +1739,7 @@ struct NavigationDisplayOptionsDto: Hashable { ] } static func == (lhs: NavigationDisplayOptionsDto, rhs: NavigationDisplayOptionsDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) - } + return deepEqualsmessages(lhs.toList(), rhs.toList()) } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -1705,6 +1753,7 @@ struct NavigationWaypointDto: Hashable { var preferSameSideOfRoad: Bool? = nil var preferredSegmentHeading: Int64? = nil + // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> NavigationWaypointDto? { let title = pigeonVar_list[0] as! String @@ -1731,8 +1780,7 @@ struct NavigationWaypointDto: Hashable { ] } static func == (lhs: NavigationWaypointDto, rhs: NavigationWaypointDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) - } + return deepEqualsmessages(lhs.toList(), rhs.toList()) } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -1743,6 +1791,7 @@ struct ContinueToNextDestinationResponseDto: Hashable { var waypoint: NavigationWaypointDto? = nil var routeStatus: RouteStatusDto? = nil + // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> ContinueToNextDestinationResponseDto? { let waypoint: NavigationWaypointDto? = nilOrValue(pigeonVar_list[0]) @@ -1759,11 +1808,8 @@ struct ContinueToNextDestinationResponseDto: Hashable { routeStatus, ] } - static func == ( - lhs: ContinueToNextDestinationResponseDto, rhs: ContinueToNextDestinationResponseDto - ) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) - } + static func == (lhs: ContinueToNextDestinationResponseDto, rhs: ContinueToNextDestinationResponseDto) -> Bool { + return deepEqualsmessages(lhs.toList(), rhs.toList()) } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -1775,6 +1821,7 @@ struct NavigationTimeAndDistanceDto: Hashable { var distance: Double var delaySeverity: TrafficDelaySeverityDto + // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> NavigationTimeAndDistanceDto? { let time = pigeonVar_list[0] as! Double @@ -1795,8 +1842,7 @@ struct NavigationTimeAndDistanceDto: Hashable { ] } static func == (lhs: NavigationTimeAndDistanceDto, rhs: NavigationTimeAndDistanceDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) - } + return deepEqualsmessages(lhs.toList(), rhs.toList()) } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -1808,6 +1854,7 @@ struct NavigationAudioGuidanceSettingsDto: Hashable { var isVibrationEnabled: Bool? = nil var guidanceType: AudioGuidanceTypeDto? = nil + // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> NavigationAudioGuidanceSettingsDto? { let isBluetoothAudioEnabled: Bool? = nilOrValue(pigeonVar_list[0]) @@ -1827,11 +1874,8 @@ struct NavigationAudioGuidanceSettingsDto: Hashable { guidanceType, ] } - static func == (lhs: NavigationAudioGuidanceSettingsDto, rhs: NavigationAudioGuidanceSettingsDto) - -> Bool - { - return deepEqualsmessages(lhs.toList(), rhs.toList()) - } + static func == (lhs: NavigationAudioGuidanceSettingsDto, rhs: NavigationAudioGuidanceSettingsDto) -> Bool { + return deepEqualsmessages(lhs.toList(), rhs.toList()) } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -1841,6 +1885,7 @@ struct NavigationAudioGuidanceSettingsDto: Hashable { struct SimulationOptionsDto: Hashable { var speedMultiplier: Double + // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> SimulationOptionsDto? { let speedMultiplier = pigeonVar_list[0] as! Double @@ -1855,8 +1900,7 @@ struct SimulationOptionsDto: Hashable { ] } static func == (lhs: SimulationOptionsDto, rhs: SimulationOptionsDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) - } + return deepEqualsmessages(lhs.toList(), rhs.toList()) } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -1867,6 +1911,7 @@ struct LatLngDto: Hashable { var latitude: Double var longitude: Double + // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> LatLngDto? { let latitude = pigeonVar_list[0] as! Double @@ -1884,8 +1929,7 @@ struct LatLngDto: Hashable { ] } static func == (lhs: LatLngDto, rhs: LatLngDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) - } + return deepEqualsmessages(lhs.toList(), rhs.toList()) } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -1896,6 +1940,7 @@ struct LatLngBoundsDto: Hashable { var southwest: LatLngDto var northeast: LatLngDto + // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> LatLngBoundsDto? { let southwest = pigeonVar_list[0] as! LatLngDto @@ -1913,8 +1958,7 @@ struct LatLngBoundsDto: Hashable { ] } static func == (lhs: LatLngBoundsDto, rhs: LatLngBoundsDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) - } + return deepEqualsmessages(lhs.toList(), rhs.toList()) } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -1925,6 +1969,7 @@ struct SpeedingUpdatedEventDto: Hashable { var percentageAboveLimit: Double var severity: SpeedAlertSeverityDto + // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> SpeedingUpdatedEventDto? { let percentageAboveLimit = pigeonVar_list[0] as! Double @@ -1942,8 +1987,7 @@ struct SpeedingUpdatedEventDto: Hashable { ] } static func == (lhs: SpeedingUpdatedEventDto, rhs: SpeedingUpdatedEventDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) - } + return deepEqualsmessages(lhs.toList(), rhs.toList()) } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -1954,6 +1998,7 @@ struct GpsAvailabilityChangeEventDto: Hashable { var isGpsLost: Bool var isGpsValidForNavigation: Bool + // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> GpsAvailabilityChangeEventDto? { let isGpsLost = pigeonVar_list[0] as! Bool @@ -1971,8 +2016,7 @@ struct GpsAvailabilityChangeEventDto: Hashable { ] } static func == (lhs: GpsAvailabilityChangeEventDto, rhs: GpsAvailabilityChangeEventDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) - } + return deepEqualsmessages(lhs.toList(), rhs.toList()) } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -1983,6 +2027,7 @@ struct SpeedAlertOptionsThresholdPercentageDto: Hashable { var percentage: Double var severity: SpeedAlertSeverityDto + // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> SpeedAlertOptionsThresholdPercentageDto? { let percentage = pigeonVar_list[0] as! Double @@ -1999,11 +2044,8 @@ struct SpeedAlertOptionsThresholdPercentageDto: Hashable { severity, ] } - static func == ( - lhs: SpeedAlertOptionsThresholdPercentageDto, rhs: SpeedAlertOptionsThresholdPercentageDto - ) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) - } + static func == (lhs: SpeedAlertOptionsThresholdPercentageDto, rhs: SpeedAlertOptionsThresholdPercentageDto) -> Bool { + return deepEqualsmessages(lhs.toList(), rhs.toList()) } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -2015,6 +2057,7 @@ struct SpeedAlertOptionsDto: Hashable { var minorSpeedAlertThresholdPercentage: Double var majorSpeedAlertThresholdPercentage: Double + // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> SpeedAlertOptionsDto? { let severityUpgradeDurationSeconds = pigeonVar_list[0] as! Double @@ -2035,8 +2078,7 @@ struct SpeedAlertOptionsDto: Hashable { ] } static func == (lhs: SpeedAlertOptionsDto, rhs: SpeedAlertOptionsDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) - } + return deepEqualsmessages(lhs.toList(), rhs.toList()) } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -2048,10 +2090,9 @@ struct RouteSegmentTrafficDataRoadStretchRenderingDataDto: Hashable { var lengthMeters: Int64 var offsetMeters: Int64 + // swift-format-ignore: AlwaysUseLowerCamelCase - static func fromList(_ pigeonVar_list: [Any?]) - -> RouteSegmentTrafficDataRoadStretchRenderingDataDto? - { + static func fromList(_ pigeonVar_list: [Any?]) -> RouteSegmentTrafficDataRoadStretchRenderingDataDto? { let style = pigeonVar_list[0] as! RouteSegmentTrafficDataRoadStretchRenderingDataStyleDto let lengthMeters = pigeonVar_list[1] as! Int64 let offsetMeters = pigeonVar_list[2] as! Int64 @@ -2069,12 +2110,8 @@ struct RouteSegmentTrafficDataRoadStretchRenderingDataDto: Hashable { offsetMeters, ] } - static func == ( - lhs: RouteSegmentTrafficDataRoadStretchRenderingDataDto, - rhs: RouteSegmentTrafficDataRoadStretchRenderingDataDto - ) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) - } + static func == (lhs: RouteSegmentTrafficDataRoadStretchRenderingDataDto, rhs: RouteSegmentTrafficDataRoadStretchRenderingDataDto) -> Bool { + return deepEqualsmessages(lhs.toList(), rhs.toList()) } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -2085,11 +2122,11 @@ struct RouteSegmentTrafficDataDto: Hashable { var status: RouteSegmentTrafficDataStatusDto var roadStretchRenderingDataList: [RouteSegmentTrafficDataRoadStretchRenderingDataDto?] + // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> RouteSegmentTrafficDataDto? { let status = pigeonVar_list[0] as! RouteSegmentTrafficDataStatusDto - let roadStretchRenderingDataList = - pigeonVar_list[1] as! [RouteSegmentTrafficDataRoadStretchRenderingDataDto?] + let roadStretchRenderingDataList = pigeonVar_list[1] as! [RouteSegmentTrafficDataRoadStretchRenderingDataDto?] return RouteSegmentTrafficDataDto( status: status, @@ -2103,8 +2140,7 @@ struct RouteSegmentTrafficDataDto: Hashable { ] } static func == (lhs: RouteSegmentTrafficDataDto, rhs: RouteSegmentTrafficDataDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) - } + return deepEqualsmessages(lhs.toList(), rhs.toList()) } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -2117,6 +2153,7 @@ struct RouteSegmentDto: Hashable { var latLngs: [LatLngDto?]? = nil var destinationWaypoint: NavigationWaypointDto? = nil + // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> RouteSegmentDto? { let trafficData: RouteSegmentTrafficDataDto? = nilOrValue(pigeonVar_list[0]) @@ -2140,8 +2177,7 @@ struct RouteSegmentDto: Hashable { ] } static func == (lhs: RouteSegmentDto, rhs: RouteSegmentDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) - } + return deepEqualsmessages(lhs.toList(), rhs.toList()) } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -2156,6 +2192,7 @@ struct LaneDirectionDto: Hashable { /// Whether this lane is recommended. var isRecommended: Bool + // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> LaneDirectionDto? { let laneShape = pigeonVar_list[0] as! LaneShapeDto @@ -2173,8 +2210,7 @@ struct LaneDirectionDto: Hashable { ] } static func == (lhs: LaneDirectionDto, rhs: LaneDirectionDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) - } + return deepEqualsmessages(lhs.toList(), rhs.toList()) } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -2187,6 +2223,7 @@ struct LaneDto: Hashable { /// List of possible directions a driver can follow when using this lane at the end of the respective route step var laneDirections: [LaneDirectionDto?] + // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> LaneDto? { let laneDirections = pigeonVar_list[0] as! [LaneDirectionDto?] @@ -2201,8 +2238,7 @@ struct LaneDto: Hashable { ] } static func == (lhs: LaneDto, rhs: LaneDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) - } + return deepEqualsmessages(lhs.toList(), rhs.toList()) } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -2242,6 +2278,7 @@ struct StepInfoDto: Hashable { /// This image is generated only if step image generation option includes lane images. var lanesImage: ImageDescriptorDto? = nil + // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> StepInfoDto? { let distanceFromPrevStepMeters: Int64? = nilOrValue(pigeonVar_list[0]) @@ -2292,8 +2329,7 @@ struct StepInfoDto: Hashable { ] } static func == (lhs: StepInfoDto, rhs: StepInfoDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) - } + return deepEqualsmessages(lhs.toList(), rhs.toList()) } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -2333,6 +2369,7 @@ struct NavInfoDto: Hashable { /// Android only. var timeToNextDestinationSeconds: Int64? = nil + // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> NavInfoDto? { let navState = pigeonVar_list[0] as! NavStateDto @@ -2374,8 +2411,7 @@ struct NavInfoDto: Hashable { ] } static func == (lhs: NavInfoDto, rhs: NavInfoDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) - } + return deepEqualsmessages(lhs.toList(), rhs.toList()) } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -2399,6 +2435,7 @@ struct TermsAndConditionsUIParamsDto: Hashable { /// Text color for the cancel button. var cancelButtonTextColor: Int64? = nil + // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> TermsAndConditionsUIParamsDto? { let backgroundColor: Int64? = nilOrValue(pigeonVar_list[0]) @@ -2425,8 +2462,7 @@ struct TermsAndConditionsUIParamsDto: Hashable { ] } static func == (lhs: TermsAndConditionsUIParamsDto, rhs: TermsAndConditionsUIParamsDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) - } + return deepEqualsmessages(lhs.toList(), rhs.toList()) } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -2443,6 +2479,7 @@ struct StepImageGenerationOptionsDto: Hashable { /// Defaults to false if not specified. var generateLaneImages: Bool? = nil + // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> StepImageGenerationOptionsDto? { let generateManeuverImages: Bool? = nilOrValue(pigeonVar_list[0]) @@ -2460,8 +2497,7 @@ struct StepImageGenerationOptionsDto: Hashable { ] } static func == (lhs: StepImageGenerationOptionsDto, rhs: StepImageGenerationOptionsDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) - } + return deepEqualsmessages(lhs.toList(), rhs.toList()) } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -2707,8 +2743,7 @@ private class MessagesPigeonCodecReader: FlutterStandardReader { case 194: return SpeedAlertOptionsDto.fromList(self.readValue() as! [Any?]) case 195: - return RouteSegmentTrafficDataRoadStretchRenderingDataDto.fromList( - self.readValue() as! [Any?]) + return RouteSegmentTrafficDataRoadStretchRenderingDataDto.fromList(self.readValue() as! [Any?]) case 196: return RouteSegmentTrafficDataDto.fromList(self.readValue() as! [Any?]) case 197: @@ -2978,6 +3013,7 @@ class MessagesPigeonCodec: FlutterStandardMessageCodec, @unchecked Sendable { static let shared = MessagesPigeonCodec(readerWriter: MessagesPigeonCodecReaderWriter()) } + /// Dummy interface to force generation of the platform view creation params. /// Pigeon only generates messages if the messages are used in API. /// [ViewCreationOptionsDto] is encoded and decoded directly to generate a @@ -2994,14 +3030,9 @@ protocol ViewCreationApi { class ViewCreationApiSetup { static var codec: FlutterStandardMessageCodec { MessagesPigeonCodec.shared } /// Sets up an instance of `ViewCreationApi` to handle messages through the `binaryMessenger`. - static func setUp( - binaryMessenger: FlutterBinaryMessenger, api: ViewCreationApi?, - messageChannelSuffix: String = "" - ) { + static func setUp(binaryMessenger: FlutterBinaryMessenger, api: ViewCreationApi?, messageChannelSuffix: String = "") { let channelSuffix = messageChannelSuffix.count > 0 ? ".\(messageChannelSuffix)" : "" - let createChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.ViewCreationApi.create\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let createChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.ViewCreationApi.create\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { createChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3032,8 +3063,7 @@ protocol MapViewApi { func isNavigationHeaderEnabled(viewId: Int64) throws -> Bool func setNavigationHeaderEnabled(viewId: Int64, enabled: Bool) throws func getNavigationHeaderStylingOptions(viewId: Int64) throws -> NavigationHeaderStylingOptionsDto - func setNavigationHeaderStylingOptions( - viewId: Int64, stylingOptions: NavigationHeaderStylingOptionsDto) throws + func setNavigationHeaderStylingOptions(viewId: Int64, stylingOptions: NavigationHeaderStylingOptionsDto) throws func isNavigationFooterEnabled(viewId: Int64) throws -> Bool func setNavigationFooterEnabled(viewId: Int64, enabled: Bool) throws func isRecenterButtonEnabled(viewId: Int64) throws -> Bool @@ -3088,27 +3118,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 @@ -3156,13 +3172,9 @@ protocol MapViewApi { class MapViewApiSetup { static var codec: FlutterStandardMessageCodec { MessagesPigeonCodec.shared } /// Sets up an instance of `MapViewApi` to handle messages through the `binaryMessenger`. - static func setUp( - binaryMessenger: FlutterBinaryMessenger, api: MapViewApi?, messageChannelSuffix: String = "" - ) { + static func setUp(binaryMessenger: FlutterBinaryMessenger, api: MapViewApi?, messageChannelSuffix: String = "") { let channelSuffix = messageChannelSuffix.count > 0 ? ".\(messageChannelSuffix)" : "" - let awaitMapReadyChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.awaitMapReady\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let awaitMapReadyChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.awaitMapReady\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { awaitMapReadyChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3179,10 +3191,7 @@ class MapViewApiSetup { } else { awaitMapReadyChannel.setMessageHandler(nil) } - let isMyLocationEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMyLocationEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let isMyLocationEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMyLocationEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { isMyLocationEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3197,10 +3206,7 @@ class MapViewApiSetup { } else { isMyLocationEnabledChannel.setMessageHandler(nil) } - let setMyLocationEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMyLocationEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let setMyLocationEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMyLocationEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { setMyLocationEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3216,9 +3222,7 @@ class MapViewApiSetup { } else { setMyLocationEnabledChannel.setMessageHandler(nil) } - let getMyLocationChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMyLocation\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let getMyLocationChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMyLocation\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { getMyLocationChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3233,9 +3237,7 @@ class MapViewApiSetup { } else { getMyLocationChannel.setMessageHandler(nil) } - let getMapTypeChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMapType\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let getMapTypeChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMapType\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { getMapTypeChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3250,9 +3252,7 @@ class MapViewApiSetup { } else { getMapTypeChannel.setMessageHandler(nil) } - let setMapTypeChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapType\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let setMapTypeChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapType\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { setMapTypeChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3268,9 +3268,7 @@ class MapViewApiSetup { } else { setMapTypeChannel.setMessageHandler(nil) } - let setMapStyleChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapStyle\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let setMapStyleChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapStyle\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { setMapStyleChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3286,10 +3284,7 @@ class MapViewApiSetup { } else { setMapStyleChannel.setMessageHandler(nil) } - let isNavigationTripProgressBarEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationTripProgressBarEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let isNavigationTripProgressBarEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationTripProgressBarEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { isNavigationTripProgressBarEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3304,10 +3299,7 @@ class MapViewApiSetup { } else { isNavigationTripProgressBarEnabledChannel.setMessageHandler(nil) } - let setNavigationTripProgressBarEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationTripProgressBarEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let setNavigationTripProgressBarEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationTripProgressBarEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { setNavigationTripProgressBarEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3323,10 +3315,7 @@ class MapViewApiSetup { } else { setNavigationTripProgressBarEnabledChannel.setMessageHandler(nil) } - let isNavigationHeaderEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationHeaderEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let isNavigationHeaderEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationHeaderEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { isNavigationHeaderEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3341,10 +3330,7 @@ class MapViewApiSetup { } else { isNavigationHeaderEnabledChannel.setMessageHandler(nil) } - let setNavigationHeaderEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationHeaderEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let setNavigationHeaderEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationHeaderEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { setNavigationHeaderEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3360,10 +3346,7 @@ class MapViewApiSetup { } else { setNavigationHeaderEnabledChannel.setMessageHandler(nil) } - let getNavigationHeaderStylingOptionsChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getNavigationHeaderStylingOptions\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let getNavigationHeaderStylingOptionsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getNavigationHeaderStylingOptions\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { getNavigationHeaderStylingOptionsChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3378,18 +3361,14 @@ class MapViewApiSetup { } else { getNavigationHeaderStylingOptionsChannel.setMessageHandler(nil) } - let setNavigationHeaderStylingOptionsChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationHeaderStylingOptions\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let setNavigationHeaderStylingOptionsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationHeaderStylingOptions\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { setNavigationHeaderStylingOptionsChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] as! Int64 let stylingOptionsArg = args[1] as! NavigationHeaderStylingOptionsDto do { - try api.setNavigationHeaderStylingOptions( - viewId: viewIdArg, stylingOptions: stylingOptionsArg) + try api.setNavigationHeaderStylingOptions(viewId: viewIdArg, stylingOptions: stylingOptionsArg) reply(wrapResult(nil)) } catch { reply(wrapError(error)) @@ -3398,10 +3377,7 @@ class MapViewApiSetup { } else { setNavigationHeaderStylingOptionsChannel.setMessageHandler(nil) } - let isNavigationFooterEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationFooterEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let isNavigationFooterEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationFooterEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { isNavigationFooterEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3416,10 +3392,7 @@ class MapViewApiSetup { } else { isNavigationFooterEnabledChannel.setMessageHandler(nil) } - let setNavigationFooterEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationFooterEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let setNavigationFooterEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationFooterEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { setNavigationFooterEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3435,10 +3408,7 @@ class MapViewApiSetup { } else { setNavigationFooterEnabledChannel.setMessageHandler(nil) } - let isRecenterButtonEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isRecenterButtonEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let isRecenterButtonEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isRecenterButtonEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { isRecenterButtonEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3453,10 +3423,7 @@ class MapViewApiSetup { } else { isRecenterButtonEnabledChannel.setMessageHandler(nil) } - let setRecenterButtonEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setRecenterButtonEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let setRecenterButtonEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setRecenterButtonEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { setRecenterButtonEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3472,10 +3439,7 @@ class MapViewApiSetup { } else { setRecenterButtonEnabledChannel.setMessageHandler(nil) } - let isSpeedLimitIconEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isSpeedLimitIconEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let isSpeedLimitIconEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isSpeedLimitIconEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { isSpeedLimitIconEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3490,10 +3454,7 @@ class MapViewApiSetup { } else { isSpeedLimitIconEnabledChannel.setMessageHandler(nil) } - let setSpeedLimitIconEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setSpeedLimitIconEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let setSpeedLimitIconEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setSpeedLimitIconEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { setSpeedLimitIconEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3509,10 +3470,7 @@ class MapViewApiSetup { } else { setSpeedLimitIconEnabledChannel.setMessageHandler(nil) } - let isSpeedometerEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isSpeedometerEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let isSpeedometerEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isSpeedometerEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { isSpeedometerEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3527,10 +3485,7 @@ class MapViewApiSetup { } else { isSpeedometerEnabledChannel.setMessageHandler(nil) } - let setSpeedometerEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setSpeedometerEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let setSpeedometerEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setSpeedometerEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { setSpeedometerEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3546,10 +3501,7 @@ class MapViewApiSetup { } else { setSpeedometerEnabledChannel.setMessageHandler(nil) } - let isNavigationUIEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationUIEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let isNavigationUIEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationUIEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { isNavigationUIEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3564,10 +3516,7 @@ class MapViewApiSetup { } else { isNavigationUIEnabledChannel.setMessageHandler(nil) } - let setNavigationUIEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationUIEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let setNavigationUIEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationUIEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { setNavigationUIEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3583,10 +3532,7 @@ class MapViewApiSetup { } else { setNavigationUIEnabledChannel.setMessageHandler(nil) } - let isMyLocationButtonEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMyLocationButtonEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let isMyLocationButtonEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMyLocationButtonEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { isMyLocationButtonEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3601,10 +3547,7 @@ class MapViewApiSetup { } else { isMyLocationButtonEnabledChannel.setMessageHandler(nil) } - let setMyLocationButtonEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMyLocationButtonEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let setMyLocationButtonEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMyLocationButtonEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { setMyLocationButtonEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3620,10 +3563,7 @@ class MapViewApiSetup { } else { setMyLocationButtonEnabledChannel.setMessageHandler(nil) } - let isConsumeMyLocationButtonClickEventsEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isConsumeMyLocationButtonClickEventsEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let isConsumeMyLocationButtonClickEventsEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isConsumeMyLocationButtonClickEventsEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { isConsumeMyLocationButtonClickEventsEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3638,18 +3578,14 @@ class MapViewApiSetup { } else { isConsumeMyLocationButtonClickEventsEnabledChannel.setMessageHandler(nil) } - let setConsumeMyLocationButtonClickEventsEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setConsumeMyLocationButtonClickEventsEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let setConsumeMyLocationButtonClickEventsEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setConsumeMyLocationButtonClickEventsEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { setConsumeMyLocationButtonClickEventsEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] as! Int64 let enabledArg = args[1] as! Bool do { - try api.setConsumeMyLocationButtonClickEventsEnabled( - viewId: viewIdArg, enabled: enabledArg) + try api.setConsumeMyLocationButtonClickEventsEnabled(viewId: viewIdArg, enabled: enabledArg) reply(wrapResult(nil)) } catch { reply(wrapError(error)) @@ -3658,10 +3594,7 @@ class MapViewApiSetup { } else { setConsumeMyLocationButtonClickEventsEnabledChannel.setMessageHandler(nil) } - let isZoomGesturesEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isZoomGesturesEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let isZoomGesturesEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isZoomGesturesEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { isZoomGesturesEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3676,10 +3609,7 @@ class MapViewApiSetup { } else { isZoomGesturesEnabledChannel.setMessageHandler(nil) } - let setZoomGesturesEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setZoomGesturesEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let setZoomGesturesEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setZoomGesturesEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { setZoomGesturesEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3695,10 +3625,7 @@ class MapViewApiSetup { } else { setZoomGesturesEnabledChannel.setMessageHandler(nil) } - let isZoomControlsEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isZoomControlsEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let isZoomControlsEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isZoomControlsEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { isZoomControlsEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3713,10 +3640,7 @@ class MapViewApiSetup { } else { isZoomControlsEnabledChannel.setMessageHandler(nil) } - let setZoomControlsEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setZoomControlsEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let setZoomControlsEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setZoomControlsEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { setZoomControlsEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3732,10 +3656,7 @@ class MapViewApiSetup { } else { setZoomControlsEnabledChannel.setMessageHandler(nil) } - let isCompassEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isCompassEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let isCompassEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isCompassEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { isCompassEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3750,10 +3671,7 @@ class MapViewApiSetup { } else { isCompassEnabledChannel.setMessageHandler(nil) } - let setCompassEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setCompassEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let setCompassEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setCompassEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { setCompassEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3769,10 +3687,7 @@ class MapViewApiSetup { } else { setCompassEnabledChannel.setMessageHandler(nil) } - let isRotateGesturesEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isRotateGesturesEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let isRotateGesturesEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isRotateGesturesEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { isRotateGesturesEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3787,10 +3702,7 @@ class MapViewApiSetup { } else { isRotateGesturesEnabledChannel.setMessageHandler(nil) } - let setRotateGesturesEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setRotateGesturesEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let setRotateGesturesEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setRotateGesturesEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { setRotateGesturesEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3806,10 +3718,7 @@ class MapViewApiSetup { } else { setRotateGesturesEnabledChannel.setMessageHandler(nil) } - let isScrollGesturesEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isScrollGesturesEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let isScrollGesturesEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isScrollGesturesEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { isScrollGesturesEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3824,10 +3733,7 @@ class MapViewApiSetup { } else { isScrollGesturesEnabledChannel.setMessageHandler(nil) } - let setScrollGesturesEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setScrollGesturesEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let setScrollGesturesEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setScrollGesturesEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { setScrollGesturesEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3843,10 +3749,7 @@ class MapViewApiSetup { } else { setScrollGesturesEnabledChannel.setMessageHandler(nil) } - let isScrollGesturesEnabledDuringRotateOrZoomChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isScrollGesturesEnabledDuringRotateOrZoom\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let isScrollGesturesEnabledDuringRotateOrZoomChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isScrollGesturesEnabledDuringRotateOrZoom\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { isScrollGesturesEnabledDuringRotateOrZoomChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3861,10 +3764,7 @@ class MapViewApiSetup { } else { isScrollGesturesEnabledDuringRotateOrZoomChannel.setMessageHandler(nil) } - let setScrollGesturesDuringRotateOrZoomEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setScrollGesturesDuringRotateOrZoomEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let setScrollGesturesDuringRotateOrZoomEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setScrollGesturesDuringRotateOrZoomEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { setScrollGesturesDuringRotateOrZoomEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3880,10 +3780,7 @@ class MapViewApiSetup { } else { setScrollGesturesDuringRotateOrZoomEnabledChannel.setMessageHandler(nil) } - let isTiltGesturesEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTiltGesturesEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let isTiltGesturesEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTiltGesturesEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { isTiltGesturesEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3898,10 +3795,7 @@ class MapViewApiSetup { } else { isTiltGesturesEnabledChannel.setMessageHandler(nil) } - let setTiltGesturesEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTiltGesturesEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let setTiltGesturesEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTiltGesturesEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { setTiltGesturesEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3917,10 +3811,7 @@ class MapViewApiSetup { } else { setTiltGesturesEnabledChannel.setMessageHandler(nil) } - let isMapToolbarEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMapToolbarEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let isMapToolbarEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMapToolbarEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { isMapToolbarEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3935,10 +3826,7 @@ class MapViewApiSetup { } else { isMapToolbarEnabledChannel.setMessageHandler(nil) } - let setMapToolbarEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapToolbarEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let setMapToolbarEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapToolbarEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { setMapToolbarEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3954,10 +3842,7 @@ class MapViewApiSetup { } else { setMapToolbarEnabledChannel.setMessageHandler(nil) } - let isTrafficEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let isTrafficEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { isTrafficEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3972,10 +3857,7 @@ class MapViewApiSetup { } else { isTrafficEnabledChannel.setMessageHandler(nil) } - let setTrafficEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let setTrafficEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { setTrafficEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3991,10 +3873,7 @@ class MapViewApiSetup { } else { setTrafficEnabledChannel.setMessageHandler(nil) } - let isTrafficIncidentCardsEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficIncidentCardsEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let isTrafficIncidentCardsEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficIncidentCardsEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { isTrafficIncidentCardsEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4009,10 +3888,7 @@ class MapViewApiSetup { } else { isTrafficIncidentCardsEnabledChannel.setMessageHandler(nil) } - let setTrafficIncidentCardsEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficIncidentCardsEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let setTrafficIncidentCardsEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficIncidentCardsEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { setTrafficIncidentCardsEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4028,10 +3904,7 @@ class MapViewApiSetup { } else { setTrafficIncidentCardsEnabledChannel.setMessageHandler(nil) } - let isTrafficPromptsEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficPromptsEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let isTrafficPromptsEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficPromptsEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { isTrafficPromptsEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4046,10 +3919,7 @@ class MapViewApiSetup { } else { isTrafficPromptsEnabledChannel.setMessageHandler(nil) } - let setTrafficPromptsEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficPromptsEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let setTrafficPromptsEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficPromptsEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { setTrafficPromptsEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4065,10 +3935,7 @@ class MapViewApiSetup { } else { setTrafficPromptsEnabledChannel.setMessageHandler(nil) } - let isReportIncidentButtonEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isReportIncidentButtonEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let isReportIncidentButtonEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isReportIncidentButtonEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { isReportIncidentButtonEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4083,10 +3950,7 @@ class MapViewApiSetup { } else { isReportIncidentButtonEnabledChannel.setMessageHandler(nil) } - let setReportIncidentButtonEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setReportIncidentButtonEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let setReportIncidentButtonEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setReportIncidentButtonEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { setReportIncidentButtonEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4102,10 +3966,7 @@ class MapViewApiSetup { } else { setReportIncidentButtonEnabledChannel.setMessageHandler(nil) } - let isIncidentReportingAvailableChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isIncidentReportingAvailable\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let isIncidentReportingAvailableChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isIncidentReportingAvailable\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { isIncidentReportingAvailableChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4120,10 +3981,7 @@ class MapViewApiSetup { } else { isIncidentReportingAvailableChannel.setMessageHandler(nil) } - let showReportIncidentsPanelChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.showReportIncidentsPanel\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let showReportIncidentsPanelChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.showReportIncidentsPanel\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { showReportIncidentsPanelChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4138,10 +3996,7 @@ class MapViewApiSetup { } else { showReportIncidentsPanelChannel.setMessageHandler(nil) } - let isBuildingsEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isBuildingsEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let isBuildingsEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isBuildingsEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { isBuildingsEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4156,10 +4011,7 @@ class MapViewApiSetup { } else { isBuildingsEnabledChannel.setMessageHandler(nil) } - let setBuildingsEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setBuildingsEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let setBuildingsEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setBuildingsEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { setBuildingsEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4175,10 +4027,7 @@ class MapViewApiSetup { } else { setBuildingsEnabledChannel.setMessageHandler(nil) } - let isIndoorEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isIndoorEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let isIndoorEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isIndoorEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { isIndoorEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4193,10 +4042,7 @@ class MapViewApiSetup { } else { isIndoorEnabledChannel.setMessageHandler(nil) } - let setIndoorEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setIndoorEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let setIndoorEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setIndoorEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { setIndoorEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4212,10 +4058,7 @@ class MapViewApiSetup { } else { setIndoorEnabledChannel.setMessageHandler(nil) } - let isIndoorLevelPickerEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isIndoorLevelPickerEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let isIndoorLevelPickerEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isIndoorLevelPickerEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { isIndoorLevelPickerEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4230,10 +4073,7 @@ class MapViewApiSetup { } else { isIndoorLevelPickerEnabledChannel.setMessageHandler(nil) } - let setIndoorLevelPickerEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setIndoorLevelPickerEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let setIndoorLevelPickerEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setIndoorLevelPickerEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { setIndoorLevelPickerEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4249,10 +4089,7 @@ class MapViewApiSetup { } else { setIndoorLevelPickerEnabledChannel.setMessageHandler(nil) } - let getFocusedIndoorBuildingChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getFocusedIndoorBuilding\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let getFocusedIndoorBuildingChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getFocusedIndoorBuilding\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { getFocusedIndoorBuildingChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4270,10 +4107,7 @@ class MapViewApiSetup { /// Activates the indoor level at [levelIndex] within the currently focused /// indoor building. Throws if no building is focused or the index is out of /// range. - let activateIndoorLevelChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.activateIndoorLevel\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let activateIndoorLevelChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.activateIndoorLevel\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { activateIndoorLevelChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4289,10 +4123,7 @@ class MapViewApiSetup { } else { activateIndoorLevelChannel.setMessageHandler(nil) } - let getCameraPositionChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getCameraPosition\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let getCameraPositionChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getCameraPosition\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { getCameraPositionChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4307,10 +4138,7 @@ class MapViewApiSetup { } else { getCameraPositionChannel.setMessageHandler(nil) } - let getVisibleRegionChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getVisibleRegion\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let getVisibleRegionChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getVisibleRegion\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { getVisibleRegionChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4325,10 +4153,7 @@ class MapViewApiSetup { } else { getVisibleRegionChannel.setMessageHandler(nil) } - let followMyLocationChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.followMyLocation\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let followMyLocationChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.followMyLocation\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { followMyLocationChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4336,8 +4161,7 @@ class MapViewApiSetup { let perspectiveArg = args[1] as! CameraPerspectiveDto let zoomLevelArg: Double? = nilOrValue(args[2]) do { - try api.followMyLocation( - viewId: viewIdArg, perspective: perspectiveArg, zoomLevel: zoomLevelArg) + try api.followMyLocation(viewId: viewIdArg, perspective: perspectiveArg, zoomLevel: zoomLevelArg) reply(wrapResult(nil)) } catch { reply(wrapError(error)) @@ -4346,19 +4170,14 @@ class MapViewApiSetup { } else { followMyLocationChannel.setMessageHandler(nil) } - let animateCameraToCameraPositionChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToCameraPosition\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let animateCameraToCameraPositionChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToCameraPosition\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { animateCameraToCameraPositionChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] as! Int64 let cameraPositionArg = args[1] as! CameraPositionDto let durationArg: Int64? = nilOrValue(args[2]) - api.animateCameraToCameraPosition( - viewId: viewIdArg, cameraPosition: cameraPositionArg, duration: durationArg - ) { result in + api.animateCameraToCameraPosition(viewId: viewIdArg, cameraPosition: cameraPositionArg, duration: durationArg) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -4370,18 +4189,14 @@ class MapViewApiSetup { } else { animateCameraToCameraPositionChannel.setMessageHandler(nil) } - let animateCameraToLatLngChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLng\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let animateCameraToLatLngChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLng\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { animateCameraToLatLngChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] as! Int64 let pointArg = args[1] as! LatLngDto let durationArg: Int64? = nilOrValue(args[2]) - api.animateCameraToLatLng(viewId: viewIdArg, point: pointArg, duration: durationArg) { - result in + api.animateCameraToLatLng(viewId: viewIdArg, point: pointArg, duration: durationArg) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -4393,10 +4208,7 @@ class MapViewApiSetup { } else { animateCameraToLatLngChannel.setMessageHandler(nil) } - let animateCameraToLatLngBoundsChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLngBounds\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let animateCameraToLatLngBoundsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLngBounds\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { animateCameraToLatLngBoundsChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4404,9 +4216,7 @@ class MapViewApiSetup { let boundsArg = args[1] as! LatLngBoundsDto let paddingArg = args[2] as! Double let durationArg: Int64? = nilOrValue(args[3]) - api.animateCameraToLatLngBounds( - viewId: viewIdArg, bounds: boundsArg, padding: paddingArg, duration: durationArg - ) { result in + api.animateCameraToLatLngBounds(viewId: viewIdArg, bounds: boundsArg, padding: paddingArg, duration: durationArg) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -4418,10 +4228,7 @@ class MapViewApiSetup { } else { animateCameraToLatLngBoundsChannel.setMessageHandler(nil) } - let animateCameraToLatLngZoomChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLngZoom\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let animateCameraToLatLngZoomChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLngZoom\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { animateCameraToLatLngZoomChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4429,9 +4236,7 @@ class MapViewApiSetup { let pointArg = args[1] as! LatLngDto let zoomArg = args[2] as! Double let durationArg: Int64? = nilOrValue(args[3]) - api.animateCameraToLatLngZoom( - viewId: viewIdArg, point: pointArg, zoom: zoomArg, duration: durationArg - ) { result in + api.animateCameraToLatLngZoom(viewId: viewIdArg, point: pointArg, zoom: zoomArg, duration: durationArg) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -4443,10 +4248,7 @@ class MapViewApiSetup { } else { animateCameraToLatLngZoomChannel.setMessageHandler(nil) } - let animateCameraByScrollChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraByScroll\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let animateCameraByScrollChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraByScroll\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { animateCameraByScrollChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4454,10 +4256,7 @@ class MapViewApiSetup { let scrollByDxArg = args[1] as! Double let scrollByDyArg = args[2] as! Double let durationArg: Int64? = nilOrValue(args[3]) - api.animateCameraByScroll( - viewId: viewIdArg, scrollByDx: scrollByDxArg, scrollByDy: scrollByDyArg, - duration: durationArg - ) { result in + api.animateCameraByScroll(viewId: viewIdArg, scrollByDx: scrollByDxArg, scrollByDy: scrollByDyArg, duration: durationArg) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -4469,10 +4268,7 @@ class MapViewApiSetup { } else { animateCameraByScrollChannel.setMessageHandler(nil) } - let animateCameraByZoomChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraByZoom\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let animateCameraByZoomChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraByZoom\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { animateCameraByZoomChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4481,10 +4277,7 @@ class MapViewApiSetup { let focusDxArg: Double? = nilOrValue(args[2]) let focusDyArg: Double? = nilOrValue(args[3]) let durationArg: Int64? = nilOrValue(args[4]) - api.animateCameraByZoom( - viewId: viewIdArg, zoomBy: zoomByArg, focusDx: focusDxArg, focusDy: focusDyArg, - duration: durationArg - ) { result in + api.animateCameraByZoom(viewId: viewIdArg, zoomBy: zoomByArg, focusDx: focusDxArg, focusDy: focusDyArg, duration: durationArg) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -4496,10 +4289,7 @@ class MapViewApiSetup { } else { animateCameraByZoomChannel.setMessageHandler(nil) } - let animateCameraToZoomChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToZoom\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let animateCameraToZoomChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToZoom\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { animateCameraToZoomChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4518,10 +4308,7 @@ class MapViewApiSetup { } else { animateCameraToZoomChannel.setMessageHandler(nil) } - let moveCameraToCameraPositionChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToCameraPosition\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let moveCameraToCameraPositionChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToCameraPosition\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { moveCameraToCameraPositionChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4537,10 +4324,7 @@ class MapViewApiSetup { } else { moveCameraToCameraPositionChannel.setMessageHandler(nil) } - let moveCameraToLatLngChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLng\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let moveCameraToLatLngChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLng\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { moveCameraToLatLngChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4556,10 +4340,7 @@ class MapViewApiSetup { } else { moveCameraToLatLngChannel.setMessageHandler(nil) } - let moveCameraToLatLngBoundsChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLngBounds\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let moveCameraToLatLngBoundsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLngBounds\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { moveCameraToLatLngBoundsChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4567,8 +4348,7 @@ class MapViewApiSetup { let boundsArg = args[1] as! LatLngBoundsDto let paddingArg = args[2] as! Double do { - try api.moveCameraToLatLngBounds( - viewId: viewIdArg, bounds: boundsArg, padding: paddingArg) + try api.moveCameraToLatLngBounds(viewId: viewIdArg, bounds: boundsArg, padding: paddingArg) reply(wrapResult(nil)) } catch { reply(wrapError(error)) @@ -4577,10 +4357,7 @@ class MapViewApiSetup { } else { moveCameraToLatLngBoundsChannel.setMessageHandler(nil) } - let moveCameraToLatLngZoomChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLngZoom\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let moveCameraToLatLngZoomChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLngZoom\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { moveCameraToLatLngZoomChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4597,10 +4374,7 @@ class MapViewApiSetup { } else { moveCameraToLatLngZoomChannel.setMessageHandler(nil) } - let moveCameraByScrollChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraByScroll\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let moveCameraByScrollChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraByScroll\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { moveCameraByScrollChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4608,8 +4382,7 @@ class MapViewApiSetup { let scrollByDxArg = args[1] as! Double let scrollByDyArg = args[2] as! Double do { - try api.moveCameraByScroll( - viewId: viewIdArg, scrollByDx: scrollByDxArg, scrollByDy: scrollByDyArg) + try api.moveCameraByScroll(viewId: viewIdArg, scrollByDx: scrollByDxArg, scrollByDy: scrollByDyArg) reply(wrapResult(nil)) } catch { reply(wrapError(error)) @@ -4618,10 +4391,7 @@ class MapViewApiSetup { } else { moveCameraByScrollChannel.setMessageHandler(nil) } - let moveCameraByZoomChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraByZoom\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let moveCameraByZoomChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraByZoom\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { moveCameraByZoomChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4630,8 +4400,7 @@ class MapViewApiSetup { let focusDxArg: Double? = nilOrValue(args[2]) let focusDyArg: Double? = nilOrValue(args[3]) do { - try api.moveCameraByZoom( - viewId: viewIdArg, zoomBy: zoomByArg, focusDx: focusDxArg, focusDy: focusDyArg) + try api.moveCameraByZoom(viewId: viewIdArg, zoomBy: zoomByArg, focusDx: focusDxArg, focusDy: focusDyArg) reply(wrapResult(nil)) } catch { reply(wrapError(error)) @@ -4640,10 +4409,7 @@ class MapViewApiSetup { } else { moveCameraByZoomChannel.setMessageHandler(nil) } - let moveCameraToZoomChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToZoom\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let moveCameraToZoomChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToZoom\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { moveCameraToZoomChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4659,10 +4425,7 @@ class MapViewApiSetup { } else { moveCameraToZoomChannel.setMessageHandler(nil) } - let showRouteOverviewChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.showRouteOverview\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let showRouteOverviewChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.showRouteOverview\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { showRouteOverviewChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4677,10 +4440,7 @@ class MapViewApiSetup { } else { showRouteOverviewChannel.setMessageHandler(nil) } - let getMinZoomPreferenceChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMinZoomPreference\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let getMinZoomPreferenceChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMinZoomPreference\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { getMinZoomPreferenceChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4695,10 +4455,7 @@ class MapViewApiSetup { } else { getMinZoomPreferenceChannel.setMessageHandler(nil) } - let getMaxZoomPreferenceChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMaxZoomPreference\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let getMaxZoomPreferenceChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMaxZoomPreference\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { getMaxZoomPreferenceChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4713,10 +4470,7 @@ class MapViewApiSetup { } else { getMaxZoomPreferenceChannel.setMessageHandler(nil) } - let resetMinMaxZoomPreferenceChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.resetMinMaxZoomPreference\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let resetMinMaxZoomPreferenceChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.resetMinMaxZoomPreference\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { resetMinMaxZoomPreferenceChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4731,10 +4485,7 @@ class MapViewApiSetup { } else { resetMinMaxZoomPreferenceChannel.setMessageHandler(nil) } - let setMinZoomPreferenceChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMinZoomPreference\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let setMinZoomPreferenceChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMinZoomPreference\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { setMinZoomPreferenceChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4750,10 +4501,7 @@ class MapViewApiSetup { } else { setMinZoomPreferenceChannel.setMessageHandler(nil) } - let setMaxZoomPreferenceChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMaxZoomPreference\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let setMaxZoomPreferenceChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMaxZoomPreference\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { setMaxZoomPreferenceChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4769,9 +4517,7 @@ class MapViewApiSetup { } else { setMaxZoomPreferenceChannel.setMessageHandler(nil) } - let getMarkersChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMarkers\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let getMarkersChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMarkers\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { getMarkersChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4786,9 +4532,7 @@ class MapViewApiSetup { } else { getMarkersChannel.setMessageHandler(nil) } - let addMarkersChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addMarkers\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let addMarkersChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addMarkers\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { addMarkersChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4804,9 +4548,7 @@ class MapViewApiSetup { } else { addMarkersChannel.setMessageHandler(nil) } - let updateMarkersChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updateMarkers\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let updateMarkersChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updateMarkers\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { updateMarkersChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4822,9 +4564,7 @@ class MapViewApiSetup { } else { updateMarkersChannel.setMessageHandler(nil) } - let removeMarkersChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removeMarkers\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let removeMarkersChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removeMarkers\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { removeMarkersChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4840,9 +4580,7 @@ class MapViewApiSetup { } else { removeMarkersChannel.setMessageHandler(nil) } - let clearMarkersChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearMarkers\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let clearMarkersChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearMarkers\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { clearMarkersChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4857,9 +4595,7 @@ class MapViewApiSetup { } else { clearMarkersChannel.setMessageHandler(nil) } - let clearChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clear\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let clearChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clear\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { clearChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4874,9 +4610,7 @@ class MapViewApiSetup { } else { clearChannel.setMessageHandler(nil) } - let getPolygonsChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPolygons\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let getPolygonsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPolygons\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { getPolygonsChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4891,9 +4625,7 @@ class MapViewApiSetup { } else { getPolygonsChannel.setMessageHandler(nil) } - let addPolygonsChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addPolygons\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let addPolygonsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addPolygons\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { addPolygonsChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4909,10 +4641,7 @@ class MapViewApiSetup { } else { addPolygonsChannel.setMessageHandler(nil) } - let updatePolygonsChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updatePolygons\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let updatePolygonsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updatePolygons\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { updatePolygonsChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4928,10 +4657,7 @@ class MapViewApiSetup { } else { updatePolygonsChannel.setMessageHandler(nil) } - let removePolygonsChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removePolygons\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let removePolygonsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removePolygons\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { removePolygonsChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4947,9 +4673,7 @@ class MapViewApiSetup { } else { removePolygonsChannel.setMessageHandler(nil) } - let clearPolygonsChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearPolygons\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let clearPolygonsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearPolygons\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { clearPolygonsChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4964,9 +4688,7 @@ class MapViewApiSetup { } else { clearPolygonsChannel.setMessageHandler(nil) } - let getPolylinesChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPolylines\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let getPolylinesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPolylines\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { getPolylinesChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4981,9 +4703,7 @@ class MapViewApiSetup { } else { getPolylinesChannel.setMessageHandler(nil) } - let addPolylinesChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addPolylines\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let addPolylinesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addPolylines\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { addPolylinesChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4999,10 +4719,7 @@ class MapViewApiSetup { } else { addPolylinesChannel.setMessageHandler(nil) } - let updatePolylinesChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updatePolylines\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let updatePolylinesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updatePolylines\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { updatePolylinesChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -5018,10 +4735,7 @@ class MapViewApiSetup { } else { updatePolylinesChannel.setMessageHandler(nil) } - let removePolylinesChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removePolylines\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let removePolylinesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removePolylines\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { removePolylinesChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -5037,10 +4751,7 @@ class MapViewApiSetup { } else { removePolylinesChannel.setMessageHandler(nil) } - let clearPolylinesChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearPolylines\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let clearPolylinesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearPolylines\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { clearPolylinesChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -5055,9 +4766,7 @@ class MapViewApiSetup { } else { clearPolylinesChannel.setMessageHandler(nil) } - let getCirclesChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getCircles\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let getCirclesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getCircles\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { getCirclesChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -5072,9 +4781,7 @@ class MapViewApiSetup { } else { getCirclesChannel.setMessageHandler(nil) } - let addCirclesChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addCircles\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let addCirclesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addCircles\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { addCirclesChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -5090,9 +4797,7 @@ class MapViewApiSetup { } else { addCirclesChannel.setMessageHandler(nil) } - let updateCirclesChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updateCircles\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let updateCirclesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updateCircles\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { updateCirclesChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -5108,9 +4813,7 @@ class MapViewApiSetup { } else { updateCirclesChannel.setMessageHandler(nil) } - let removeCirclesChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removeCircles\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let removeCirclesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removeCircles\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { removeCirclesChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -5126,9 +4829,7 @@ class MapViewApiSetup { } else { removeCirclesChannel.setMessageHandler(nil) } - let clearCirclesChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearCircles\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let clearCirclesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearCircles\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { clearCirclesChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -5143,10 +4844,7 @@ class MapViewApiSetup { } else { clearCirclesChannel.setMessageHandler(nil) } - let enableOnCameraChangedEventsChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.enableOnCameraChangedEvents\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let enableOnCameraChangedEventsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.enableOnCameraChangedEvents\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { enableOnCameraChangedEventsChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -5161,9 +4859,7 @@ class MapViewApiSetup { } else { enableOnCameraChangedEventsChannel.setMessageHandler(nil) } - let setPaddingChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setPadding\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let setPaddingChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setPadding\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { setPaddingChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -5179,9 +4875,7 @@ class MapViewApiSetup { } else { setPaddingChannel.setMessageHandler(nil) } - let getPaddingChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPadding\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let getPaddingChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPadding\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { getPaddingChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -5196,10 +4890,7 @@ class MapViewApiSetup { } else { getPaddingChannel.setMessageHandler(nil) } - let getMapColorSchemeChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMapColorScheme\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let getMapColorSchemeChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMapColorScheme\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { getMapColorSchemeChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -5214,10 +4905,7 @@ class MapViewApiSetup { } else { getMapColorSchemeChannel.setMessageHandler(nil) } - let setMapColorSchemeChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapColorScheme\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let setMapColorSchemeChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapColorScheme\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { setMapColorSchemeChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -5233,10 +4921,7 @@ class MapViewApiSetup { } else { setMapColorSchemeChannel.setMessageHandler(nil) } - let getForceNightModeChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getForceNightMode\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let getForceNightModeChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getForceNightMode\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { getForceNightModeChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -5251,10 +4936,7 @@ class MapViewApiSetup { } else { getForceNightModeChannel.setMessageHandler(nil) } - let setForceNightModeChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setForceNightMode\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let setForceNightModeChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setForceNightMode\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { setForceNightModeChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -5274,30 +4956,20 @@ class MapViewApiSetup { } /// Generated protocol from Pigeon that represents a handler of messages from Flutter. protocol ImageRegistryApi { - func registerBitmapImage( - imageId: String, bytes: FlutterStandardTypedData, imagePixelRatio: Double, width: Double?, - height: Double? - ) throws -> ImageDescriptorDto + func registerBitmapImage(imageId: String, bytes: FlutterStandardTypedData, imagePixelRatio: Double, width: Double?, height: Double?) throws -> ImageDescriptorDto func unregisterImage(imageDescriptor: ImageDescriptorDto) throws func getRegisteredImages() throws -> [ImageDescriptorDto] func clearRegisteredImages(filter: RegisteredImageTypeDto?) throws - func getRegisteredImageData(imageDescriptor: ImageDescriptorDto) throws - -> FlutterStandardTypedData? + func getRegisteredImageData(imageDescriptor: ImageDescriptorDto) throws -> FlutterStandardTypedData? } /// Generated setup class from Pigeon to handle messages through the `binaryMessenger`. class ImageRegistryApiSetup { static var codec: FlutterStandardMessageCodec { MessagesPigeonCodec.shared } /// Sets up an instance of `ImageRegistryApi` to handle messages through the `binaryMessenger`. - static func setUp( - binaryMessenger: FlutterBinaryMessenger, api: ImageRegistryApi?, - messageChannelSuffix: String = "" - ) { + static func setUp(binaryMessenger: FlutterBinaryMessenger, api: ImageRegistryApi?, messageChannelSuffix: String = "") { let channelSuffix = messageChannelSuffix.count > 0 ? ".\(messageChannelSuffix)" : "" - let registerBitmapImageChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.registerBitmapImage\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let registerBitmapImageChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.registerBitmapImage\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { registerBitmapImageChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -5307,9 +4979,7 @@ class ImageRegistryApiSetup { let widthArg: Double? = nilOrValue(args[3]) let heightArg: Double? = nilOrValue(args[4]) do { - let result = try api.registerBitmapImage( - imageId: imageIdArg, bytes: bytesArg, imagePixelRatio: imagePixelRatioArg, - width: widthArg, height: heightArg) + let result = try api.registerBitmapImage(imageId: imageIdArg, bytes: bytesArg, imagePixelRatio: imagePixelRatioArg, width: widthArg, height: heightArg) reply(wrapResult(result)) } catch { reply(wrapError(error)) @@ -5318,10 +4988,7 @@ class ImageRegistryApiSetup { } else { registerBitmapImageChannel.setMessageHandler(nil) } - let unregisterImageChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.unregisterImage\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let unregisterImageChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.unregisterImage\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { unregisterImageChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -5336,10 +5003,7 @@ class ImageRegistryApiSetup { } else { unregisterImageChannel.setMessageHandler(nil) } - let getRegisteredImagesChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.getRegisteredImages\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let getRegisteredImagesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.getRegisteredImages\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { getRegisteredImagesChannel.setMessageHandler { _, reply in do { @@ -5352,10 +5016,7 @@ class ImageRegistryApiSetup { } else { getRegisteredImagesChannel.setMessageHandler(nil) } - let clearRegisteredImagesChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.clearRegisteredImages\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let clearRegisteredImagesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.clearRegisteredImages\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { clearRegisteredImagesChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -5370,10 +5031,7 @@ class ImageRegistryApiSetup { } else { clearRegisteredImagesChannel.setMessageHandler(nil) } - let getRegisteredImageDataChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.getRegisteredImageData\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let getRegisteredImageDataChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.getRegisteredImageData\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { getRegisteredImageDataChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -5392,54 +5050,22 @@ class ImageRegistryApiSetup { } /// Generated protocol from Pigeon that represents Flutter messages that can be called from Swift. protocol ViewEventApiProtocol { - func onMapClickEvent( - viewId viewIdArg: Int64, latLng latLngArg: LatLngDto, - completion: @escaping (Result) -> Void) - func onMapLongClickEvent( - viewId viewIdArg: Int64, latLng latLngArg: LatLngDto, - completion: @escaping (Result) -> Void) - func onRecenterButtonClicked( - viewId viewIdArg: Int64, completion: @escaping (Result) -> Void) - func onMarkerEvent( - viewId viewIdArg: Int64, markerId markerIdArg: String, - eventType eventTypeArg: MarkerEventTypeDto, - completion: @escaping (Result) -> Void) - func onMarkerDragEvent( - viewId viewIdArg: Int64, markerId markerIdArg: String, - eventType eventTypeArg: MarkerDragEventTypeDto, position positionArg: LatLngDto, - completion: @escaping (Result) -> Void) - func onPolygonClicked( - viewId viewIdArg: Int64, polygonId polygonIdArg: String, - completion: @escaping (Result) -> Void) - func onPolylineClicked( - viewId viewIdArg: Int64, polylineId polylineIdArg: String, - completion: @escaping (Result) -> Void) - func onCircleClicked( - viewId viewIdArg: Int64, circleId circleIdArg: String, - completion: @escaping (Result) -> Void) - func onPoiClick( - viewId viewIdArg: Int64, pointOfInterest pointOfInterestArg: PointOfInterestDto, - completion: @escaping (Result) -> Void) - func onNavigationUIEnabledChanged( - viewId viewIdArg: Int64, navigationUIEnabled navigationUIEnabledArg: Bool, - completion: @escaping (Result) -> Void) - func onPromptVisibilityChanged( - viewId viewIdArg: Int64, promptVisible promptVisibleArg: Bool, - completion: @escaping (Result) -> Void) - func onMyLocationClicked( - viewId viewIdArg: Int64, completion: @escaping (Result) -> Void) - func onMyLocationButtonClicked( - viewId viewIdArg: Int64, completion: @escaping (Result) -> Void) - func onIndoorFocusedBuildingChanged( - viewId viewIdArg: Int64, building buildingArg: IndoorBuildingDto?, - completion: @escaping (Result) -> Void) - func onIndoorActiveLevelChanged( - viewId viewIdArg: Int64, building buildingArg: IndoorBuildingDto?, - completion: @escaping (Result) -> Void) - func onCameraChanged( - viewId viewIdArg: Int64, eventType eventTypeArg: CameraEventTypeDto, - position positionArg: CameraPositionDto, - completion: @escaping (Result) -> Void) + func onMapClickEvent(viewId viewIdArg: Int64, latLng latLngArg: LatLngDto, completion: @escaping (Result) -> Void) + func onMapLongClickEvent(viewId viewIdArg: Int64, latLng latLngArg: LatLngDto, completion: @escaping (Result) -> Void) + func onRecenterButtonClicked(viewId viewIdArg: Int64, completion: @escaping (Result) -> Void) + func onMarkerEvent(viewId viewIdArg: Int64, markerId markerIdArg: String, eventType eventTypeArg: MarkerEventTypeDto, completion: @escaping (Result) -> Void) + func onMarkerDragEvent(viewId viewIdArg: Int64, markerId markerIdArg: String, eventType eventTypeArg: MarkerDragEventTypeDto, position positionArg: LatLngDto, completion: @escaping (Result) -> Void) + func onPolygonClicked(viewId viewIdArg: Int64, polygonId polygonIdArg: String, completion: @escaping (Result) -> Void) + func onPolylineClicked(viewId viewIdArg: Int64, polylineId polylineIdArg: String, completion: @escaping (Result) -> Void) + func onCircleClicked(viewId viewIdArg: Int64, circleId circleIdArg: String, completion: @escaping (Result) -> Void) + func onPoiClick(viewId viewIdArg: Int64, pointOfInterest pointOfInterestArg: PointOfInterestDto, completion: @escaping (Result) -> Void) + func onNavigationUIEnabledChanged(viewId viewIdArg: Int64, navigationUIEnabled navigationUIEnabledArg: Bool, completion: @escaping (Result) -> Void) + func onPromptVisibilityChanged(viewId viewIdArg: Int64, promptVisible promptVisibleArg: Bool, completion: @escaping (Result) -> Void) + func onMyLocationClicked(viewId viewIdArg: Int64, completion: @escaping (Result) -> Void) + func onMyLocationButtonClicked(viewId viewIdArg: Int64, completion: @escaping (Result) -> Void) + func onIndoorFocusedBuildingChanged(viewId viewIdArg: Int64, building buildingArg: IndoorBuildingDto?, completion: @escaping (Result) -> Void) + func onIndoorActiveLevelChanged(viewId viewIdArg: Int64, building buildingArg: IndoorBuildingDto?, completion: @escaping (Result) -> Void) + func onCameraChanged(viewId viewIdArg: Int64, eventType eventTypeArg: CameraEventTypeDto, position positionArg: CameraPositionDto, completion: @escaping (Result) -> Void) } class ViewEventApi: ViewEventApiProtocol { private let binaryMessenger: FlutterBinaryMessenger @@ -5451,14 +5077,9 @@ class ViewEventApi: ViewEventApiProtocol { var codec: MessagesPigeonCodec { return MessagesPigeonCodec.shared } - func onMapClickEvent( - viewId viewIdArg: Int64, latLng latLngArg: LatLngDto, - completion: @escaping (Result) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMapClickEvent\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func onMapClickEvent(viewId viewIdArg: Int64, latLng latLngArg: LatLngDto, completion: @escaping (Result) -> Void) { + let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMapClickEvent\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([viewIdArg, latLngArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5474,14 +5095,9 @@ class ViewEventApi: ViewEventApiProtocol { } } } - func onMapLongClickEvent( - viewId viewIdArg: Int64, latLng latLngArg: LatLngDto, - completion: @escaping (Result) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMapLongClickEvent\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func onMapLongClickEvent(viewId viewIdArg: Int64, latLng latLngArg: LatLngDto, completion: @escaping (Result) -> Void) { + let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMapLongClickEvent\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([viewIdArg, latLngArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5497,13 +5113,9 @@ class ViewEventApi: ViewEventApiProtocol { } } } - func onRecenterButtonClicked( - viewId viewIdArg: Int64, completion: @escaping (Result) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onRecenterButtonClicked\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func onRecenterButtonClicked(viewId viewIdArg: Int64, completion: @escaping (Result) -> Void) { + let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onRecenterButtonClicked\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([viewIdArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5519,15 +5131,9 @@ class ViewEventApi: ViewEventApiProtocol { } } } - func onMarkerEvent( - viewId viewIdArg: Int64, markerId markerIdArg: String, - eventType eventTypeArg: MarkerEventTypeDto, - completion: @escaping (Result) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMarkerEvent\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func onMarkerEvent(viewId viewIdArg: Int64, markerId markerIdArg: String, eventType eventTypeArg: MarkerEventTypeDto, completion: @escaping (Result) -> Void) { + let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMarkerEvent\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([viewIdArg, markerIdArg, eventTypeArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5543,15 +5149,9 @@ class ViewEventApi: ViewEventApiProtocol { } } } - func onMarkerDragEvent( - viewId viewIdArg: Int64, markerId markerIdArg: String, - eventType eventTypeArg: MarkerDragEventTypeDto, position positionArg: LatLngDto, - completion: @escaping (Result) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMarkerDragEvent\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func onMarkerDragEvent(viewId viewIdArg: Int64, markerId markerIdArg: String, eventType eventTypeArg: MarkerDragEventTypeDto, position positionArg: LatLngDto, completion: @escaping (Result) -> Void) { + let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMarkerDragEvent\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([viewIdArg, markerIdArg, eventTypeArg, positionArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5567,14 +5167,9 @@ class ViewEventApi: ViewEventApiProtocol { } } } - func onPolygonClicked( - viewId viewIdArg: Int64, polygonId polygonIdArg: String, - completion: @escaping (Result) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPolygonClicked\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func onPolygonClicked(viewId viewIdArg: Int64, polygonId polygonIdArg: String, completion: @escaping (Result) -> Void) { + let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPolygonClicked\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([viewIdArg, polygonIdArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5590,14 +5185,9 @@ class ViewEventApi: ViewEventApiProtocol { } } } - func onPolylineClicked( - viewId viewIdArg: Int64, polylineId polylineIdArg: String, - completion: @escaping (Result) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPolylineClicked\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func onPolylineClicked(viewId viewIdArg: Int64, polylineId polylineIdArg: String, completion: @escaping (Result) -> Void) { + let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPolylineClicked\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([viewIdArg, polylineIdArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5613,14 +5203,9 @@ class ViewEventApi: ViewEventApiProtocol { } } } - func onCircleClicked( - viewId viewIdArg: Int64, circleId circleIdArg: String, - completion: @escaping (Result) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onCircleClicked\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func onCircleClicked(viewId viewIdArg: Int64, circleId circleIdArg: String, completion: @escaping (Result) -> Void) { + let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onCircleClicked\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([viewIdArg, circleIdArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5636,14 +5221,9 @@ class ViewEventApi: ViewEventApiProtocol { } } } - func onPoiClick( - viewId viewIdArg: Int64, pointOfInterest pointOfInterestArg: PointOfInterestDto, - completion: @escaping (Result) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPoiClick\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func onPoiClick(viewId viewIdArg: Int64, pointOfInterest pointOfInterestArg: PointOfInterestDto, completion: @escaping (Result) -> Void) { + let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPoiClick\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([viewIdArg, pointOfInterestArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5659,14 +5239,9 @@ class ViewEventApi: ViewEventApiProtocol { } } } - func onNavigationUIEnabledChanged( - viewId viewIdArg: Int64, navigationUIEnabled navigationUIEnabledArg: Bool, - completion: @escaping (Result) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onNavigationUIEnabledChanged\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func onNavigationUIEnabledChanged(viewId viewIdArg: Int64, navigationUIEnabled navigationUIEnabledArg: Bool, completion: @escaping (Result) -> Void) { + let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onNavigationUIEnabledChanged\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([viewIdArg, navigationUIEnabledArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5682,14 +5257,9 @@ class ViewEventApi: ViewEventApiProtocol { } } } - func onPromptVisibilityChanged( - viewId viewIdArg: Int64, promptVisible promptVisibleArg: Bool, - completion: @escaping (Result) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPromptVisibilityChanged\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func onPromptVisibilityChanged(viewId viewIdArg: Int64, promptVisible promptVisibleArg: Bool, completion: @escaping (Result) -> Void) { + let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPromptVisibilityChanged\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([viewIdArg, promptVisibleArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5705,13 +5275,9 @@ class ViewEventApi: ViewEventApiProtocol { } } } - func onMyLocationClicked( - viewId viewIdArg: Int64, completion: @escaping (Result) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMyLocationClicked\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func onMyLocationClicked(viewId viewIdArg: Int64, completion: @escaping (Result) -> Void) { + let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMyLocationClicked\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([viewIdArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5727,13 +5293,9 @@ class ViewEventApi: ViewEventApiProtocol { } } } - func onMyLocationButtonClicked( - viewId viewIdArg: Int64, completion: @escaping (Result) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMyLocationButtonClicked\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func onMyLocationButtonClicked(viewId viewIdArg: Int64, completion: @escaping (Result) -> Void) { + let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMyLocationButtonClicked\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([viewIdArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5749,14 +5311,9 @@ class ViewEventApi: ViewEventApiProtocol { } } } - func onIndoorFocusedBuildingChanged( - viewId viewIdArg: Int64, building buildingArg: IndoorBuildingDto?, - completion: @escaping (Result) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onIndoorFocusedBuildingChanged\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func onIndoorFocusedBuildingChanged(viewId viewIdArg: Int64, building buildingArg: IndoorBuildingDto?, completion: @escaping (Result) -> Void) { + let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onIndoorFocusedBuildingChanged\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([viewIdArg, buildingArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5772,14 +5329,9 @@ class ViewEventApi: ViewEventApiProtocol { } } } - func onIndoorActiveLevelChanged( - viewId viewIdArg: Int64, building buildingArg: IndoorBuildingDto?, - completion: @escaping (Result) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onIndoorActiveLevelChanged\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func onIndoorActiveLevelChanged(viewId viewIdArg: Int64, building buildingArg: IndoorBuildingDto?, completion: @escaping (Result) -> Void) { + let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onIndoorActiveLevelChanged\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([viewIdArg, buildingArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5795,15 +5347,9 @@ class ViewEventApi: ViewEventApiProtocol { } } } - func onCameraChanged( - viewId viewIdArg: Int64, eventType eventTypeArg: CameraEventTypeDto, - position positionArg: CameraPositionDto, - completion: @escaping (Result) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onCameraChanged\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func onCameraChanged(viewId viewIdArg: Int64, eventType eventTypeArg: CameraEventTypeDto, position positionArg: CameraPositionDto, completion: @escaping (Result) -> Void) { + let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onCameraChanged\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([viewIdArg, eventTypeArg, positionArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5822,25 +5368,19 @@ class ViewEventApi: ViewEventApiProtocol { } /// Generated protocol from Pigeon that represents a handler of messages from Flutter. protocol NavigationSessionApi { - 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(resetSession: Bool) throws - func showTermsAndConditionsDialog( - title: String, companyName: String, shouldOnlyShowDriverAwarenessDisclaimer: Bool, - uiParams: TermsAndConditionsUIParamsDto?, completion: @escaping (Result) -> Void) + func showTermsAndConditionsDialog(title: String, companyName: String, shouldOnlyShowDriverAwarenessDisclaimer: Bool, uiParams: TermsAndConditionsUIParamsDto?, completion: @escaping (Result) -> Void) func areTermsAccepted() throws -> Bool func resetTermsAccepted() throws func getNavSDKVersion() throws -> String func isGuidanceRunning() throws -> Bool func startGuidance() throws func stopGuidance() throws - func setDestinations( - destinations: DestinationsDto, completion: @escaping (Result) -> Void) + func setDestinations(destinations: DestinationsDto, completion: @escaping (Result) -> Void) func clearDestinations() throws - func continueToNextDestination( - completion: @escaping (Result) -> Void) + func continueToNextDestination(completion: @escaping (Result) -> Void) func getCurrentTimeAndDistance() throws -> NavigationTimeAndDistanceDto func setAudioGuidance(settings: NavigationAudioGuidanceSettingsDto) throws func setSpeedAlertOptions(options: SpeedAlertOptionsDto) throws @@ -5851,51 +5391,33 @@ protocol NavigationSessionApi { func removeUserLocation() throws func simulateLocationsAlongExistingRoute() throws func simulateLocationsAlongExistingRouteWithOptions(options: SimulationOptionsDto) throws - func simulateLocationsAlongNewRoute( - waypoints: [NavigationWaypointDto], - completion: @escaping (Result) -> Void) - func simulateLocationsAlongNewRouteWithRoutingOptions( - waypoints: [NavigationWaypointDto], routingOptions: RoutingOptionsDto, - completion: @escaping (Result) -> Void) - func simulateLocationsAlongNewRouteWithRoutingAndSimulationOptions( - waypoints: [NavigationWaypointDto], routingOptions: RoutingOptionsDto, - simulationOptions: SimulationOptionsDto, - completion: @escaping (Result) -> Void) + func simulateLocationsAlongNewRoute(waypoints: [NavigationWaypointDto], completion: @escaping (Result) -> Void) + func simulateLocationsAlongNewRouteWithRoutingOptions(waypoints: [NavigationWaypointDto], routingOptions: RoutingOptionsDto, completion: @escaping (Result) -> Void) + func simulateLocationsAlongNewRouteWithRoutingAndSimulationOptions(waypoints: [NavigationWaypointDto], routingOptions: RoutingOptionsDto, simulationOptions: SimulationOptionsDto, completion: @escaping (Result) -> Void) func pauseSimulation() throws func resumeSimulation() throws /// iOS-only method. func allowBackgroundLocationUpdates(allow: Bool) throws func enableRoadSnappedLocationUpdates() throws func disableRoadSnappedLocationUpdates() throws - func enableTurnByTurnNavigationEvents( - numNextStepsToPreview: Int64?, options: StepImageGenerationOptionsDto?) throws + func enableTurnByTurnNavigationEvents(numNextStepsToPreview: Int64?, options: StepImageGenerationOptionsDto?) throws func disableTurnByTurnNavigationEvents() throws - func registerRemainingTimeOrDistanceChangedListener( - remainingTimeThresholdSeconds: Int64, remainingDistanceThresholdMeters: Int64) throws + func registerRemainingTimeOrDistanceChangedListener(remainingTimeThresholdSeconds: Int64, remainingDistanceThresholdMeters: Int64) throws } /// Generated setup class from Pigeon to handle messages through the `binaryMessenger`. class NavigationSessionApiSetup { static var codec: FlutterStandardMessageCodec { MessagesPigeonCodec.shared } /// Sets up an instance of `NavigationSessionApi` to handle messages through the `binaryMessenger`. - static func setUp( - binaryMessenger: FlutterBinaryMessenger, api: NavigationSessionApi?, - messageChannelSuffix: String = "" - ) { + static func setUp(binaryMessenger: FlutterBinaryMessenger, api: NavigationSessionApi?, messageChannelSuffix: String = "") { let channelSuffix = messageChannelSuffix.count > 0 ? ".\(messageChannelSuffix)" : "" - let createNavigationSessionChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.createNavigationSession\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let createNavigationSessionChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.createNavigationSession\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { createNavigationSessionChannel.setMessageHandler { message, reply in let args = message as! [Any?] let abnormalTerminationReportingEnabledArg = args[0] as! Bool let behaviorArg = args[1] as! TaskRemovedBehaviorDto - api.createNavigationSession( - abnormalTerminationReportingEnabled: abnormalTerminationReportingEnabledArg, - behavior: behaviorArg - ) { result in + api.createNavigationSession(abnormalTerminationReportingEnabled: abnormalTerminationReportingEnabledArg, behavior: behaviorArg) { result in switch result { case .success: reply(wrapResult(nil)) @@ -5907,10 +5429,7 @@ class NavigationSessionApiSetup { } else { createNavigationSessionChannel.setMessageHandler(nil) } - let isInitializedChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.isInitialized\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let isInitializedChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.isInitialized\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { isInitializedChannel.setMessageHandler { _, reply in do { @@ -5923,10 +5442,7 @@ class NavigationSessionApiSetup { } else { isInitializedChannel.setMessageHandler(nil) } - let cleanupChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.cleanup\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let cleanupChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.cleanup\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { cleanupChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -5941,10 +5457,7 @@ class NavigationSessionApiSetup { } else { cleanupChannel.setMessageHandler(nil) } - let showTermsAndConditionsDialogChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.showTermsAndConditionsDialog\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let showTermsAndConditionsDialogChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.showTermsAndConditionsDialog\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { showTermsAndConditionsDialogChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -5952,11 +5465,7 @@ class NavigationSessionApiSetup { let companyNameArg = args[1] as! String let shouldOnlyShowDriverAwarenessDisclaimerArg = args[2] as! Bool let uiParamsArg: TermsAndConditionsUIParamsDto? = nilOrValue(args[3]) - api.showTermsAndConditionsDialog( - title: titleArg, companyName: companyNameArg, - shouldOnlyShowDriverAwarenessDisclaimer: shouldOnlyShowDriverAwarenessDisclaimerArg, - uiParams: uiParamsArg - ) { result in + api.showTermsAndConditionsDialog(title: titleArg, companyName: companyNameArg, shouldOnlyShowDriverAwarenessDisclaimer: shouldOnlyShowDriverAwarenessDisclaimerArg, uiParams: uiParamsArg) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -5968,10 +5477,7 @@ class NavigationSessionApiSetup { } else { showTermsAndConditionsDialogChannel.setMessageHandler(nil) } - let areTermsAcceptedChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.areTermsAccepted\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let areTermsAcceptedChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.areTermsAccepted\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { areTermsAcceptedChannel.setMessageHandler { _, reply in do { @@ -5984,10 +5490,7 @@ class NavigationSessionApiSetup { } else { areTermsAcceptedChannel.setMessageHandler(nil) } - let resetTermsAcceptedChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.resetTermsAccepted\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let resetTermsAcceptedChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.resetTermsAccepted\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { resetTermsAcceptedChannel.setMessageHandler { _, reply in do { @@ -6000,10 +5503,7 @@ class NavigationSessionApiSetup { } else { resetTermsAcceptedChannel.setMessageHandler(nil) } - let getNavSDKVersionChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getNavSDKVersion\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let getNavSDKVersionChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getNavSDKVersion\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { getNavSDKVersionChannel.setMessageHandler { _, reply in do { @@ -6016,10 +5516,7 @@ class NavigationSessionApiSetup { } else { getNavSDKVersionChannel.setMessageHandler(nil) } - let isGuidanceRunningChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.isGuidanceRunning\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let isGuidanceRunningChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.isGuidanceRunning\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { isGuidanceRunningChannel.setMessageHandler { _, reply in do { @@ -6032,10 +5529,7 @@ class NavigationSessionApiSetup { } else { isGuidanceRunningChannel.setMessageHandler(nil) } - let startGuidanceChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.startGuidance\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let startGuidanceChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.startGuidance\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { startGuidanceChannel.setMessageHandler { _, reply in do { @@ -6048,10 +5542,7 @@ class NavigationSessionApiSetup { } else { startGuidanceChannel.setMessageHandler(nil) } - let stopGuidanceChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.stopGuidance\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let stopGuidanceChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.stopGuidance\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { stopGuidanceChannel.setMessageHandler { _, reply in do { @@ -6064,10 +5555,7 @@ class NavigationSessionApiSetup { } else { stopGuidanceChannel.setMessageHandler(nil) } - let setDestinationsChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setDestinations\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let setDestinationsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setDestinations\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { setDestinationsChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -6084,10 +5572,7 @@ class NavigationSessionApiSetup { } else { setDestinationsChannel.setMessageHandler(nil) } - let clearDestinationsChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.clearDestinations\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let clearDestinationsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.clearDestinations\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { clearDestinationsChannel.setMessageHandler { _, reply in do { @@ -6100,10 +5585,7 @@ class NavigationSessionApiSetup { } else { clearDestinationsChannel.setMessageHandler(nil) } - let continueToNextDestinationChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.continueToNextDestination\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let continueToNextDestinationChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.continueToNextDestination\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { continueToNextDestinationChannel.setMessageHandler { _, reply in api.continueToNextDestination { result in @@ -6118,10 +5600,7 @@ class NavigationSessionApiSetup { } else { continueToNextDestinationChannel.setMessageHandler(nil) } - let getCurrentTimeAndDistanceChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getCurrentTimeAndDistance\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let getCurrentTimeAndDistanceChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getCurrentTimeAndDistance\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { getCurrentTimeAndDistanceChannel.setMessageHandler { _, reply in do { @@ -6134,10 +5613,7 @@ class NavigationSessionApiSetup { } else { getCurrentTimeAndDistanceChannel.setMessageHandler(nil) } - let setAudioGuidanceChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setAudioGuidance\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let setAudioGuidanceChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setAudioGuidance\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { setAudioGuidanceChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -6152,10 +5628,7 @@ class NavigationSessionApiSetup { } else { setAudioGuidanceChannel.setMessageHandler(nil) } - let setSpeedAlertOptionsChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setSpeedAlertOptions\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let setSpeedAlertOptionsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setSpeedAlertOptions\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { setSpeedAlertOptionsChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -6170,10 +5643,7 @@ class NavigationSessionApiSetup { } else { setSpeedAlertOptionsChannel.setMessageHandler(nil) } - let getRouteSegmentsChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getRouteSegments\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let getRouteSegmentsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getRouteSegments\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { getRouteSegmentsChannel.setMessageHandler { _, reply in do { @@ -6186,10 +5656,7 @@ class NavigationSessionApiSetup { } else { getRouteSegmentsChannel.setMessageHandler(nil) } - let getTraveledRouteChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getTraveledRoute\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let getTraveledRouteChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getTraveledRoute\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { getTraveledRouteChannel.setMessageHandler { _, reply in do { @@ -6202,10 +5669,7 @@ class NavigationSessionApiSetup { } else { getTraveledRouteChannel.setMessageHandler(nil) } - let getCurrentRouteSegmentChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getCurrentRouteSegment\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let getCurrentRouteSegmentChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getCurrentRouteSegment\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { getCurrentRouteSegmentChannel.setMessageHandler { _, reply in do { @@ -6218,10 +5682,7 @@ class NavigationSessionApiSetup { } else { getCurrentRouteSegmentChannel.setMessageHandler(nil) } - let setUserLocationChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setUserLocation\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let setUserLocationChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setUserLocation\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { setUserLocationChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -6236,10 +5697,7 @@ class NavigationSessionApiSetup { } else { setUserLocationChannel.setMessageHandler(nil) } - let removeUserLocationChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.removeUserLocation\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let removeUserLocationChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.removeUserLocation\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { removeUserLocationChannel.setMessageHandler { _, reply in do { @@ -6252,10 +5710,7 @@ class NavigationSessionApiSetup { } else { removeUserLocationChannel.setMessageHandler(nil) } - let simulateLocationsAlongExistingRouteChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongExistingRoute\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let simulateLocationsAlongExistingRouteChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongExistingRoute\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { simulateLocationsAlongExistingRouteChannel.setMessageHandler { _, reply in do { @@ -6268,10 +5723,7 @@ class NavigationSessionApiSetup { } else { simulateLocationsAlongExistingRouteChannel.setMessageHandler(nil) } - let simulateLocationsAlongExistingRouteWithOptionsChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongExistingRouteWithOptions\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let simulateLocationsAlongExistingRouteWithOptionsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongExistingRouteWithOptions\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { simulateLocationsAlongExistingRouteWithOptionsChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -6286,10 +5738,7 @@ class NavigationSessionApiSetup { } else { simulateLocationsAlongExistingRouteWithOptionsChannel.setMessageHandler(nil) } - let simulateLocationsAlongNewRouteChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRoute\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let simulateLocationsAlongNewRouteChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRoute\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { simulateLocationsAlongNewRouteChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -6306,18 +5755,13 @@ class NavigationSessionApiSetup { } else { simulateLocationsAlongNewRouteChannel.setMessageHandler(nil) } - let simulateLocationsAlongNewRouteWithRoutingOptionsChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRouteWithRoutingOptions\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let simulateLocationsAlongNewRouteWithRoutingOptionsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRouteWithRoutingOptions\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { simulateLocationsAlongNewRouteWithRoutingOptionsChannel.setMessageHandler { message, reply in let args = message as! [Any?] let waypointsArg = args[0] as! [NavigationWaypointDto] let routingOptionsArg = args[1] as! RoutingOptionsDto - api.simulateLocationsAlongNewRouteWithRoutingOptions( - waypoints: waypointsArg, routingOptions: routingOptionsArg - ) { result in + api.simulateLocationsAlongNewRouteWithRoutingOptions(waypoints: waypointsArg, routingOptions: routingOptionsArg) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -6329,22 +5773,14 @@ class NavigationSessionApiSetup { } else { simulateLocationsAlongNewRouteWithRoutingOptionsChannel.setMessageHandler(nil) } - let simulateLocationsAlongNewRouteWithRoutingAndSimulationOptionsChannel = - FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRouteWithRoutingAndSimulationOptions\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let simulateLocationsAlongNewRouteWithRoutingAndSimulationOptionsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRouteWithRoutingAndSimulationOptions\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { - simulateLocationsAlongNewRouteWithRoutingAndSimulationOptionsChannel.setMessageHandler { - message, reply in + simulateLocationsAlongNewRouteWithRoutingAndSimulationOptionsChannel.setMessageHandler { message, reply in let args = message as! [Any?] let waypointsArg = args[0] as! [NavigationWaypointDto] let routingOptionsArg = args[1] as! RoutingOptionsDto let simulationOptionsArg = args[2] as! SimulationOptionsDto - api.simulateLocationsAlongNewRouteWithRoutingAndSimulationOptions( - waypoints: waypointsArg, routingOptions: routingOptionsArg, - simulationOptions: simulationOptionsArg - ) { result in + api.simulateLocationsAlongNewRouteWithRoutingAndSimulationOptions(waypoints: waypointsArg, routingOptions: routingOptionsArg, simulationOptions: simulationOptionsArg) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -6356,10 +5792,7 @@ class NavigationSessionApiSetup { } else { simulateLocationsAlongNewRouteWithRoutingAndSimulationOptionsChannel.setMessageHandler(nil) } - let pauseSimulationChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.pauseSimulation\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let pauseSimulationChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.pauseSimulation\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { pauseSimulationChannel.setMessageHandler { _, reply in do { @@ -6372,10 +5805,7 @@ class NavigationSessionApiSetup { } else { pauseSimulationChannel.setMessageHandler(nil) } - let resumeSimulationChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.resumeSimulation\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let resumeSimulationChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.resumeSimulation\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { resumeSimulationChannel.setMessageHandler { _, reply in do { @@ -6389,10 +5819,7 @@ class NavigationSessionApiSetup { resumeSimulationChannel.setMessageHandler(nil) } /// iOS-only method. - let allowBackgroundLocationUpdatesChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.allowBackgroundLocationUpdates\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let allowBackgroundLocationUpdatesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.allowBackgroundLocationUpdates\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { allowBackgroundLocationUpdatesChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -6407,10 +5834,7 @@ class NavigationSessionApiSetup { } else { allowBackgroundLocationUpdatesChannel.setMessageHandler(nil) } - let enableRoadSnappedLocationUpdatesChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.enableRoadSnappedLocationUpdates\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let enableRoadSnappedLocationUpdatesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.enableRoadSnappedLocationUpdates\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { enableRoadSnappedLocationUpdatesChannel.setMessageHandler { _, reply in do { @@ -6423,10 +5847,7 @@ class NavigationSessionApiSetup { } else { enableRoadSnappedLocationUpdatesChannel.setMessageHandler(nil) } - let disableRoadSnappedLocationUpdatesChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.disableRoadSnappedLocationUpdates\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let disableRoadSnappedLocationUpdatesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.disableRoadSnappedLocationUpdates\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { disableRoadSnappedLocationUpdatesChannel.setMessageHandler { _, reply in do { @@ -6439,18 +5860,14 @@ class NavigationSessionApiSetup { } else { disableRoadSnappedLocationUpdatesChannel.setMessageHandler(nil) } - let enableTurnByTurnNavigationEventsChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.enableTurnByTurnNavigationEvents\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let enableTurnByTurnNavigationEventsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.enableTurnByTurnNavigationEvents\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { enableTurnByTurnNavigationEventsChannel.setMessageHandler { message, reply in let args = message as! [Any?] let numNextStepsToPreviewArg: Int64? = nilOrValue(args[0]) let optionsArg: StepImageGenerationOptionsDto? = nilOrValue(args[1]) do { - try api.enableTurnByTurnNavigationEvents( - numNextStepsToPreview: numNextStepsToPreviewArg, options: optionsArg) + try api.enableTurnByTurnNavigationEvents(numNextStepsToPreview: numNextStepsToPreviewArg, options: optionsArg) reply(wrapResult(nil)) } catch { reply(wrapError(error)) @@ -6459,10 +5876,7 @@ class NavigationSessionApiSetup { } else { enableTurnByTurnNavigationEventsChannel.setMessageHandler(nil) } - let disableTurnByTurnNavigationEventsChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.disableTurnByTurnNavigationEvents\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let disableTurnByTurnNavigationEventsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.disableTurnByTurnNavigationEvents\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { disableTurnByTurnNavigationEventsChannel.setMessageHandler { _, reply in do { @@ -6475,19 +5889,14 @@ class NavigationSessionApiSetup { } else { disableTurnByTurnNavigationEventsChannel.setMessageHandler(nil) } - let registerRemainingTimeOrDistanceChangedListenerChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.registerRemainingTimeOrDistanceChangedListener\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let registerRemainingTimeOrDistanceChangedListenerChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.registerRemainingTimeOrDistanceChangedListener\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { registerRemainingTimeOrDistanceChangedListenerChannel.setMessageHandler { message, reply in let args = message as! [Any?] let remainingTimeThresholdSecondsArg = args[0] as! Int64 let remainingDistanceThresholdMetersArg = args[1] as! Int64 do { - try api.registerRemainingTimeOrDistanceChangedListener( - remainingTimeThresholdSeconds: remainingTimeThresholdSecondsArg, - remainingDistanceThresholdMeters: remainingDistanceThresholdMetersArg) + try api.registerRemainingTimeOrDistanceChangedListener(remainingTimeThresholdSeconds: remainingTimeThresholdSecondsArg, remainingDistanceThresholdMeters: remainingDistanceThresholdMetersArg) reply(wrapResult(nil)) } catch { reply(wrapError(error)) @@ -6500,34 +5909,22 @@ class NavigationSessionApiSetup { } /// Generated protocol from Pigeon that represents Flutter messages that can be called from Swift. protocol NavigationSessionEventApiProtocol { - func onSpeedingUpdated( - msg msgArg: SpeedingUpdatedEventDto, completion: @escaping (Result) -> Void) - func onRoadSnappedLocationUpdated( - location locationArg: LatLngDto, completion: @escaping (Result) -> Void) - func onRoadSnappedRawLocationUpdated( - location locationArg: LatLngDto, completion: @escaping (Result) -> Void) - func onArrival( - waypoint waypointArg: NavigationWaypointDto, - completion: @escaping (Result) -> Void) + func onSpeedingUpdated(msg msgArg: SpeedingUpdatedEventDto, completion: @escaping (Result) -> Void) + func onRoadSnappedLocationUpdated(location locationArg: LatLngDto, completion: @escaping (Result) -> Void) + func onRoadSnappedRawLocationUpdated(location locationArg: LatLngDto, completion: @escaping (Result) -> Void) + func onArrival(waypoint waypointArg: NavigationWaypointDto, completion: @escaping (Result) -> Void) func onRouteChanged(completion: @escaping (Result) -> Void) - func onRemainingTimeOrDistanceChanged( - remainingTime remainingTimeArg: Double, remainingDistance remainingDistanceArg: Double, - delaySeverity delaySeverityArg: TrafficDelaySeverityDto, - completion: @escaping (Result) -> Void) + func onRemainingTimeOrDistanceChanged(remainingTime remainingTimeArg: Double, remainingDistance remainingDistanceArg: Double, delaySeverity delaySeverityArg: TrafficDelaySeverityDto, completion: @escaping (Result) -> Void) /// Android-only event. func onTrafficUpdated(completion: @escaping (Result) -> Void) /// Android-only event. func onRerouting(completion: @escaping (Result) -> Void) /// Android-only event. - func onGpsAvailabilityUpdate( - available availableArg: Bool, completion: @escaping (Result) -> Void) + func onGpsAvailabilityUpdate(available availableArg: Bool, completion: @escaping (Result) -> Void) /// Android-only event. - func onGpsAvailabilityChange( - event eventArg: GpsAvailabilityChangeEventDto, - completion: @escaping (Result) -> Void) + func onGpsAvailabilityChange(event eventArg: GpsAvailabilityChangeEventDto, completion: @escaping (Result) -> Void) /// Turn-by-Turn navigation events. - func onNavInfo( - navInfo navInfoArg: NavInfoDto, completion: @escaping (Result) -> Void) + func onNavInfo(navInfo navInfoArg: NavInfoDto, completion: @escaping (Result) -> Void) /// Navigation session event. Called when a new navigation /// session starts with active guidance. func onNewNavigationSession(completion: @escaping (Result) -> Void) @@ -6542,13 +5939,9 @@ class NavigationSessionEventApi: NavigationSessionEventApiProtocol { var codec: MessagesPigeonCodec { return MessagesPigeonCodec.shared } - func onSpeedingUpdated( - msg msgArg: SpeedingUpdatedEventDto, completion: @escaping (Result) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onSpeedingUpdated\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func onSpeedingUpdated(msg msgArg: SpeedingUpdatedEventDto, completion: @escaping (Result) -> Void) { + let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onSpeedingUpdated\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([msgArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -6564,13 +5957,9 @@ class NavigationSessionEventApi: NavigationSessionEventApiProtocol { } } } - func onRoadSnappedLocationUpdated( - location locationArg: LatLngDto, completion: @escaping (Result) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRoadSnappedLocationUpdated\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func onRoadSnappedLocationUpdated(location locationArg: LatLngDto, completion: @escaping (Result) -> Void) { + let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRoadSnappedLocationUpdated\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([locationArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -6586,13 +5975,9 @@ class NavigationSessionEventApi: NavigationSessionEventApiProtocol { } } } - func onRoadSnappedRawLocationUpdated( - location locationArg: LatLngDto, completion: @escaping (Result) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRoadSnappedRawLocationUpdated\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func onRoadSnappedRawLocationUpdated(location locationArg: LatLngDto, completion: @escaping (Result) -> Void) { + let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRoadSnappedRawLocationUpdated\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([locationArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -6608,14 +5993,9 @@ class NavigationSessionEventApi: NavigationSessionEventApiProtocol { } } } - func onArrival( - waypoint waypointArg: NavigationWaypointDto, - completion: @escaping (Result) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onArrival\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func onArrival(waypoint waypointArg: NavigationWaypointDto, completion: @escaping (Result) -> Void) { + let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onArrival\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([waypointArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -6632,10 +6012,8 @@ class NavigationSessionEventApi: NavigationSessionEventApiProtocol { } } func onRouteChanged(completion: @escaping (Result) -> Void) { - let channelName: String = - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRouteChanged\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRouteChanged\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage(nil) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -6651,17 +6029,10 @@ class NavigationSessionEventApi: NavigationSessionEventApiProtocol { } } } - func onRemainingTimeOrDistanceChanged( - remainingTime remainingTimeArg: Double, remainingDistance remainingDistanceArg: Double, - delaySeverity delaySeverityArg: TrafficDelaySeverityDto, - completion: @escaping (Result) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRemainingTimeOrDistanceChanged\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) - channel.sendMessage([remainingTimeArg, remainingDistanceArg, delaySeverityArg] as [Any?]) { - response in + func onRemainingTimeOrDistanceChanged(remainingTime remainingTimeArg: Double, remainingDistance remainingDistanceArg: Double, delaySeverity delaySeverityArg: TrafficDelaySeverityDto, completion: @escaping (Result) -> Void) { + let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRemainingTimeOrDistanceChanged\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + channel.sendMessage([remainingTimeArg, remainingDistanceArg, delaySeverityArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) return @@ -6678,10 +6049,8 @@ class NavigationSessionEventApi: NavigationSessionEventApiProtocol { } /// Android-only event. func onTrafficUpdated(completion: @escaping (Result) -> Void) { - let channelName: String = - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onTrafficUpdated\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onTrafficUpdated\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage(nil) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -6699,10 +6068,8 @@ class NavigationSessionEventApi: NavigationSessionEventApiProtocol { } /// Android-only event. func onRerouting(completion: @escaping (Result) -> Void) { - let channelName: String = - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRerouting\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRerouting\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage(nil) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -6719,13 +6086,9 @@ class NavigationSessionEventApi: NavigationSessionEventApiProtocol { } } /// Android-only event. - func onGpsAvailabilityUpdate( - available availableArg: Bool, completion: @escaping (Result) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onGpsAvailabilityUpdate\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func onGpsAvailabilityUpdate(available availableArg: Bool, completion: @escaping (Result) -> Void) { + let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onGpsAvailabilityUpdate\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([availableArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -6742,14 +6105,9 @@ class NavigationSessionEventApi: NavigationSessionEventApiProtocol { } } /// Android-only event. - func onGpsAvailabilityChange( - event eventArg: GpsAvailabilityChangeEventDto, - completion: @escaping (Result) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onGpsAvailabilityChange\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func onGpsAvailabilityChange(event eventArg: GpsAvailabilityChangeEventDto, completion: @escaping (Result) -> Void) { + let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onGpsAvailabilityChange\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([eventArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -6766,13 +6124,9 @@ class NavigationSessionEventApi: NavigationSessionEventApiProtocol { } } /// Turn-by-Turn navigation events. - func onNavInfo( - navInfo navInfoArg: NavInfoDto, completion: @escaping (Result) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onNavInfo\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func onNavInfo(navInfo navInfoArg: NavInfoDto, completion: @escaping (Result) -> Void) { + let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onNavInfo\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([navInfoArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -6791,10 +6145,8 @@ class NavigationSessionEventApi: NavigationSessionEventApiProtocol { /// Navigation session event. Called when a new navigation /// session starts with active guidance. func onNewNavigationSession(completion: @escaping (Result) -> Void) { - let channelName: String = - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onNewNavigationSession\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onNewNavigationSession\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage(nil) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -6826,25 +6178,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 @@ -6932,17 +6272,12 @@ protocol AutoMapViewApi { class AutoMapViewApiSetup { static var codec: FlutterStandardMessageCodec { MessagesPigeonCodec.shared } /// Sets up an instance of `AutoMapViewApi` to handle messages through the `binaryMessenger`. - static func setUp( - binaryMessenger: FlutterBinaryMessenger, api: AutoMapViewApi?, messageChannelSuffix: String = "" - ) { + static func setUp(binaryMessenger: FlutterBinaryMessenger, api: AutoMapViewApi?, messageChannelSuffix: String = "") { let channelSuffix = messageChannelSuffix.count > 0 ? ".\(messageChannelSuffix)" : "" /// Sets the map options to be used for Android Auto and CarPlay views. /// Should be called before the Auto/CarPlay screen is created. /// This allows customization of mapId and basic map settings. - let setAutoMapOptionsChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setAutoMapOptions\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let setAutoMapOptionsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setAutoMapOptions\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { setAutoMapOptionsChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -6957,10 +6292,7 @@ class AutoMapViewApiSetup { } else { setAutoMapOptionsChannel.setMessageHandler(nil) } - let isMyLocationEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isMyLocationEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let isMyLocationEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isMyLocationEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { isMyLocationEnabledChannel.setMessageHandler { _, reply in do { @@ -6973,10 +6305,7 @@ class AutoMapViewApiSetup { } else { isMyLocationEnabledChannel.setMessageHandler(nil) } - let setMyLocationEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMyLocationEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let setMyLocationEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMyLocationEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { setMyLocationEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -6991,10 +6320,7 @@ class AutoMapViewApiSetup { } else { setMyLocationEnabledChannel.setMessageHandler(nil) } - let getMyLocationChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMyLocation\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let getMyLocationChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMyLocation\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { getMyLocationChannel.setMessageHandler { _, reply in do { @@ -7007,10 +6333,7 @@ class AutoMapViewApiSetup { } else { getMyLocationChannel.setMessageHandler(nil) } - let getMapTypeChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMapType\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let getMapTypeChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMapType\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { getMapTypeChannel.setMessageHandler { _, reply in do { @@ -7023,10 +6346,7 @@ class AutoMapViewApiSetup { } else { getMapTypeChannel.setMessageHandler(nil) } - let setMapTypeChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapType\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let setMapTypeChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapType\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { setMapTypeChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -7041,10 +6361,7 @@ class AutoMapViewApiSetup { } else { setMapTypeChannel.setMessageHandler(nil) } - let setMapStyleChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapStyle\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let setMapStyleChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapStyle\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { setMapStyleChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -7059,10 +6376,7 @@ class AutoMapViewApiSetup { } else { setMapStyleChannel.setMessageHandler(nil) } - let getCameraPositionChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getCameraPosition\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let getCameraPositionChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getCameraPosition\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { getCameraPositionChannel.setMessageHandler { _, reply in do { @@ -7075,10 +6389,7 @@ class AutoMapViewApiSetup { } else { getCameraPositionChannel.setMessageHandler(nil) } - let getVisibleRegionChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getVisibleRegion\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let getVisibleRegionChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getVisibleRegion\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { getVisibleRegionChannel.setMessageHandler { _, reply in do { @@ -7091,10 +6402,7 @@ class AutoMapViewApiSetup { } else { getVisibleRegionChannel.setMessageHandler(nil) } - let followMyLocationChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.followMyLocation\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let followMyLocationChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.followMyLocation\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { followMyLocationChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -7110,17 +6418,13 @@ class AutoMapViewApiSetup { } else { followMyLocationChannel.setMessageHandler(nil) } - let animateCameraToCameraPositionChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToCameraPosition\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let animateCameraToCameraPositionChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToCameraPosition\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { animateCameraToCameraPositionChannel.setMessageHandler { message, reply in let args = message as! [Any?] let cameraPositionArg = args[0] as! CameraPositionDto let durationArg: Int64? = nilOrValue(args[1]) - api.animateCameraToCameraPosition(cameraPosition: cameraPositionArg, duration: durationArg) - { result in + api.animateCameraToCameraPosition(cameraPosition: cameraPositionArg, duration: durationArg) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -7132,10 +6436,7 @@ class AutoMapViewApiSetup { } else { animateCameraToCameraPositionChannel.setMessageHandler(nil) } - let animateCameraToLatLngChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLng\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let animateCameraToLatLngChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLng\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { animateCameraToLatLngChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -7153,19 +6454,14 @@ class AutoMapViewApiSetup { } else { animateCameraToLatLngChannel.setMessageHandler(nil) } - let animateCameraToLatLngBoundsChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLngBounds\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let animateCameraToLatLngBoundsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLngBounds\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { animateCameraToLatLngBoundsChannel.setMessageHandler { message, reply in let args = message as! [Any?] let boundsArg = args[0] as! LatLngBoundsDto let paddingArg = args[1] as! Double let durationArg: Int64? = nilOrValue(args[2]) - api.animateCameraToLatLngBounds( - bounds: boundsArg, padding: paddingArg, duration: durationArg - ) { result in + api.animateCameraToLatLngBounds(bounds: boundsArg, padding: paddingArg, duration: durationArg) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -7177,18 +6473,14 @@ class AutoMapViewApiSetup { } else { animateCameraToLatLngBoundsChannel.setMessageHandler(nil) } - let animateCameraToLatLngZoomChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLngZoom\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let animateCameraToLatLngZoomChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLngZoom\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { animateCameraToLatLngZoomChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pointArg = args[0] as! LatLngDto let zoomArg = args[1] as! Double let durationArg: Int64? = nilOrValue(args[2]) - api.animateCameraToLatLngZoom(point: pointArg, zoom: zoomArg, duration: durationArg) { - result in + api.animateCameraToLatLngZoom(point: pointArg, zoom: zoomArg, duration: durationArg) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -7200,19 +6492,14 @@ class AutoMapViewApiSetup { } else { animateCameraToLatLngZoomChannel.setMessageHandler(nil) } - let animateCameraByScrollChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraByScroll\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let animateCameraByScrollChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraByScroll\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { animateCameraByScrollChannel.setMessageHandler { message, reply in let args = message as! [Any?] let scrollByDxArg = args[0] as! Double let scrollByDyArg = args[1] as! Double let durationArg: Int64? = nilOrValue(args[2]) - api.animateCameraByScroll( - scrollByDx: scrollByDxArg, scrollByDy: scrollByDyArg, duration: durationArg - ) { result in + api.animateCameraByScroll(scrollByDx: scrollByDxArg, scrollByDy: scrollByDyArg, duration: durationArg) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -7224,10 +6511,7 @@ class AutoMapViewApiSetup { } else { animateCameraByScrollChannel.setMessageHandler(nil) } - let animateCameraByZoomChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraByZoom\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let animateCameraByZoomChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraByZoom\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { animateCameraByZoomChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -7235,9 +6519,7 @@ class AutoMapViewApiSetup { let focusDxArg: Double? = nilOrValue(args[1]) let focusDyArg: Double? = nilOrValue(args[2]) let durationArg: Int64? = nilOrValue(args[3]) - api.animateCameraByZoom( - zoomBy: zoomByArg, focusDx: focusDxArg, focusDy: focusDyArg, duration: durationArg - ) { result in + api.animateCameraByZoom(zoomBy: zoomByArg, focusDx: focusDxArg, focusDy: focusDyArg, duration: durationArg) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -7249,10 +6531,7 @@ class AutoMapViewApiSetup { } else { animateCameraByZoomChannel.setMessageHandler(nil) } - let animateCameraToZoomChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToZoom\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let animateCameraToZoomChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToZoom\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { animateCameraToZoomChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -7270,10 +6549,7 @@ class AutoMapViewApiSetup { } else { animateCameraToZoomChannel.setMessageHandler(nil) } - let moveCameraToCameraPositionChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToCameraPosition\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let moveCameraToCameraPositionChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToCameraPosition\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { moveCameraToCameraPositionChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -7288,10 +6564,7 @@ class AutoMapViewApiSetup { } else { moveCameraToCameraPositionChannel.setMessageHandler(nil) } - let moveCameraToLatLngChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLng\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let moveCameraToLatLngChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLng\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { moveCameraToLatLngChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -7306,10 +6579,7 @@ class AutoMapViewApiSetup { } else { moveCameraToLatLngChannel.setMessageHandler(nil) } - let moveCameraToLatLngBoundsChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLngBounds\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let moveCameraToLatLngBoundsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLngBounds\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { moveCameraToLatLngBoundsChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -7325,10 +6595,7 @@ class AutoMapViewApiSetup { } else { moveCameraToLatLngBoundsChannel.setMessageHandler(nil) } - let moveCameraToLatLngZoomChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLngZoom\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let moveCameraToLatLngZoomChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLngZoom\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { moveCameraToLatLngZoomChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -7344,10 +6611,7 @@ class AutoMapViewApiSetup { } else { moveCameraToLatLngZoomChannel.setMessageHandler(nil) } - let moveCameraByScrollChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraByScroll\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let moveCameraByScrollChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraByScroll\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { moveCameraByScrollChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -7363,10 +6627,7 @@ class AutoMapViewApiSetup { } else { moveCameraByScrollChannel.setMessageHandler(nil) } - let moveCameraByZoomChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraByZoom\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let moveCameraByZoomChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraByZoom\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { moveCameraByZoomChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -7383,10 +6644,7 @@ class AutoMapViewApiSetup { } else { moveCameraByZoomChannel.setMessageHandler(nil) } - let moveCameraToZoomChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToZoom\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let moveCameraToZoomChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToZoom\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { moveCameraToZoomChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -7401,10 +6659,7 @@ class AutoMapViewApiSetup { } else { moveCameraToZoomChannel.setMessageHandler(nil) } - let getMinZoomPreferenceChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMinZoomPreference\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let getMinZoomPreferenceChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMinZoomPreference\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { getMinZoomPreferenceChannel.setMessageHandler { _, reply in do { @@ -7417,10 +6672,7 @@ class AutoMapViewApiSetup { } else { getMinZoomPreferenceChannel.setMessageHandler(nil) } - let getMaxZoomPreferenceChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMaxZoomPreference\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let getMaxZoomPreferenceChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMaxZoomPreference\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { getMaxZoomPreferenceChannel.setMessageHandler { _, reply in do { @@ -7433,10 +6685,7 @@ class AutoMapViewApiSetup { } else { getMaxZoomPreferenceChannel.setMessageHandler(nil) } - let resetMinMaxZoomPreferenceChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.resetMinMaxZoomPreference\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let resetMinMaxZoomPreferenceChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.resetMinMaxZoomPreference\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { resetMinMaxZoomPreferenceChannel.setMessageHandler { _, reply in do { @@ -7449,10 +6698,7 @@ class AutoMapViewApiSetup { } else { resetMinMaxZoomPreferenceChannel.setMessageHandler(nil) } - let setMinZoomPreferenceChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMinZoomPreference\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let setMinZoomPreferenceChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMinZoomPreference\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { setMinZoomPreferenceChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -7467,10 +6713,7 @@ class AutoMapViewApiSetup { } else { setMinZoomPreferenceChannel.setMessageHandler(nil) } - let setMaxZoomPreferenceChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMaxZoomPreference\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let setMaxZoomPreferenceChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMaxZoomPreference\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { setMaxZoomPreferenceChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -7485,10 +6728,7 @@ class AutoMapViewApiSetup { } else { setMaxZoomPreferenceChannel.setMessageHandler(nil) } - let setMyLocationButtonEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMyLocationButtonEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let setMyLocationButtonEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMyLocationButtonEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { setMyLocationButtonEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -7503,10 +6743,7 @@ class AutoMapViewApiSetup { } else { setMyLocationButtonEnabledChannel.setMessageHandler(nil) } - let setConsumeMyLocationButtonClickEventsEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setConsumeMyLocationButtonClickEventsEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let setConsumeMyLocationButtonClickEventsEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setConsumeMyLocationButtonClickEventsEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { setConsumeMyLocationButtonClickEventsEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -7521,10 +6758,7 @@ class AutoMapViewApiSetup { } else { setConsumeMyLocationButtonClickEventsEnabledChannel.setMessageHandler(nil) } - let setZoomGesturesEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setZoomGesturesEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let setZoomGesturesEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setZoomGesturesEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { setZoomGesturesEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -7539,10 +6773,7 @@ class AutoMapViewApiSetup { } else { setZoomGesturesEnabledChannel.setMessageHandler(nil) } - let setZoomControlsEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setZoomControlsEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let setZoomControlsEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setZoomControlsEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { setZoomControlsEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -7557,10 +6788,7 @@ class AutoMapViewApiSetup { } else { setZoomControlsEnabledChannel.setMessageHandler(nil) } - let setCompassEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setCompassEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let setCompassEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setCompassEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { setCompassEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -7575,10 +6803,7 @@ class AutoMapViewApiSetup { } else { setCompassEnabledChannel.setMessageHandler(nil) } - let setRotateGesturesEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setRotateGesturesEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let setRotateGesturesEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setRotateGesturesEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { setRotateGesturesEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -7593,10 +6818,7 @@ class AutoMapViewApiSetup { } else { setRotateGesturesEnabledChannel.setMessageHandler(nil) } - let setScrollGesturesEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setScrollGesturesEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let setScrollGesturesEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setScrollGesturesEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { setScrollGesturesEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -7611,10 +6833,7 @@ class AutoMapViewApiSetup { } else { setScrollGesturesEnabledChannel.setMessageHandler(nil) } - let setScrollGesturesDuringRotateOrZoomEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setScrollGesturesDuringRotateOrZoomEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let setScrollGesturesDuringRotateOrZoomEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setScrollGesturesDuringRotateOrZoomEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { setScrollGesturesDuringRotateOrZoomEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -7629,10 +6848,7 @@ class AutoMapViewApiSetup { } else { setScrollGesturesDuringRotateOrZoomEnabledChannel.setMessageHandler(nil) } - let setTiltGesturesEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTiltGesturesEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let setTiltGesturesEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTiltGesturesEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { setTiltGesturesEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -7647,10 +6863,7 @@ class AutoMapViewApiSetup { } else { setTiltGesturesEnabledChannel.setMessageHandler(nil) } - let setMapToolbarEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapToolbarEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let setMapToolbarEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapToolbarEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { setMapToolbarEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -7665,10 +6878,7 @@ class AutoMapViewApiSetup { } else { setMapToolbarEnabledChannel.setMessageHandler(nil) } - let setTrafficEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let setTrafficEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { setTrafficEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -7683,10 +6893,7 @@ class AutoMapViewApiSetup { } else { setTrafficEnabledChannel.setMessageHandler(nil) } - let setTrafficPromptsEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficPromptsEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let setTrafficPromptsEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficPromptsEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { setTrafficPromptsEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -7701,10 +6908,7 @@ class AutoMapViewApiSetup { } else { setTrafficPromptsEnabledChannel.setMessageHandler(nil) } - let setTrafficIncidentCardsEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficIncidentCardsEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let setTrafficIncidentCardsEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficIncidentCardsEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { setTrafficIncidentCardsEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -7719,10 +6923,7 @@ class AutoMapViewApiSetup { } else { setTrafficIncidentCardsEnabledChannel.setMessageHandler(nil) } - let setNavigationTripProgressBarEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setNavigationTripProgressBarEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let setNavigationTripProgressBarEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setNavigationTripProgressBarEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { setNavigationTripProgressBarEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -7737,10 +6938,7 @@ class AutoMapViewApiSetup { } else { setNavigationTripProgressBarEnabledChannel.setMessageHandler(nil) } - let setSpeedLimitIconEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setSpeedLimitIconEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let setSpeedLimitIconEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setSpeedLimitIconEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { setSpeedLimitIconEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -7755,10 +6953,7 @@ class AutoMapViewApiSetup { } else { setSpeedLimitIconEnabledChannel.setMessageHandler(nil) } - let setSpeedometerEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setSpeedometerEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let setSpeedometerEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setSpeedometerEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { setSpeedometerEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -7773,10 +6968,7 @@ class AutoMapViewApiSetup { } else { setSpeedometerEnabledChannel.setMessageHandler(nil) } - let setNavigationUIEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setNavigationUIEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let setNavigationUIEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setNavigationUIEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { setNavigationUIEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -7791,10 +6983,7 @@ class AutoMapViewApiSetup { } else { setNavigationUIEnabledChannel.setMessageHandler(nil) } - let isMyLocationButtonEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isMyLocationButtonEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let isMyLocationButtonEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isMyLocationButtonEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { isMyLocationButtonEnabledChannel.setMessageHandler { _, reply in do { @@ -7807,10 +6996,7 @@ class AutoMapViewApiSetup { } else { isMyLocationButtonEnabledChannel.setMessageHandler(nil) } - let isConsumeMyLocationButtonClickEventsEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isConsumeMyLocationButtonClickEventsEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let isConsumeMyLocationButtonClickEventsEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isConsumeMyLocationButtonClickEventsEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { isConsumeMyLocationButtonClickEventsEnabledChannel.setMessageHandler { _, reply in do { @@ -7823,10 +7009,7 @@ class AutoMapViewApiSetup { } else { isConsumeMyLocationButtonClickEventsEnabledChannel.setMessageHandler(nil) } - let isZoomGesturesEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isZoomGesturesEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let isZoomGesturesEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isZoomGesturesEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { isZoomGesturesEnabledChannel.setMessageHandler { _, reply in do { @@ -7839,10 +7022,7 @@ class AutoMapViewApiSetup { } else { isZoomGesturesEnabledChannel.setMessageHandler(nil) } - let isZoomControlsEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isZoomControlsEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let isZoomControlsEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isZoomControlsEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { isZoomControlsEnabledChannel.setMessageHandler { _, reply in do { @@ -7855,10 +7035,7 @@ class AutoMapViewApiSetup { } else { isZoomControlsEnabledChannel.setMessageHandler(nil) } - let isCompassEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isCompassEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let isCompassEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isCompassEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { isCompassEnabledChannel.setMessageHandler { _, reply in do { @@ -7871,10 +7048,7 @@ class AutoMapViewApiSetup { } else { isCompassEnabledChannel.setMessageHandler(nil) } - let isRotateGesturesEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isRotateGesturesEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let isRotateGesturesEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isRotateGesturesEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { isRotateGesturesEnabledChannel.setMessageHandler { _, reply in do { @@ -7887,10 +7061,7 @@ class AutoMapViewApiSetup { } else { isRotateGesturesEnabledChannel.setMessageHandler(nil) } - let isScrollGesturesEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isScrollGesturesEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let isScrollGesturesEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isScrollGesturesEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { isScrollGesturesEnabledChannel.setMessageHandler { _, reply in do { @@ -7903,10 +7074,7 @@ class AutoMapViewApiSetup { } else { isScrollGesturesEnabledChannel.setMessageHandler(nil) } - let isScrollGesturesEnabledDuringRotateOrZoomChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isScrollGesturesEnabledDuringRotateOrZoom\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let isScrollGesturesEnabledDuringRotateOrZoomChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isScrollGesturesEnabledDuringRotateOrZoom\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { isScrollGesturesEnabledDuringRotateOrZoomChannel.setMessageHandler { _, reply in do { @@ -7919,10 +7087,7 @@ class AutoMapViewApiSetup { } else { isScrollGesturesEnabledDuringRotateOrZoomChannel.setMessageHandler(nil) } - let isTiltGesturesEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTiltGesturesEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let isTiltGesturesEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTiltGesturesEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { isTiltGesturesEnabledChannel.setMessageHandler { _, reply in do { @@ -7935,10 +7100,7 @@ class AutoMapViewApiSetup { } else { isTiltGesturesEnabledChannel.setMessageHandler(nil) } - let isMapToolbarEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isMapToolbarEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let isMapToolbarEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isMapToolbarEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { isMapToolbarEnabledChannel.setMessageHandler { _, reply in do { @@ -7951,10 +7113,7 @@ class AutoMapViewApiSetup { } else { isMapToolbarEnabledChannel.setMessageHandler(nil) } - let isTrafficEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTrafficEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let isTrafficEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTrafficEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { isTrafficEnabledChannel.setMessageHandler { _, reply in do { @@ -7967,10 +7126,7 @@ class AutoMapViewApiSetup { } else { isTrafficEnabledChannel.setMessageHandler(nil) } - let isTrafficPromptsEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTrafficPromptsEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let isTrafficPromptsEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTrafficPromptsEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { isTrafficPromptsEnabledChannel.setMessageHandler { _, reply in do { @@ -7983,10 +7139,7 @@ class AutoMapViewApiSetup { } else { isTrafficPromptsEnabledChannel.setMessageHandler(nil) } - let isTrafficIncidentCardsEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTrafficIncidentCardsEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let isTrafficIncidentCardsEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTrafficIncidentCardsEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { isTrafficIncidentCardsEnabledChannel.setMessageHandler { _, reply in do { @@ -7999,10 +7152,7 @@ class AutoMapViewApiSetup { } else { isTrafficIncidentCardsEnabledChannel.setMessageHandler(nil) } - let isNavigationTripProgressBarEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isNavigationTripProgressBarEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let isNavigationTripProgressBarEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isNavigationTripProgressBarEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { isNavigationTripProgressBarEnabledChannel.setMessageHandler { _, reply in do { @@ -8015,10 +7165,7 @@ class AutoMapViewApiSetup { } else { isNavigationTripProgressBarEnabledChannel.setMessageHandler(nil) } - let isSpeedLimitIconEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isSpeedLimitIconEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let isSpeedLimitIconEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isSpeedLimitIconEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { isSpeedLimitIconEnabledChannel.setMessageHandler { _, reply in do { @@ -8031,10 +7178,7 @@ class AutoMapViewApiSetup { } else { isSpeedLimitIconEnabledChannel.setMessageHandler(nil) } - let isSpeedometerEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isSpeedometerEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let isSpeedometerEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isSpeedometerEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { isSpeedometerEnabledChannel.setMessageHandler { _, reply in do { @@ -8047,10 +7191,7 @@ class AutoMapViewApiSetup { } else { isSpeedometerEnabledChannel.setMessageHandler(nil) } - let isNavigationUIEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isNavigationUIEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let isNavigationUIEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isNavigationUIEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { isNavigationUIEnabledChannel.setMessageHandler { _, reply in do { @@ -8063,10 +7204,7 @@ class AutoMapViewApiSetup { } else { isNavigationUIEnabledChannel.setMessageHandler(nil) } - let isIndoorEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isIndoorEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let isIndoorEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isIndoorEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { isIndoorEnabledChannel.setMessageHandler { _, reply in do { @@ -8079,10 +7217,7 @@ class AutoMapViewApiSetup { } else { isIndoorEnabledChannel.setMessageHandler(nil) } - let setIndoorEnabledChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setIndoorEnabled\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let setIndoorEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setIndoorEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { setIndoorEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -8097,10 +7232,7 @@ class AutoMapViewApiSetup { } else { setIndoorEnabledChannel.setMessageHandler(nil) } - let getFocusedIndoorBuildingChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getFocusedIndoorBuilding\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let getFocusedIndoorBuildingChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getFocusedIndoorBuilding\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { getFocusedIndoorBuildingChannel.setMessageHandler { _, reply in do { @@ -8113,10 +7245,7 @@ class AutoMapViewApiSetup { } else { getFocusedIndoorBuildingChannel.setMessageHandler(nil) } - let activateIndoorLevelChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.activateIndoorLevel\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let activateIndoorLevelChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.activateIndoorLevel\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { activateIndoorLevelChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -8131,10 +7260,7 @@ class AutoMapViewApiSetup { } else { activateIndoorLevelChannel.setMessageHandler(nil) } - let showRouteOverviewChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.showRouteOverview\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let showRouteOverviewChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.showRouteOverview\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { showRouteOverviewChannel.setMessageHandler { _, reply in do { @@ -8147,10 +7273,7 @@ class AutoMapViewApiSetup { } else { showRouteOverviewChannel.setMessageHandler(nil) } - let getMarkersChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMarkers\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let getMarkersChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMarkers\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { getMarkersChannel.setMessageHandler { _, reply in do { @@ -8163,10 +7286,7 @@ class AutoMapViewApiSetup { } else { getMarkersChannel.setMessageHandler(nil) } - let addMarkersChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addMarkers\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let addMarkersChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addMarkers\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { addMarkersChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -8181,10 +7301,7 @@ class AutoMapViewApiSetup { } else { addMarkersChannel.setMessageHandler(nil) } - let updateMarkersChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updateMarkers\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let updateMarkersChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updateMarkers\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { updateMarkersChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -8199,10 +7316,7 @@ class AutoMapViewApiSetup { } else { updateMarkersChannel.setMessageHandler(nil) } - let removeMarkersChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removeMarkers\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let removeMarkersChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removeMarkers\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { removeMarkersChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -8217,10 +7331,7 @@ class AutoMapViewApiSetup { } else { removeMarkersChannel.setMessageHandler(nil) } - let clearMarkersChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearMarkers\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let clearMarkersChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearMarkers\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { clearMarkersChannel.setMessageHandler { _, reply in do { @@ -8233,9 +7344,7 @@ class AutoMapViewApiSetup { } else { clearMarkersChannel.setMessageHandler(nil) } - let clearChannel = FlutterBasicMessageChannel( - name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clear\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let clearChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clear\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { clearChannel.setMessageHandler { _, reply in do { @@ -8248,10 +7357,7 @@ class AutoMapViewApiSetup { } else { clearChannel.setMessageHandler(nil) } - let getPolygonsChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getPolygons\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let getPolygonsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getPolygons\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { getPolygonsChannel.setMessageHandler { _, reply in do { @@ -8264,10 +7370,7 @@ class AutoMapViewApiSetup { } else { getPolygonsChannel.setMessageHandler(nil) } - let addPolygonsChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addPolygons\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let addPolygonsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addPolygons\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { addPolygonsChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -8282,10 +7385,7 @@ class AutoMapViewApiSetup { } else { addPolygonsChannel.setMessageHandler(nil) } - let updatePolygonsChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updatePolygons\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let updatePolygonsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updatePolygons\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { updatePolygonsChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -8300,10 +7400,7 @@ class AutoMapViewApiSetup { } else { updatePolygonsChannel.setMessageHandler(nil) } - let removePolygonsChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removePolygons\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let removePolygonsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removePolygons\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { removePolygonsChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -8318,10 +7415,7 @@ class AutoMapViewApiSetup { } else { removePolygonsChannel.setMessageHandler(nil) } - let clearPolygonsChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearPolygons\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let clearPolygonsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearPolygons\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { clearPolygonsChannel.setMessageHandler { _, reply in do { @@ -8334,10 +7428,7 @@ class AutoMapViewApiSetup { } else { clearPolygonsChannel.setMessageHandler(nil) } - let getPolylinesChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getPolylines\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let getPolylinesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getPolylines\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { getPolylinesChannel.setMessageHandler { _, reply in do { @@ -8350,10 +7441,7 @@ class AutoMapViewApiSetup { } else { getPolylinesChannel.setMessageHandler(nil) } - let addPolylinesChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addPolylines\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let addPolylinesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addPolylines\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { addPolylinesChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -8368,10 +7456,7 @@ class AutoMapViewApiSetup { } else { addPolylinesChannel.setMessageHandler(nil) } - let updatePolylinesChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updatePolylines\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let updatePolylinesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updatePolylines\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { updatePolylinesChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -8386,10 +7471,7 @@ class AutoMapViewApiSetup { } else { updatePolylinesChannel.setMessageHandler(nil) } - let removePolylinesChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removePolylines\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let removePolylinesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removePolylines\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { removePolylinesChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -8404,10 +7486,7 @@ class AutoMapViewApiSetup { } else { removePolylinesChannel.setMessageHandler(nil) } - let clearPolylinesChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearPolylines\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let clearPolylinesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearPolylines\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { clearPolylinesChannel.setMessageHandler { _, reply in do { @@ -8420,10 +7499,7 @@ class AutoMapViewApiSetup { } else { clearPolylinesChannel.setMessageHandler(nil) } - let getCirclesChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getCircles\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let getCirclesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getCircles\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { getCirclesChannel.setMessageHandler { _, reply in do { @@ -8436,10 +7512,7 @@ class AutoMapViewApiSetup { } else { getCirclesChannel.setMessageHandler(nil) } - let addCirclesChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addCircles\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let addCirclesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addCircles\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { addCirclesChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -8454,10 +7527,7 @@ class AutoMapViewApiSetup { } else { addCirclesChannel.setMessageHandler(nil) } - let updateCirclesChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updateCircles\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let updateCirclesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updateCircles\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { updateCirclesChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -8472,10 +7542,7 @@ class AutoMapViewApiSetup { } else { updateCirclesChannel.setMessageHandler(nil) } - let removeCirclesChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removeCircles\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let removeCirclesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removeCircles\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { removeCirclesChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -8490,10 +7557,7 @@ class AutoMapViewApiSetup { } else { removeCirclesChannel.setMessageHandler(nil) } - let clearCirclesChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearCircles\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let clearCirclesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearCircles\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { clearCirclesChannel.setMessageHandler { _, reply in do { @@ -8506,10 +7570,7 @@ class AutoMapViewApiSetup { } else { clearCirclesChannel.setMessageHandler(nil) } - let enableOnCameraChangedEventsChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.enableOnCameraChangedEvents\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let enableOnCameraChangedEventsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.enableOnCameraChangedEvents\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { enableOnCameraChangedEventsChannel.setMessageHandler { _, reply in do { @@ -8522,10 +7583,7 @@ class AutoMapViewApiSetup { } else { enableOnCameraChangedEventsChannel.setMessageHandler(nil) } - let isAutoScreenAvailableChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isAutoScreenAvailable\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let isAutoScreenAvailableChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isAutoScreenAvailable\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { isAutoScreenAvailableChannel.setMessageHandler { _, reply in do { @@ -8538,10 +7596,7 @@ class AutoMapViewApiSetup { } else { isAutoScreenAvailableChannel.setMessageHandler(nil) } - let setPaddingChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setPadding\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let setPaddingChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setPadding\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { setPaddingChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -8556,10 +7611,7 @@ class AutoMapViewApiSetup { } else { setPaddingChannel.setMessageHandler(nil) } - let getPaddingChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getPadding\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let getPaddingChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getPadding\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { getPaddingChannel.setMessageHandler { _, reply in do { @@ -8572,10 +7624,7 @@ class AutoMapViewApiSetup { } else { getPaddingChannel.setMessageHandler(nil) } - let getMapColorSchemeChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMapColorScheme\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let getMapColorSchemeChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMapColorScheme\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { getMapColorSchemeChannel.setMessageHandler { _, reply in do { @@ -8588,10 +7637,7 @@ class AutoMapViewApiSetup { } else { getMapColorSchemeChannel.setMessageHandler(nil) } - let setMapColorSchemeChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapColorScheme\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let setMapColorSchemeChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapColorScheme\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { setMapColorSchemeChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -8606,10 +7652,7 @@ class AutoMapViewApiSetup { } else { setMapColorSchemeChannel.setMessageHandler(nil) } - let getForceNightModeChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getForceNightMode\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let getForceNightModeChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getForceNightMode\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { getForceNightModeChannel.setMessageHandler { _, reply in do { @@ -8622,10 +7665,7 @@ class AutoMapViewApiSetup { } else { getForceNightModeChannel.setMessageHandler(nil) } - let setForceNightModeChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setForceNightMode\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let setForceNightModeChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setForceNightMode\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { setForceNightModeChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -8640,10 +7680,7 @@ class AutoMapViewApiSetup { } else { setForceNightModeChannel.setMessageHandler(nil) } - let sendCustomNavigationAutoEventChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.sendCustomNavigationAutoEvent\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let sendCustomNavigationAutoEventChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.sendCustomNavigationAutoEvent\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { sendCustomNavigationAutoEventChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -8663,22 +7700,12 @@ class AutoMapViewApiSetup { } /// Generated protocol from Pigeon that represents Flutter messages that can be called from Swift. protocol AutoViewEventApiProtocol { - func onCustomNavigationAutoEvent( - event eventArg: String, data dataArg: Any, - completion: @escaping (Result) -> Void) - func onAutoScreenAvailabilityChanged( - isAvailable isAvailableArg: Bool, completion: @escaping (Result) -> Void) - func onPromptVisibilityChanged( - promptVisible promptVisibleArg: Bool, completion: @escaping (Result) -> Void) - func onNavigationUIEnabledChanged( - navigationUIEnabled navigationUIEnabledArg: Bool, - completion: @escaping (Result) -> Void) - func onIndoorFocusedBuildingChanged( - building buildingArg: IndoorBuildingDto?, - completion: @escaping (Result) -> Void) - func onIndoorActiveLevelChanged( - building buildingArg: IndoorBuildingDto?, - completion: @escaping (Result) -> Void) + func onCustomNavigationAutoEvent(event eventArg: String, data dataArg: Any, completion: @escaping (Result) -> Void) + func onAutoScreenAvailabilityChanged(isAvailable isAvailableArg: Bool, completion: @escaping (Result) -> Void) + func onPromptVisibilityChanged(promptVisible promptVisibleArg: Bool, completion: @escaping (Result) -> Void) + func onNavigationUIEnabledChanged(navigationUIEnabled navigationUIEnabledArg: Bool, completion: @escaping (Result) -> Void) + func onIndoorFocusedBuildingChanged(building buildingArg: IndoorBuildingDto?, completion: @escaping (Result) -> Void) + func onIndoorActiveLevelChanged(building buildingArg: IndoorBuildingDto?, completion: @escaping (Result) -> Void) } class AutoViewEventApi: AutoViewEventApiProtocol { private let binaryMessenger: FlutterBinaryMessenger @@ -8690,14 +7717,9 @@ class AutoViewEventApi: AutoViewEventApiProtocol { var codec: MessagesPigeonCodec { return MessagesPigeonCodec.shared } - func onCustomNavigationAutoEvent( - event eventArg: String, data dataArg: Any, - completion: @escaping (Result) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onCustomNavigationAutoEvent\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func onCustomNavigationAutoEvent(event eventArg: String, data dataArg: Any, completion: @escaping (Result) -> Void) { + let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onCustomNavigationAutoEvent\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([eventArg, dataArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -8713,13 +7735,9 @@ class AutoViewEventApi: AutoViewEventApiProtocol { } } } - func onAutoScreenAvailabilityChanged( - isAvailable isAvailableArg: Bool, completion: @escaping (Result) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onAutoScreenAvailabilityChanged\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func onAutoScreenAvailabilityChanged(isAvailable isAvailableArg: Bool, completion: @escaping (Result) -> Void) { + let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onAutoScreenAvailabilityChanged\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([isAvailableArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -8735,13 +7753,9 @@ class AutoViewEventApi: AutoViewEventApiProtocol { } } } - func onPromptVisibilityChanged( - promptVisible promptVisibleArg: Bool, completion: @escaping (Result) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onPromptVisibilityChanged\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func onPromptVisibilityChanged(promptVisible promptVisibleArg: Bool, completion: @escaping (Result) -> Void) { + let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onPromptVisibilityChanged\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([promptVisibleArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -8757,14 +7771,9 @@ class AutoViewEventApi: AutoViewEventApiProtocol { } } } - func onNavigationUIEnabledChanged( - navigationUIEnabled navigationUIEnabledArg: Bool, - completion: @escaping (Result) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onNavigationUIEnabledChanged\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func onNavigationUIEnabledChanged(navigationUIEnabled navigationUIEnabledArg: Bool, completion: @escaping (Result) -> Void) { + let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onNavigationUIEnabledChanged\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([navigationUIEnabledArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -8780,14 +7789,9 @@ class AutoViewEventApi: AutoViewEventApiProtocol { } } } - func onIndoorFocusedBuildingChanged( - building buildingArg: IndoorBuildingDto?, - completion: @escaping (Result) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onIndoorFocusedBuildingChanged\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func onIndoorFocusedBuildingChanged(building buildingArg: IndoorBuildingDto?, completion: @escaping (Result) -> Void) { + let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onIndoorFocusedBuildingChanged\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([buildingArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -8803,14 +7807,9 @@ class AutoViewEventApi: AutoViewEventApiProtocol { } } } - func onIndoorActiveLevelChanged( - building buildingArg: IndoorBuildingDto?, - completion: @escaping (Result) -> Void - ) { - let channelName: String = - "dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onIndoorActiveLevelChanged\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel( - name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func onIndoorActiveLevelChanged(building buildingArg: IndoorBuildingDto?, completion: @escaping (Result) -> Void) { + let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onIndoorActiveLevelChanged\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([buildingArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -8836,15 +7835,9 @@ protocol NavigationInspector { class NavigationInspectorSetup { static var codec: FlutterStandardMessageCodec { MessagesPigeonCodec.shared } /// Sets up an instance of `NavigationInspector` to handle messages through the `binaryMessenger`. - static func setUp( - binaryMessenger: FlutterBinaryMessenger, api: NavigationInspector?, - messageChannelSuffix: String = "" - ) { + static func setUp(binaryMessenger: FlutterBinaryMessenger, api: NavigationInspector?, messageChannelSuffix: String = "") { let channelSuffix = messageChannelSuffix.count > 0 ? ".\(messageChannelSuffix)" : "" - let isViewAttachedToSessionChannel = FlutterBasicMessageChannel( - name: - "dev.flutter.pigeon.google_navigation_flutter.NavigationInspector.isViewAttachedToSession\(channelSuffix)", - binaryMessenger: binaryMessenger, codec: codec) + let isViewAttachedToSessionChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationInspector.isViewAttachedToSession\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) if let api = api { isViewAttachedToSessionChannel.setMessageHandler { message, reply in let args = message as! [Any?] diff --git a/lib/src/google_maps_navigation_view_controller.dart b/lib/src/google_maps_navigation_view_controller.dart index 79f93adf..f8a7654f 100644 --- a/lib/src/google_maps_navigation_view_controller.dart +++ b/lib/src/google_maps_navigation_view_controller.dart @@ -51,15 +51,15 @@ class GoogleNavigationViewController extends GoogleMapViewController { .isNavigationHeaderEnabled(viewId: getViewId()); } - /// Returns the native navigation header background colors. + /// Returns the native navigation header styling options. Future getNavigationHeaderStylingOptions() { return GoogleMapsNavigationPlatform.instance.viewAPI .getNavigationHeaderStylingOptions(viewId: getViewId()); } - /// Sets the native navigation header background colors. + /// Sets the native navigation header styling options. /// - /// Any null color resets that specific color to the native SDK default. + /// Any null field resets that specific option to the native SDK default. Future setNavigationHeaderStylingOptions( NavigationHeaderStylingOptions stylingOptions, ) { diff --git a/lib/src/method_channel/convert/navigation.dart b/lib/src/method_channel/convert/navigation.dart index ec4ca94d..f7491e54 100644 --- a/lib/src/method_channel/convert/navigation.dart +++ b/lib/src/method_channel/convert/navigation.dart @@ -242,6 +242,32 @@ extension ConvertNavigationHeaderStylingOptionsDto secondaryNightModeBackgroundColor != null ? Color(secondaryNightModeBackgroundColor!) : null, + largeManeuverIconColor: largeManeuverIconColor != null + ? Color(largeManeuverIconColor!) + : null, + smallManeuverIconColor: smallManeuverIconColor != null + ? Color(smallManeuverIconColor!) + : null, + nextStepTextColor: nextStepTextColor != null + ? Color(nextStepTextColor!) + : null, + nextStepTextSize: nextStepTextSize, + distanceValueTextColor: distanceValueTextColor != null + ? Color(distanceValueTextColor!) + : null, + distanceUnitsTextColor: distanceUnitsTextColor != null + ? Color(distanceUnitsTextColor!) + : null, + distanceValueTextSize: distanceValueTextSize, + distanceUnitsTextSize: distanceUnitsTextSize, + instructionsTextColor: instructionsTextColor != null + ? Color(instructionsTextColor!) + : null, + instructionsFirstRowTextSize: instructionsFirstRowTextSize, + instructionsSecondRowTextSize: instructionsSecondRowTextSize, + guidanceRecommendedLaneColor: guidanceRecommendedLaneColor != null + ? Color(guidanceRecommendedLaneColor!) + : null, ); } } diff --git a/lib/src/method_channel/map_view_api.dart b/lib/src/method_channel/map_view_api.dart index 52fd2cae..65bedcd9 100644 --- a/lib/src/method_channel/map_view_api.dart +++ b/lib/src/method_channel/map_view_api.dart @@ -525,7 +525,7 @@ class MapViewAPIImpl { Future isNavigationHeaderEnabled({required int viewId}) => _viewApi.isNavigationHeaderEnabled(viewId).wrapPlatformException(); - /// Gets the navigation header background colors. + /// Gets the navigation header styling options. Future getNavigationHeaderStylingOptions({ required int viewId, }) async { @@ -535,7 +535,7 @@ class MapViewAPIImpl { return stylingOptions.toNavigationHeaderStylingOptions(); } - /// Sets the navigation header background colors. + /// Sets the navigation header styling options. Future setNavigationHeaderStylingOptions({ required int viewId, required NavigationHeaderStylingOptions stylingOptions, diff --git a/lib/src/method_channel/messages.g.dart b/lib/src/method_channel/messages.g.dart index 47cf362f..a51c55da 100644 --- a/lib/src/method_channel/messages.g.dart +++ b/lib/src/method_channel/messages.g.dart @@ -1815,16 +1815,31 @@ class MapPaddingDto { int get hashCode => Object.hashAll(_toList()); } -/// Navigation header background colors. +/// Navigation header styling options. /// /// All color values are 32-bit ARGB integers (format: 0xAARRGGBB). -/// Any null value resets that specific color to the native SDK default. +/// All text size values are logical pixels. +/// Any null value resets that specific field to the native SDK default. +/// +/// Text size fields are currently Android only and are ignored on iOS. class NavigationHeaderStylingOptionsDto { NavigationHeaderStylingOptionsDto({ this.primaryDayModeBackgroundColor, this.secondaryDayModeBackgroundColor, this.primaryNightModeBackgroundColor, this.secondaryNightModeBackgroundColor, + this.largeManeuverIconColor, + this.smallManeuverIconColor, + this.nextStepTextColor, + this.nextStepTextSize, + this.distanceValueTextColor, + this.distanceUnitsTextColor, + this.distanceValueTextSize, + this.distanceUnitsTextSize, + this.instructionsTextColor, + this.instructionsFirstRowTextSize, + this.instructionsSecondRowTextSize, + this.guidanceRecommendedLaneColor, }); int? primaryDayModeBackgroundColor; @@ -1835,12 +1850,48 @@ class NavigationHeaderStylingOptionsDto { int? secondaryNightModeBackgroundColor; + int? largeManeuverIconColor; + + int? smallManeuverIconColor; + + int? nextStepTextColor; + + double? nextStepTextSize; + + int? distanceValueTextColor; + + int? distanceUnitsTextColor; + + double? distanceValueTextSize; + + double? distanceUnitsTextSize; + + int? instructionsTextColor; + + double? instructionsFirstRowTextSize; + + double? instructionsSecondRowTextSize; + + int? guidanceRecommendedLaneColor; + List _toList() { return [ primaryDayModeBackgroundColor, secondaryDayModeBackgroundColor, primaryNightModeBackgroundColor, secondaryNightModeBackgroundColor, + largeManeuverIconColor, + smallManeuverIconColor, + nextStepTextColor, + nextStepTextSize, + distanceValueTextColor, + distanceUnitsTextColor, + distanceValueTextSize, + distanceUnitsTextSize, + instructionsTextColor, + instructionsFirstRowTextSize, + instructionsSecondRowTextSize, + guidanceRecommendedLaneColor, ]; } @@ -1855,6 +1906,18 @@ class NavigationHeaderStylingOptionsDto { secondaryDayModeBackgroundColor: result[1] as int?, primaryNightModeBackgroundColor: result[2] as int?, secondaryNightModeBackgroundColor: result[3] as int?, + largeManeuverIconColor: result[4] as int?, + smallManeuverIconColor: result[5] as int?, + nextStepTextColor: result[6] as int?, + nextStepTextSize: result[7] as double?, + distanceValueTextColor: result[8] as int?, + distanceUnitsTextColor: result[9] as int?, + distanceValueTextSize: result[10] as double?, + distanceUnitsTextSize: result[11] as double?, + instructionsTextColor: result[12] as int?, + instructionsFirstRowTextSize: result[13] as double?, + instructionsSecondRowTextSize: result[14] as double?, + guidanceRecommendedLaneColor: result[15] as int?, ); } diff --git a/lib/src/types/navigation_header_styling_options.dart b/lib/src/types/navigation_header_styling_options.dart index a37e63f3..9f3fdc06 100644 --- a/lib/src/types/navigation_header_styling_options.dart +++ b/lib/src/types/navigation_header_styling_options.dart @@ -16,7 +16,10 @@ import 'package:flutter/widgets.dart'; import '../method_channel/messages.g.dart'; -/// Background colors for the native navigation header. +/// Styling options for the native navigation header. +/// +/// Text size properties are currently supported on Android only. On iOS they +/// are ignored. /// {@category Navigation View} class NavigationHeaderStylingOptions { /// Creates navigation header styling options. @@ -25,6 +28,18 @@ class NavigationHeaderStylingOptions { this.secondaryDayModeBackgroundColor, this.primaryNightModeBackgroundColor, this.secondaryNightModeBackgroundColor, + this.largeManeuverIconColor, + this.smallManeuverIconColor, + this.nextStepTextColor, + this.nextStepTextSize, + this.distanceValueTextColor, + this.distanceUnitsTextColor, + this.distanceValueTextSize, + this.distanceUnitsTextSize, + this.instructionsTextColor, + this.instructionsFirstRowTextSize, + this.instructionsSecondRowTextSize, + this.guidanceRecommendedLaneColor, }); /// Background color of the primary header area in day mode. @@ -39,12 +54,70 @@ class NavigationHeaderStylingOptions { /// Background color of the secondary header area in night mode. final Color? secondaryNightModeBackgroundColor; + /// Color of the large maneuver icon in the header. + final Color? largeManeuverIconColor; + + /// Color of the small maneuver icon in the header. + final Color? smallManeuverIconColor; + + /// Color of the next-step text in the header. + final Color? nextStepTextColor; + + /// Size of the next-step text in logical pixels. + /// + /// Android only. Ignored on iOS. + final double? nextStepTextSize; + + /// Color of the distance value text in the header. + final Color? distanceValueTextColor; + + /// Color of the distance units text in the header. + final Color? distanceUnitsTextColor; + + /// Size of the distance value text in logical pixels. + /// + /// Android only. Ignored on iOS. + final double? distanceValueTextSize; + + /// Size of the distance units text in logical pixels. + /// + /// Android only. Ignored on iOS. + final double? distanceUnitsTextSize; + + /// Color of the instructions text in the header. + final Color? instructionsTextColor; + + /// Size of the first row of the instructions text in logical pixels. + /// + /// Android only. Ignored on iOS. + final double? instructionsFirstRowTextSize; + + /// Size of the second row of the instructions text in logical pixels. + /// + /// Android only. Ignored on iOS. + final double? instructionsSecondRowTextSize; + + /// Color of the recommended lane highlight in the header. + final Color? guidanceRecommendedLaneColor; + /// Returns a copy with selected fields replaced. NavigationHeaderStylingOptions copyWith({ Color? primaryDayModeBackgroundColor, Color? secondaryDayModeBackgroundColor, Color? primaryNightModeBackgroundColor, Color? secondaryNightModeBackgroundColor, + Color? largeManeuverIconColor, + Color? smallManeuverIconColor, + Color? nextStepTextColor, + double? nextStepTextSize, + Color? distanceValueTextColor, + Color? distanceUnitsTextColor, + double? distanceValueTextSize, + double? distanceUnitsTextSize, + Color? instructionsTextColor, + double? instructionsFirstRowTextSize, + double? instructionsSecondRowTextSize, + Color? guidanceRecommendedLaneColor, }) { return NavigationHeaderStylingOptions( primaryDayModeBackgroundColor: @@ -58,6 +131,28 @@ class NavigationHeaderStylingOptions { secondaryNightModeBackgroundColor: secondaryNightModeBackgroundColor ?? this.secondaryNightModeBackgroundColor, + largeManeuverIconColor: + largeManeuverIconColor ?? this.largeManeuverIconColor, + smallManeuverIconColor: + smallManeuverIconColor ?? this.smallManeuverIconColor, + nextStepTextColor: nextStepTextColor ?? this.nextStepTextColor, + nextStepTextSize: nextStepTextSize ?? this.nextStepTextSize, + distanceValueTextColor: + distanceValueTextColor ?? this.distanceValueTextColor, + distanceUnitsTextColor: + distanceUnitsTextColor ?? this.distanceUnitsTextColor, + distanceValueTextSize: + distanceValueTextSize ?? this.distanceValueTextSize, + distanceUnitsTextSize: + distanceUnitsTextSize ?? this.distanceUnitsTextSize, + instructionsTextColor: + instructionsTextColor ?? this.instructionsTextColor, + instructionsFirstRowTextSize: + instructionsFirstRowTextSize ?? this.instructionsFirstRowTextSize, + instructionsSecondRowTextSize: + instructionsSecondRowTextSize ?? this.instructionsSecondRowTextSize, + guidanceRecommendedLaneColor: + guidanceRecommendedLaneColor ?? this.guidanceRecommendedLaneColor, ); } @@ -71,6 +166,18 @@ class NavigationHeaderStylingOptions { ?.toARGB32(), secondaryNightModeBackgroundColor: secondaryNightModeBackgroundColor ?.toARGB32(), + largeManeuverIconColor: largeManeuverIconColor?.toARGB32(), + smallManeuverIconColor: smallManeuverIconColor?.toARGB32(), + nextStepTextColor: nextStepTextColor?.toARGB32(), + nextStepTextSize: nextStepTextSize, + distanceValueTextColor: distanceValueTextColor?.toARGB32(), + distanceUnitsTextColor: distanceUnitsTextColor?.toARGB32(), + distanceValueTextSize: distanceValueTextSize, + distanceUnitsTextSize: distanceUnitsTextSize, + instructionsTextColor: instructionsTextColor?.toARGB32(), + instructionsFirstRowTextSize: instructionsFirstRowTextSize, + instructionsSecondRowTextSize: instructionsSecondRowTextSize, + guidanceRecommendedLaneColor: guidanceRecommendedLaneColor?.toARGB32(), ); } @@ -87,7 +194,19 @@ class NavigationHeaderStylingOptions { other.primaryNightModeBackgroundColor == primaryNightModeBackgroundColor && other.secondaryNightModeBackgroundColor == - secondaryNightModeBackgroundColor; + secondaryNightModeBackgroundColor && + other.largeManeuverIconColor == largeManeuverIconColor && + other.smallManeuverIconColor == smallManeuverIconColor && + other.nextStepTextColor == nextStepTextColor && + other.nextStepTextSize == nextStepTextSize && + other.distanceValueTextColor == distanceValueTextColor && + other.distanceUnitsTextColor == distanceUnitsTextColor && + other.distanceValueTextSize == distanceValueTextSize && + other.distanceUnitsTextSize == distanceUnitsTextSize && + other.instructionsTextColor == instructionsTextColor && + other.instructionsFirstRowTextSize == instructionsFirstRowTextSize && + other.instructionsSecondRowTextSize == instructionsSecondRowTextSize && + other.guidanceRecommendedLaneColor == guidanceRecommendedLaneColor; } @override @@ -96,6 +215,18 @@ class NavigationHeaderStylingOptions { secondaryDayModeBackgroundColor, primaryNightModeBackgroundColor, secondaryNightModeBackgroundColor, + largeManeuverIconColor, + smallManeuverIconColor, + nextStepTextColor, + nextStepTextSize, + distanceValueTextColor, + distanceUnitsTextColor, + distanceValueTextSize, + distanceUnitsTextSize, + instructionsTextColor, + instructionsFirstRowTextSize, + instructionsSecondRowTextSize, + guidanceRecommendedLaneColor, ); @override @@ -104,7 +235,19 @@ class NavigationHeaderStylingOptions { 'primaryDayModeBackgroundColor: $primaryDayModeBackgroundColor, ' 'secondaryDayModeBackgroundColor: $secondaryDayModeBackgroundColor, ' 'primaryNightModeBackgroundColor: $primaryNightModeBackgroundColor, ' - 'secondaryNightModeBackgroundColor: $secondaryNightModeBackgroundColor' + 'secondaryNightModeBackgroundColor: $secondaryNightModeBackgroundColor, ' + 'largeManeuverIconColor: $largeManeuverIconColor, ' + 'smallManeuverIconColor: $smallManeuverIconColor, ' + 'nextStepTextColor: $nextStepTextColor, ' + 'nextStepTextSize: $nextStepTextSize, ' + 'distanceValueTextColor: $distanceValueTextColor, ' + 'distanceUnitsTextColor: $distanceUnitsTextColor, ' + 'distanceValueTextSize: $distanceValueTextSize, ' + 'distanceUnitsTextSize: $distanceUnitsTextSize, ' + 'instructionsTextColor: $instructionsTextColor, ' + 'instructionsFirstRowTextSize: $instructionsFirstRowTextSize, ' + 'instructionsSecondRowTextSize: $instructionsSecondRowTextSize, ' + 'guidanceRecommendedLaneColor: $guidanceRecommendedLaneColor' ')'; } } diff --git a/pigeons/messages.dart b/pigeons/messages.dart index 2a0ec6ed..ebb73411 100644 --- a/pigeons/messages.dart +++ b/pigeons/messages.dart @@ -525,22 +525,49 @@ class MapPaddingDto { final int right; } -/// Navigation header background colors. +/// Navigation header styling options. /// /// All color values are 32-bit ARGB integers (format: 0xAARRGGBB). -/// Any null value resets that specific color to the native SDK default. +/// All text size values are logical pixels. +/// Any null value resets that specific field to the native SDK default. +/// +/// Text size fields are currently Android only and are ignored on iOS. class NavigationHeaderStylingOptionsDto { NavigationHeaderStylingOptionsDto({ this.primaryDayModeBackgroundColor, this.secondaryDayModeBackgroundColor, this.primaryNightModeBackgroundColor, this.secondaryNightModeBackgroundColor, + this.largeManeuverIconColor, + this.smallManeuverIconColor, + this.nextStepTextColor, + this.nextStepTextSize, + this.distanceValueTextColor, + this.distanceUnitsTextColor, + this.distanceValueTextSize, + this.distanceUnitsTextSize, + this.instructionsTextColor, + this.instructionsFirstRowTextSize, + this.instructionsSecondRowTextSize, + this.guidanceRecommendedLaneColor, }); final int? primaryDayModeBackgroundColor; final int? secondaryDayModeBackgroundColor; final int? primaryNightModeBackgroundColor; final int? secondaryNightModeBackgroundColor; + final int? largeManeuverIconColor; + final int? smallManeuverIconColor; + final int? nextStepTextColor; + final double? nextStepTextSize; + final int? distanceValueTextColor; + final int? distanceUnitsTextColor; + final double? distanceValueTextSize; + final double? distanceUnitsTextSize; + final int? instructionsTextColor; + final double? instructionsFirstRowTextSize; + final double? instructionsSecondRowTextSize; + final int? guidanceRecommendedLaneColor; } @HostApi(dartHostTestHandler: 'TestMapViewApi') diff --git a/test/google_navigation_flutter_test.dart b/test/google_navigation_flutter_test.dart index dbac265e..1e8ad6f8 100644 --- a/test/google_navigation_flutter_test.dart +++ b/test/google_navigation_flutter_test.dart @@ -62,6 +62,16 @@ void main() { TestImageRegistryApi.setUp(imageRegistryMockApi); }); + T anyAs() { + // ignore: cast_from_null_always_fails + return any as T; + } + + T captureAnyAs() { + // ignore: cast_from_null_always_fails + return captureAny as T; + } + void verifyEnabled(VerificationResult result, bool enabled) { final bool enabledOut = result.captured[1] as bool; expect(enabledOut, enabled); @@ -690,16 +700,28 @@ void main() { ), ); when( - viewMockApi.isNavigationHeaderEnabled(any as int), + viewMockApi.isNavigationHeaderEnabled(anyAs()), ).thenReturn(true); when( - viewMockApi.getNavigationHeaderStylingOptions(any as int), + viewMockApi.getNavigationHeaderStylingOptions(anyAs()), ).thenReturn( NavigationHeaderStylingOptionsDto( primaryDayModeBackgroundColor: Colors.blue.toARGB32(), secondaryDayModeBackgroundColor: Colors.red.toARGB32(), primaryNightModeBackgroundColor: Colors.black.toARGB32(), secondaryNightModeBackgroundColor: Colors.grey.toARGB32(), + largeManeuverIconColor: Colors.orange.toARGB32(), + smallManeuverIconColor: Colors.pink.toARGB32(), + nextStepTextColor: Colors.yellow.toARGB32(), + nextStepTextSize: 18, + distanceValueTextColor: Colors.green.toARGB32(), + distanceUnitsTextColor: Colors.lime.toARGB32(), + distanceValueTextSize: 24, + distanceUnitsTextSize: 14, + instructionsTextColor: Colors.cyan.toARGB32(), + instructionsFirstRowTextSize: 30, + instructionsSecondRowTextSize: 20, + guidanceRecommendedLaneColor: Colors.teal.toARGB32(), ), ); when(viewMockApi.isNavigationFooterEnabled(any)).thenReturn(true); @@ -742,6 +764,18 @@ void main() { secondaryDayModeBackgroundColor: Colors.red, primaryNightModeBackgroundColor: Colors.black, secondaryNightModeBackgroundColor: Colors.grey, + largeManeuverIconColor: Colors.orange, + smallManeuverIconColor: Colors.pink, + nextStepTextColor: Colors.yellow, + nextStepTextSize: 18, + distanceValueTextColor: Colors.green, + distanceUnitsTextColor: Colors.lime, + distanceValueTextSize: 24, + distanceUnitsTextSize: 14, + instructionsTextColor: Colors.cyan, + instructionsFirstRowTextSize: 30, + instructionsSecondRowTextSize: 20, + guidanceRecommendedLaneColor: Colors.teal, ), ); expect(await controller.isNavigationFooterEnabled(), true); @@ -770,9 +804,9 @@ void main() { verify(viewMockApi.isIndoorLevelPickerEnabled(captureAny)); verify(viewMockApi.getFocusedIndoorBuilding(captureAny)); verify(viewMockApi.activateIndoorLevel(captureAny, captureAny)); - verify(viewMockApi.isNavigationHeaderEnabled(captureAny as int)); + verify(viewMockApi.isNavigationHeaderEnabled(captureAnyAs())); verify( - viewMockApi.getNavigationHeaderStylingOptions(captureAny as int), + viewMockApi.getNavigationHeaderStylingOptions(captureAnyAs()), ); verify(viewMockApi.isNavigationFooterEnabled(captureAny)); verify(viewMockApi.isSpeedLimitIconEnabled(captureAny)); @@ -806,6 +840,18 @@ void main() { secondaryDayModeBackgroundColor: Colors.orange, primaryNightModeBackgroundColor: Colors.white, secondaryNightModeBackgroundColor: Colors.purple, + largeManeuverIconColor: Colors.amber, + smallManeuverIconColor: Colors.deepOrange, + nextStepTextColor: Colors.brown, + nextStepTextSize: 19, + distanceValueTextColor: Colors.indigo, + distanceUnitsTextColor: Colors.deepPurple, + distanceValueTextSize: 25, + distanceUnitsTextSize: 15, + instructionsTextColor: Colors.lightBlue, + instructionsFirstRowTextSize: 31, + instructionsSecondRowTextSize: 21, + guidanceRecommendedLaneColor: Colors.lightGreen, ), ); await controller.setNavigationFooterEnabled(true); @@ -904,8 +950,8 @@ void main() { ); final VerificationResult headerStylingResult = verify( viewMockApi.setNavigationHeaderStylingOptions( - captureAny as int, - captureAny as NavigationHeaderStylingOptionsDto, + captureAnyAs(), + captureAnyAs(), ), ); final NavigationHeaderStylingOptionsDto headerStylingOut = @@ -927,6 +973,36 @@ void main() { headerStylingOut.secondaryNightModeBackgroundColor, Colors.purple.toARGB32(), ); + expect( + headerStylingOut.largeManeuverIconColor, + Colors.amber.toARGB32(), + ); + expect( + headerStylingOut.smallManeuverIconColor, + Colors.deepOrange.toARGB32(), + ); + expect(headerStylingOut.nextStepTextColor, Colors.brown.toARGB32()); + expect(headerStylingOut.nextStepTextSize, 19); + expect( + headerStylingOut.distanceValueTextColor, + Colors.indigo.toARGB32(), + ); + expect( + headerStylingOut.distanceUnitsTextColor, + Colors.deepPurple.toARGB32(), + ); + expect(headerStylingOut.distanceValueTextSize, 25); + expect(headerStylingOut.distanceUnitsTextSize, 15); + expect( + headerStylingOut.instructionsTextColor, + Colors.lightBlue.toARGB32(), + ); + expect(headerStylingOut.instructionsFirstRowTextSize, 31); + expect(headerStylingOut.instructionsSecondRowTextSize, 21); + expect( + headerStylingOut.guidanceRecommendedLaneColor, + Colors.lightGreen.toARGB32(), + ); verifyEnabled( verify( viewMockApi.setNavigationFooterEnabled(captureAny, captureAny), From 338b861ad72a7cbce84ba651c774ec658b2dc2cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ville=20V=C3=A4limaa?= Date: Fri, 26 Jun 2026 15:57:04 +0800 Subject: [PATCH 4/4] chore: formatting --- .../GoogleMapsBaseNavigationView.kt | 36 +- .../maps/flutter/navigation/messages.g.kt | 6971 +++++++++++------ .../messages.g.swift | 2160 +++-- 3 files changed, 6090 insertions(+), 3077 deletions(-) diff --git a/android/src/main/kotlin/com/google/maps/flutter/navigation/GoogleMapsBaseNavigationView.kt b/android/src/main/kotlin/com/google/maps/flutter/navigation/GoogleMapsBaseNavigationView.kt index 6fdf697a..fb6400cf 100644 --- a/android/src/main/kotlin/com/google/maps/flutter/navigation/GoogleMapsBaseNavigationView.kt +++ b/android/src/main/kotlin/com/google/maps/flutter/navigation/GoogleMapsBaseNavigationView.kt @@ -137,33 +137,15 @@ abstract class GoogleMapsBaseNavigationView( stylingOptions.secondaryNightModeBackgroundColor?.let { builder.secondaryNightModeThemeColor(it.toInt()) } - stylingOptions.largeManeuverIconColor?.let { - builder.headerLargeManeuverIconColor(it.toInt()) - } - stylingOptions.smallManeuverIconColor?.let { - builder.headerSmallManeuverIconColor(it.toInt()) - } - stylingOptions.nextStepTextColor?.let { - builder.headerNextStepTextColor(it.toInt()) - } - stylingOptions.nextStepTextSize?.let { - builder.headerNextStepTextSize(it.toFloat()) - } - stylingOptions.distanceValueTextColor?.let { - builder.headerDistanceValueTextColor(it.toInt()) - } - stylingOptions.distanceUnitsTextColor?.let { - builder.headerDistanceUnitsTextColor(it.toInt()) - } - stylingOptions.distanceValueTextSize?.let { - builder.headerDistanceValueTextSize(it.toFloat()) - } - stylingOptions.distanceUnitsTextSize?.let { - builder.headerDistanceUnitsTextSize(it.toFloat()) - } - stylingOptions.instructionsTextColor?.let { - builder.headerInstructionsTextColor(it.toInt()) - } + stylingOptions.largeManeuverIconColor?.let { builder.headerLargeManeuverIconColor(it.toInt()) } + stylingOptions.smallManeuverIconColor?.let { builder.headerSmallManeuverIconColor(it.toInt()) } + stylingOptions.nextStepTextColor?.let { builder.headerNextStepTextColor(it.toInt()) } + stylingOptions.nextStepTextSize?.let { builder.headerNextStepTextSize(it.toFloat()) } + stylingOptions.distanceValueTextColor?.let { builder.headerDistanceValueTextColor(it.toInt()) } + stylingOptions.distanceUnitsTextColor?.let { builder.headerDistanceUnitsTextColor(it.toInt()) } + stylingOptions.distanceValueTextSize?.let { builder.headerDistanceValueTextSize(it.toFloat()) } + stylingOptions.distanceUnitsTextSize?.let { builder.headerDistanceUnitsTextSize(it.toFloat()) } + stylingOptions.instructionsTextColor?.let { builder.headerInstructionsTextColor(it.toInt()) } stylingOptions.instructionsFirstRowTextSize?.let { builder.headerInstructionsFirstRowTextSize(it.toFloat()) } 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 b658806a..30697079 100644 --- a/android/src/main/kotlin/com/google/maps/flutter/navigation/messages.g.kt +++ b/android/src/main/kotlin/com/google/maps/flutter/navigation/messages.g.kt @@ -21,16 +21,20 @@ package com.google.maps.flutter.navigation import android.util.Log import io.flutter.plugin.common.BasicMessageChannel import io.flutter.plugin.common.BinaryMessenger -import io.flutter.plugin.common.EventChannel import io.flutter.plugin.common.MessageCodec -import io.flutter.plugin.common.StandardMethodCodec import io.flutter.plugin.common.StandardMessageCodec import java.io.ByteArrayOutputStream import java.nio.ByteBuffer + private object MessagesPigeonUtils { fun createConnectionError(channelName: String): FlutterError { - return FlutterError("channel-error", "Unable to establish connection on channel: '$channelName'.", "") } + return FlutterError( + "channel-error", + "Unable to establish connection on channel: '$channelName'.", + "", + ) + } fun wrapResult(result: Any?): List { return listOf(result) @@ -38,66 +42,62 @@ private object MessagesPigeonUtils { fun wrapError(exception: Throwable): List { return if (exception is FlutterError) { - listOf( - exception.code, - exception.message, - exception.details - ) + listOf(exception.code, exception.message, exception.details) } else { listOf( exception.javaClass.simpleName, exception.toString(), - "Cause: " + exception.cause + ", Stacktrace: " + Log.getStackTraceString(exception) + "Cause: " + exception.cause + ", Stacktrace: " + Log.getStackTraceString(exception), ) } } + fun deepEquals(a: Any?, b: Any?): Boolean { if (a is ByteArray && b is ByteArray) { - return a.contentEquals(b) + return a.contentEquals(b) } if (a is IntArray && b is IntArray) { - return a.contentEquals(b) + return a.contentEquals(b) } if (a is LongArray && b is LongArray) { - return a.contentEquals(b) + return a.contentEquals(b) } if (a is DoubleArray && b is DoubleArray) { - return a.contentEquals(b) + return a.contentEquals(b) } if (a is Array<*> && b is Array<*>) { - return a.size == b.size && - a.indices.all{ deepEquals(a[it], b[it]) } + return a.size == b.size && a.indices.all { deepEquals(a[it], b[it]) } } if (a is List<*> && b is List<*>) { - return a.size == b.size && - a.indices.all{ deepEquals(a[it], b[it]) } + return a.size == b.size && a.indices.all { deepEquals(a[it], b[it]) } } if (a is Map<*, *> && b is Map<*, *>) { - return a.size == b.size && a.all { - (b as Map).containsKey(it.key) && - deepEquals(it.value, b[it.key]) - } + return a.size == b.size && + a.all { (b as Map).containsKey(it.key) && deepEquals(it.value, b[it.key]) } } return a == b } - } /** * Error class for passing custom error details to Flutter via a thrown PlatformException. + * * @property code The error code. * @property message The error message. * @property details The error details. Must be a datatype supported by the api codec. */ -class FlutterError ( +class FlutterError( val code: String, override val message: String? = null, - val details: Any? = null + val details: Any? = null, ) : Throwable() /** Describes the type of map to construct. */ enum class MapViewTypeDto(val raw: Int) { - /** Navigation view supports navigation overlay, and current navigation session is displayed on the map. */ + /** + * Navigation view supports navigation overlay, and current navigation session is displayed on the + * map. + */ NAVIGATION(0), /** Classic map view, without navigation overlay. */ MAP(1); @@ -111,10 +111,7 @@ enum class MapViewTypeDto(val raw: Int) { /** Determines the initial visibility of the navigation UI on map initialization. */ enum class NavigationUIEnabledPreferenceDto(val raw: Int) { - /** - * Navigation UI gets enabled if the navigation - * session has already been successfully started. - */ + /** Navigation UI gets enabled if the navigation session has already been successfully started. */ AUTOMATIC(0), /** Navigation UI is disabled. */ DISABLED(1); @@ -436,7 +433,9 @@ enum class ManeuverDto(val raw: Int) { OFF_RAMP_UTURN_COUNTERCLOCKWISE(22), /** Keep to the left side of the road when entering a turnpike or freeway as the road diverges. */ ON_RAMP_KEEP_LEFT(23), - /** Keep to the right side of the road when entering a turnpike or freeway as the road diverges. */ + /** + * Keep to the right side of the road when entering a turnpike or freeway as the road diverges. + */ ON_RAMP_KEEP_RIGHT(24), /** Regular left turn to enter a turnpike or freeway. */ ON_RAMP_LEFT(25), @@ -492,9 +491,15 @@ enum class ManeuverDto(val raw: Int) { ROUNDABOUT_STRAIGHT_CLOCKWISE(50), /** Enter a roundabout in the counterclockwise direction and continue straight. */ ROUNDABOUT_STRAIGHT_COUNTERCLOCKWISE(51), - /** Enter a roundabout in the clockwise direction and turn clockwise onto the opposite side of the street. */ + /** + * Enter a roundabout in the clockwise direction and turn clockwise onto the opposite side of the + * street. + */ ROUNDABOUT_UTURN_CLOCKWISE(52), - /** Enter a roundabout in the counterclockwise direction and turn counterclockwise onto the opposite side of the street. */ + /** + * Enter a roundabout in the counterclockwise direction and turn counterclockwise onto the + * opposite side of the street. + */ ROUNDABOUT_UTURN_COUNTERCLOCKWISE(53), /** Continue straight. */ STRAIGHT(54), @@ -595,11 +600,14 @@ enum class LaneShapeDto(val raw: Int) { /** Determines how application should behave when a application task is removed. */ enum class TaskRemovedBehaviorDto(val raw: Int) { /** - * The default state, indicating that navigation guidance, - * location updates, and notification should persist after user removes the application task. + * The default state, indicating that navigation guidance, location updates, and notification + * should persist after user removes the application task. */ CONTINUE_SERVICE(0), - /** Indicates that navigation guidance, location updates, and notification should shut down immediately when the user removes the application task. */ + /** + * Indicates that navigation guidance, location updates, and notification should shut down + * immediately when the user removes the application task. + */ QUIT_SERVICE(1); companion object { @@ -614,7 +622,7 @@ enum class TaskRemovedBehaviorDto(val raw: Int) { * * Generated class from Pigeon that represents data sent in messages. */ -data class AutoMapOptionsDto ( +data class AutoMapOptionsDto( /** The initial positioning of the camera in the map view. */ val cameraPosition: CameraPositionDto? = null, /** Cloud-based map ID for custom styling. */ @@ -626,9 +634,8 @@ data class AutoMapOptionsDto ( /** Forces night mode (dark theme) regardless of system settings. */ val forceNightMode: NavigationForceNightModeDto? = null, /** Determines the initial visibility of the navigation UI on map initialization. */ - val navigationUIEnabledPreference: NavigationUIEnabledPreferenceDto? = null -) - { + val navigationUIEnabledPreference: NavigationUIEnabledPreferenceDto? = null, +) { companion object { fun fromList(pigeonVar_list: List): AutoMapOptionsDto { val cameraPosition = pigeonVar_list[0] as CameraPositionDto? @@ -637,9 +644,17 @@ data class AutoMapOptionsDto ( val mapColorScheme = pigeonVar_list[3] as MapColorSchemeDto? val forceNightMode = pigeonVar_list[4] as NavigationForceNightModeDto? val navigationUIEnabledPreference = pigeonVar_list[5] as NavigationUIEnabledPreferenceDto? - return AutoMapOptionsDto(cameraPosition, mapId, mapType, mapColorScheme, forceNightMode, navigationUIEnabledPreference) + return AutoMapOptionsDto( + cameraPosition, + mapId, + mapType, + mapColorScheme, + forceNightMode, + navigationUIEnabledPreference, + ) } } + fun toList(): List { return listOf( cameraPosition, @@ -650,6 +665,7 @@ data class AutoMapOptionsDto ( navigationUIEnabledPreference, ) } + override fun equals(other: Any?): Boolean { if (other !is AutoMapOptionsDto) { return false @@ -657,7 +673,8 @@ data class AutoMapOptionsDto ( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) + } override fun hashCode(): Int = toList().hashCode() } @@ -667,7 +684,7 @@ data class AutoMapOptionsDto ( * * Generated class from Pigeon that represents data sent in messages. */ -data class MapOptionsDto ( +data class MapOptionsDto( /** The initial positioning of the camera in the map view. */ val cameraPosition: CameraPositionDto, /** The type of map to display (e.g., satellite, terrain, hybrid, etc.). */ @@ -700,14 +717,13 @@ data class MapOptionsDto ( /** Specifies the padding for the map. */ val padding: MapPaddingDto? = null, /** - * The map ID for advanced map options eg. cloud-based map styling. - * This value can only be set on map initialization and cannot be changed afterwards. + * The map ID for advanced map options eg. cloud-based map styling. This value can only be set on + * map initialization and cannot be changed afterwards. */ val mapId: String? = null, /** The map color scheme mode for the map view. */ - val mapColorScheme: MapColorSchemeDto -) - { + val mapColorScheme: MapColorSchemeDto, +) { companion object { fun fromList(pigeonVar_list: List): MapOptionsDto { val cameraPosition = pigeonVar_list[0] as CameraPositionDto @@ -726,9 +742,27 @@ data class MapOptionsDto ( val padding = pigeonVar_list[13] as MapPaddingDto? val mapId = pigeonVar_list[14] as String? val mapColorScheme = pigeonVar_list[15] as MapColorSchemeDto - return MapOptionsDto(cameraPosition, mapType, compassEnabled, rotateGesturesEnabled, scrollGesturesEnabled, tiltGesturesEnabled, zoomGesturesEnabled, scrollGesturesEnabledDuringRotateOrZoom, mapToolbarEnabled, minZoomPreference, maxZoomPreference, zoomControlsEnabled, cameraTargetBounds, padding, mapId, mapColorScheme) + return MapOptionsDto( + cameraPosition, + mapType, + compassEnabled, + rotateGesturesEnabled, + scrollGesturesEnabled, + tiltGesturesEnabled, + zoomGesturesEnabled, + scrollGesturesEnabledDuringRotateOrZoom, + mapToolbarEnabled, + minZoomPreference, + maxZoomPreference, + zoomControlsEnabled, + cameraTargetBounds, + padding, + mapId, + mapColorScheme, + ) } } + fun toList(): List { return listOf( cameraPosition, @@ -749,6 +783,7 @@ data class MapOptionsDto ( mapColorScheme, ) } + override fun equals(other: Any?): Boolean { if (other !is MapOptionsDto) { return false @@ -756,7 +791,8 @@ data class MapOptionsDto ( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) + } override fun hashCode(): Int = toList().hashCode() } @@ -766,13 +802,12 @@ data class MapOptionsDto ( * * Generated class from Pigeon that represents data sent in messages. */ -data class NavigationViewOptionsDto ( +data class NavigationViewOptionsDto( /** Determines the initial visibility of the navigation UI on map initialization. */ val navigationUIEnabledPreference: NavigationUIEnabledPreferenceDto, /** Controls the navigation night mode for Navigation UI. */ - val forceNightMode: NavigationForceNightModeDto -) - { + val forceNightMode: NavigationForceNightModeDto, +) { companion object { fun fromList(pigeonVar_list: List): NavigationViewOptionsDto { val navigationUIEnabledPreference = pigeonVar_list[0] as NavigationUIEnabledPreferenceDto @@ -780,12 +815,11 @@ data class NavigationViewOptionsDto ( return NavigationViewOptionsDto(navigationUIEnabledPreference, forceNightMode) } } + fun toList(): List { - return listOf( - navigationUIEnabledPreference, - forceNightMode, - ) + return listOf(navigationUIEnabledPreference, forceNightMode) } + override fun equals(other: Any?): Boolean { if (other !is NavigationViewOptionsDto) { return false @@ -793,7 +827,8 @@ data class NavigationViewOptionsDto ( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) + } override fun hashCode(): Int = toList().hashCode() } @@ -801,17 +836,15 @@ data class NavigationViewOptionsDto ( /** * A message for creating a new navigation view. * - * This message is used to initialize a new navigation view with a - * specified initial parameters. + * This message is used to initialize a new navigation view with a specified initial parameters. * * Generated class from Pigeon that represents data sent in messages. */ -data class ViewCreationOptionsDto ( +data class ViewCreationOptionsDto( val mapViewType: MapViewTypeDto, val mapOptions: MapOptionsDto, - val navigationViewOptions: NavigationViewOptionsDto? = null -) - { + val navigationViewOptions: NavigationViewOptionsDto? = null, +) { companion object { fun fromList(pigeonVar_list: List): ViewCreationOptionsDto { val mapViewType = pigeonVar_list[0] as MapViewTypeDto @@ -820,13 +853,11 @@ data class ViewCreationOptionsDto ( return ViewCreationOptionsDto(mapViewType, mapOptions, navigationViewOptions) } } + fun toList(): List { - return listOf( - mapViewType, - mapOptions, - navigationViewOptions, - ) + return listOf(mapViewType, mapOptions, navigationViewOptions) } + override fun equals(other: Any?): Boolean { if (other !is ViewCreationOptionsDto) { return false @@ -834,19 +865,19 @@ data class ViewCreationOptionsDto ( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) + } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class CameraPositionDto ( +data class CameraPositionDto( val bearing: Double, val target: LatLngDto, val tilt: Double, - val zoom: Double -) - { + val zoom: Double, +) { companion object { fun fromList(pigeonVar_list: List): CameraPositionDto { val bearing = pigeonVar_list[0] as Double @@ -856,14 +887,11 @@ data class CameraPositionDto ( return CameraPositionDto(bearing, target, tilt, zoom) } } + fun toList(): List { - return listOf( - bearing, - target, - tilt, - zoom, - ) + return listOf(bearing, target, tilt, zoom) } + override fun equals(other: Any?): Boolean { if (other !is CameraPositionDto) { return false @@ -871,19 +899,19 @@ data class CameraPositionDto ( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) + } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class MarkerDto ( +data class MarkerDto( /** Identifies marker */ val markerId: String, /** Options for marker */ - val options: MarkerOptionsDto -) - { + val options: MarkerOptionsDto, +) { companion object { fun fromList(pigeonVar_list: List): MarkerDto { val markerId = pigeonVar_list[0] as String @@ -891,12 +919,11 @@ data class MarkerDto ( return MarkerDto(markerId, options) } } + fun toList(): List { - return listOf( - markerId, - options, - ) + return listOf(markerId, options) } + override fun equals(other: Any?): Boolean { if (other !is MarkerDto) { return false @@ -904,13 +931,14 @@ data class MarkerDto ( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) + } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class MarkerOptionsDto ( +data class MarkerOptionsDto( val alpha: Double, val anchor: MarkerAnchorDto, val draggable: Boolean, @@ -921,9 +949,8 @@ data class MarkerOptionsDto ( val infoWindow: InfoWindowDto, val visible: Boolean, val zIndex: Double, - val icon: ImageDescriptorDto -) - { + val icon: ImageDescriptorDto, +) { companion object { fun fromList(pigeonVar_list: List): MarkerOptionsDto { val alpha = pigeonVar_list[0] as Double @@ -937,9 +964,22 @@ data class MarkerOptionsDto ( val visible = pigeonVar_list[8] as Boolean val zIndex = pigeonVar_list[9] as Double val icon = pigeonVar_list[10] as ImageDescriptorDto - return MarkerOptionsDto(alpha, anchor, draggable, flat, consumeTapEvents, position, rotation, infoWindow, visible, zIndex, icon) + return MarkerOptionsDto( + alpha, + anchor, + draggable, + flat, + consumeTapEvents, + position, + rotation, + infoWindow, + visible, + zIndex, + icon, + ) } } + fun toList(): List { return listOf( alpha, @@ -955,6 +995,7 @@ data class MarkerOptionsDto ( icon, ) } + override fun equals(other: Any?): Boolean { if (other !is MarkerOptionsDto) { return false @@ -962,20 +1003,20 @@ data class MarkerOptionsDto ( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) + } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class ImageDescriptorDto ( +data class ImageDescriptorDto( val registeredImageId: String? = null, val imagePixelRatio: Double? = null, val width: Double? = null, val height: Double? = null, - val type: RegisteredImageTypeDto -) - { + val type: RegisteredImageTypeDto, +) { companion object { fun fromList(pigeonVar_list: List): ImageDescriptorDto { val registeredImageId = pigeonVar_list[0] as String? @@ -986,15 +1027,11 @@ data class ImageDescriptorDto ( return ImageDescriptorDto(registeredImageId, imagePixelRatio, width, height, type) } } + fun toList(): List { - return listOf( - registeredImageId, - imagePixelRatio, - width, - height, - type, - ) + return listOf(registeredImageId, imagePixelRatio, width, height, type) } + override fun equals(other: Any?): Boolean { if (other !is ImageDescriptorDto) { return false @@ -1002,18 +1039,18 @@ data class ImageDescriptorDto ( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) + } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class InfoWindowDto ( +data class InfoWindowDto( val title: String? = null, val snippet: String? = null, - val anchor: MarkerAnchorDto -) - { + val anchor: MarkerAnchorDto, +) { companion object { fun fromList(pigeonVar_list: List): InfoWindowDto { val title = pigeonVar_list[0] as String? @@ -1022,13 +1059,11 @@ data class InfoWindowDto ( return InfoWindowDto(title, snippet, anchor) } } + fun toList(): List { - return listOf( - title, - snippet, - anchor, - ) + return listOf(title, snippet, anchor) } + override fun equals(other: Any?): Boolean { if (other !is InfoWindowDto) { return false @@ -1036,17 +1071,14 @@ data class InfoWindowDto ( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) + } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class MarkerAnchorDto ( - val u: Double, - val v: Double -) - { +data class MarkerAnchorDto(val u: Double, val v: Double) { companion object { fun fromList(pigeonVar_list: List): MarkerAnchorDto { val u = pigeonVar_list[0] as Double @@ -1054,12 +1086,11 @@ data class MarkerAnchorDto ( return MarkerAnchorDto(u, v) } } + fun toList(): List { - return listOf( - u, - v, - ) + return listOf(u, v) } + override fun equals(other: Any?): Boolean { if (other !is MarkerAnchorDto) { return false @@ -1067,29 +1098,29 @@ data class MarkerAnchorDto ( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) + } override fun hashCode(): Int = toList().hashCode() } /** - * Represents a point of interest (POI) on the map. - * POIs include parks, schools, government buildings, and businesses. + * Represents a point of interest (POI) on the map. POIs include parks, schools, government + * buildings, and businesses. * * Generated class from Pigeon that represents data sent in messages. */ -data class PointOfInterestDto ( +data class PointOfInterestDto( /** - * The Place ID of this POI, as defined in the Places SDK. - * This can be used to retrieve additional information about the place. + * The Place ID of this POI, as defined in the Places SDK. This can be used to retrieve additional + * information about the place. */ val placeID: String, /** The name of the POI (e.g., "Central Park", "City Hall"). */ val name: String, /** The geographical coordinates of the POI. */ - val latLng: LatLngDto -) - { + val latLng: LatLngDto, +) { companion object { fun fromList(pigeonVar_list: List): PointOfInterestDto { val placeID = pigeonVar_list[0] as String @@ -1098,13 +1129,11 @@ data class PointOfInterestDto ( return PointOfInterestDto(placeID, name, latLng) } } + fun toList(): List { - return listOf( - placeID, - name, - latLng, - ) + return listOf(placeID, name, latLng) } + override fun equals(other: Any?): Boolean { if (other !is PointOfInterestDto) { return false @@ -1112,7 +1141,8 @@ data class PointOfInterestDto ( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) + } override fun hashCode(): Int = toList().hashCode() } @@ -1122,13 +1152,12 @@ data class PointOfInterestDto ( * * Generated class from Pigeon that represents data sent in messages. */ -data class IndoorLevelDto ( +data class IndoorLevelDto( /** Full display name of the level. */ val name: String? = null, /** Short display name of the level. */ - val shortName: String? = null -) - { + val shortName: String? = null, +) { companion object { fun fromList(pigeonVar_list: List): IndoorLevelDto { val name = pigeonVar_list[0] as String? @@ -1136,12 +1165,11 @@ data class IndoorLevelDto ( return IndoorLevelDto(name, shortName) } } + fun toList(): List { - return listOf( - name, - shortName, - ) + return listOf(name, shortName) } + override fun equals(other: Any?): Boolean { if (other !is IndoorLevelDto) { return false @@ -1149,7 +1177,8 @@ data class IndoorLevelDto ( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) + } override fun hashCode(): Int = toList().hashCode() } @@ -1159,7 +1188,7 @@ data class IndoorLevelDto ( * * Generated class from Pigeon that represents data sent in messages. */ -data class IndoorBuildingDto ( +data class IndoorBuildingDto( /** All levels available in the focused building. */ val levels: List, /** Currently active level index in [levels], if known. */ @@ -1167,9 +1196,8 @@ data class IndoorBuildingDto ( /** Default level index in [levels], if known. */ val defaultLevelIndex: Long? = null, /** Whether building is mostly underground, if known. */ - val isUnderground: Boolean? = null -) - { + val isUnderground: Boolean? = null, +) { companion object { fun fromList(pigeonVar_list: List): IndoorBuildingDto { val levels = pigeonVar_list[0] as List @@ -1179,14 +1207,11 @@ data class IndoorBuildingDto ( return IndoorBuildingDto(levels, activeLevelIndex, defaultLevelIndex, isUnderground) } } + fun toList(): List { - return listOf( - levels, - activeLevelIndex, - defaultLevelIndex, - isUnderground, - ) + return listOf(levels, activeLevelIndex, defaultLevelIndex, isUnderground) } + override fun equals(other: Any?): Boolean { if (other !is IndoorBuildingDto) { return false @@ -1194,17 +1219,14 @@ data class IndoorBuildingDto ( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) + } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class PolygonDto ( - val polygonId: String, - val options: PolygonOptionsDto -) - { +data class PolygonDto(val polygonId: String, val options: PolygonOptionsDto) { companion object { fun fromList(pigeonVar_list: List): PolygonDto { val polygonId = pigeonVar_list[0] as String @@ -1212,12 +1234,11 @@ data class PolygonDto ( return PolygonDto(polygonId, options) } } + fun toList(): List { - return listOf( - polygonId, - options, - ) + return listOf(polygonId, options) } + override fun equals(other: Any?): Boolean { if (other !is PolygonDto) { return false @@ -1225,13 +1246,14 @@ data class PolygonDto ( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) + } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class PolygonOptionsDto ( +data class PolygonOptionsDto( val points: List, val holes: List, val clickable: Boolean, @@ -1240,9 +1262,8 @@ data class PolygonOptionsDto ( val strokeColor: Long, val strokeWidth: Double, val visible: Boolean, - val zIndex: Double -) - { + val zIndex: Double, +) { companion object { fun fromList(pigeonVar_list: List): PolygonOptionsDto { val points = pigeonVar_list[0] as List @@ -1254,9 +1275,20 @@ data class PolygonOptionsDto ( val strokeWidth = pigeonVar_list[6] as Double val visible = pigeonVar_list[7] as Boolean val zIndex = pigeonVar_list[8] as Double - return PolygonOptionsDto(points, holes, clickable, fillColor, geodesic, strokeColor, strokeWidth, visible, zIndex) + return PolygonOptionsDto( + points, + holes, + clickable, + fillColor, + geodesic, + strokeColor, + strokeWidth, + visible, + zIndex, + ) } } + fun toList(): List { return listOf( points, @@ -1270,6 +1302,7 @@ data class PolygonOptionsDto ( zIndex, ) } + override fun equals(other: Any?): Boolean { if (other !is PolygonOptionsDto) { return false @@ -1277,27 +1310,25 @@ data class PolygonOptionsDto ( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) + } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class PolygonHoleDto ( - val points: List -) - { +data class PolygonHoleDto(val points: List) { companion object { fun fromList(pigeonVar_list: List): PolygonHoleDto { val points = pigeonVar_list[0] as List return PolygonHoleDto(points) } } + fun toList(): List { - return listOf( - points, - ) + return listOf(points) } + override fun equals(other: Any?): Boolean { if (other !is PolygonHoleDto) { return false @@ -1305,18 +1336,18 @@ data class PolygonHoleDto ( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) + } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class StyleSpanStrokeStyleDto ( +data class StyleSpanStrokeStyleDto( val solidColor: Long? = null, val fromColor: Long? = null, - val toColor: Long? = null -) - { + val toColor: Long? = null, +) { companion object { fun fromList(pigeonVar_list: List): StyleSpanStrokeStyleDto { val solidColor = pigeonVar_list[0] as Long? @@ -1325,13 +1356,11 @@ data class StyleSpanStrokeStyleDto ( return StyleSpanStrokeStyleDto(solidColor, fromColor, toColor) } } + fun toList(): List { - return listOf( - solidColor, - fromColor, - toColor, - ) + return listOf(solidColor, fromColor, toColor) } + override fun equals(other: Any?): Boolean { if (other !is StyleSpanStrokeStyleDto) { return false @@ -1339,17 +1368,14 @@ data class StyleSpanStrokeStyleDto ( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) + } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class StyleSpanDto ( - val length: Double, - val style: StyleSpanStrokeStyleDto -) - { +data class StyleSpanDto(val length: Double, val style: StyleSpanStrokeStyleDto) { companion object { fun fromList(pigeonVar_list: List): StyleSpanDto { val length = pigeonVar_list[0] as Double @@ -1357,12 +1383,11 @@ data class StyleSpanDto ( return StyleSpanDto(length, style) } } + fun toList(): List { - return listOf( - length, - style, - ) + return listOf(length, style) } + override fun equals(other: Any?): Boolean { if (other !is StyleSpanDto) { return false @@ -1370,17 +1395,14 @@ data class StyleSpanDto ( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) + } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class PolylineDto ( - val polylineId: String, - val options: PolylineOptionsDto -) - { +data class PolylineDto(val polylineId: String, val options: PolylineOptionsDto) { companion object { fun fromList(pigeonVar_list: List): PolylineDto { val polylineId = pigeonVar_list[0] as String @@ -1388,12 +1410,11 @@ data class PolylineDto ( return PolylineDto(polylineId, options) } } + fun toList(): List { - return listOf( - polylineId, - options, - ) + return listOf(polylineId, options) } + override fun equals(other: Any?): Boolean { if (other !is PolylineDto) { return false @@ -1401,17 +1422,14 @@ data class PolylineDto ( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) + } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class PatternItemDto ( - val type: PatternTypeDto, - val length: Double? = null -) - { +data class PatternItemDto(val type: PatternTypeDto, val length: Double? = null) { companion object { fun fromList(pigeonVar_list: List): PatternItemDto { val type = pigeonVar_list[0] as PatternTypeDto @@ -1419,12 +1437,11 @@ data class PatternItemDto ( return PatternItemDto(type, length) } } + fun toList(): List { - return listOf( - type, - length, - ) + return listOf(type, length) } + override fun equals(other: Any?): Boolean { if (other !is PatternItemDto) { return false @@ -1432,13 +1449,14 @@ data class PatternItemDto ( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) + } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class PolylineOptionsDto ( +data class PolylineOptionsDto( val points: List? = null, val clickable: Boolean? = null, val geodesic: Boolean? = null, @@ -1448,9 +1466,8 @@ data class PolylineOptionsDto ( val strokeWidth: Double? = null, val visible: Boolean? = null, val zIndex: Double? = null, - val spans: List -) - { + val spans: List, +) { companion object { fun fromList(pigeonVar_list: List): PolylineOptionsDto { val points = pigeonVar_list[0] as List? @@ -1463,9 +1480,21 @@ data class PolylineOptionsDto ( val visible = pigeonVar_list[7] as Boolean? val zIndex = pigeonVar_list[8] as Double? val spans = pigeonVar_list[9] as List - return PolylineOptionsDto(points, clickable, geodesic, strokeColor, strokeJointType, strokePattern, strokeWidth, visible, zIndex, spans) + return PolylineOptionsDto( + points, + clickable, + geodesic, + strokeColor, + strokeJointType, + strokePattern, + strokeWidth, + visible, + zIndex, + spans, + ) } } + fun toList(): List { return listOf( points, @@ -1480,6 +1509,7 @@ data class PolylineOptionsDto ( spans, ) } + override fun equals(other: Any?): Boolean { if (other !is PolylineOptionsDto) { return false @@ -1487,19 +1517,19 @@ data class PolylineOptionsDto ( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) + } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class CircleDto ( +data class CircleDto( /** Identifies circle. */ val circleId: String, /** Options for circle. */ - val options: CircleOptionsDto -) - { + val options: CircleOptionsDto, +) { companion object { fun fromList(pigeonVar_list: List): CircleDto { val circleId = pigeonVar_list[0] as String @@ -1507,12 +1537,11 @@ data class CircleDto ( return CircleDto(circleId, options) } } + fun toList(): List { - return listOf( - circleId, - options, - ) + return listOf(circleId, options) } + override fun equals(other: Any?): Boolean { if (other !is CircleDto) { return false @@ -1520,13 +1549,14 @@ data class CircleDto ( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) + } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class CircleOptionsDto ( +data class CircleOptionsDto( val position: LatLngDto, val radius: Double, val strokeWidth: Double, @@ -1535,9 +1565,8 @@ data class CircleOptionsDto ( val fillColor: Long, val zIndex: Double, val visible: Boolean, - val clickable: Boolean -) - { + val clickable: Boolean, +) { companion object { fun fromList(pigeonVar_list: List): CircleOptionsDto { val position = pigeonVar_list[0] as LatLngDto @@ -1549,9 +1578,20 @@ data class CircleOptionsDto ( val zIndex = pigeonVar_list[6] as Double val visible = pigeonVar_list[7] as Boolean val clickable = pigeonVar_list[8] as Boolean - return CircleOptionsDto(position, radius, strokeWidth, strokeColor, strokePattern, fillColor, zIndex, visible, clickable) + return CircleOptionsDto( + position, + radius, + strokeWidth, + strokeColor, + strokePattern, + fillColor, + zIndex, + visible, + clickable, + ) } } + fun toList(): List { return listOf( position, @@ -1565,6 +1605,7 @@ data class CircleOptionsDto ( clickable, ) } + override fun equals(other: Any?): Boolean { if (other !is CircleOptionsDto) { return false @@ -1572,19 +1613,14 @@ data class CircleOptionsDto ( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) + } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class MapPaddingDto ( - val top: Long, - val left: Long, - val bottom: Long, - val right: Long -) - { +data class MapPaddingDto(val top: Long, val left: Long, val bottom: Long, val right: Long) { companion object { fun fromList(pigeonVar_list: List): MapPaddingDto { val top = pigeonVar_list[0] as Long @@ -1594,14 +1630,11 @@ data class MapPaddingDto ( return MapPaddingDto(top, left, bottom, right) } } + fun toList(): List { - return listOf( - top, - left, - bottom, - right, - ) + return listOf(top, left, bottom, right) } + override fun equals(other: Any?): Boolean { if (other !is MapPaddingDto) { return false @@ -1609,7 +1642,8 @@ data class MapPaddingDto ( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) + } override fun hashCode(): Int = toList().hashCode() } @@ -1617,15 +1651,14 @@ data class MapPaddingDto ( /** * Navigation header styling options. * - * All color values are 32-bit ARGB integers (format: 0xAARRGGBB). - * All text size values are logical pixels. - * Any null value resets that specific field to the native SDK default. + * All color values are 32-bit ARGB integers (format: 0xAARRGGBB). All text size values are logical + * pixels. Any null value resets that specific field to the native SDK default. * * Text size fields are currently Android only and are ignored on iOS. * * Generated class from Pigeon that represents data sent in messages. */ -data class NavigationHeaderStylingOptionsDto ( +data class NavigationHeaderStylingOptionsDto( val primaryDayModeBackgroundColor: Long? = null, val secondaryDayModeBackgroundColor: Long? = null, val primaryNightModeBackgroundColor: Long? = null, @@ -1641,9 +1674,8 @@ data class NavigationHeaderStylingOptionsDto ( val instructionsTextColor: Long? = null, val instructionsFirstRowTextSize: Double? = null, val instructionsSecondRowTextSize: Double? = null, - val guidanceRecommendedLaneColor: Long? = null -) - { + val guidanceRecommendedLaneColor: Long? = null, +) { companion object { fun fromList(pigeonVar_list: List): NavigationHeaderStylingOptionsDto { val primaryDayModeBackgroundColor = pigeonVar_list[0] as Long? @@ -1662,9 +1694,27 @@ data class NavigationHeaderStylingOptionsDto ( val instructionsFirstRowTextSize = pigeonVar_list[13] as Double? val instructionsSecondRowTextSize = pigeonVar_list[14] as Double? val guidanceRecommendedLaneColor = pigeonVar_list[15] as Long? - return NavigationHeaderStylingOptionsDto(primaryDayModeBackgroundColor, secondaryDayModeBackgroundColor, primaryNightModeBackgroundColor, secondaryNightModeBackgroundColor, largeManeuverIconColor, smallManeuverIconColor, nextStepTextColor, nextStepTextSize, distanceValueTextColor, distanceUnitsTextColor, distanceValueTextSize, distanceUnitsTextSize, instructionsTextColor, instructionsFirstRowTextSize, instructionsSecondRowTextSize, guidanceRecommendedLaneColor) + return NavigationHeaderStylingOptionsDto( + primaryDayModeBackgroundColor, + secondaryDayModeBackgroundColor, + primaryNightModeBackgroundColor, + secondaryNightModeBackgroundColor, + largeManeuverIconColor, + smallManeuverIconColor, + nextStepTextColor, + nextStepTextSize, + distanceValueTextColor, + distanceUnitsTextColor, + distanceValueTextSize, + distanceUnitsTextSize, + instructionsTextColor, + instructionsFirstRowTextSize, + instructionsSecondRowTextSize, + guidanceRecommendedLaneColor, + ) } } + fun toList(): List { return listOf( primaryDayModeBackgroundColor, @@ -1685,6 +1735,7 @@ data class NavigationHeaderStylingOptionsDto ( guidanceRecommendedLaneColor, ) } + override fun equals(other: Any?): Boolean { if (other !is NavigationHeaderStylingOptionsDto) { return false @@ -1692,17 +1743,14 @@ data class NavigationHeaderStylingOptionsDto ( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) + } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class RouteTokenOptionsDto ( - val routeToken: String, - val travelMode: TravelModeDto? = null -) - { +data class RouteTokenOptionsDto(val routeToken: String, val travelMode: TravelModeDto? = null) { companion object { fun fromList(pigeonVar_list: List): RouteTokenOptionsDto { val routeToken = pigeonVar_list[0] as String @@ -1710,12 +1758,11 @@ data class RouteTokenOptionsDto ( return RouteTokenOptionsDto(routeToken, travelMode) } } + fun toList(): List { - return listOf( - routeToken, - travelMode, - ) + return listOf(routeToken, travelMode) } + override fun equals(other: Any?): Boolean { if (other !is RouteTokenOptionsDto) { return false @@ -1723,19 +1770,19 @@ data class RouteTokenOptionsDto ( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) + } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class DestinationsDto ( +data class DestinationsDto( val waypoints: List, val displayOptions: NavigationDisplayOptionsDto, val routingOptions: RoutingOptionsDto? = null, - val routeTokenOptions: RouteTokenOptionsDto? = null -) - { + val routeTokenOptions: RouteTokenOptionsDto? = null, +) { companion object { fun fromList(pigeonVar_list: List): DestinationsDto { val waypoints = pigeonVar_list[0] as List @@ -1745,14 +1792,11 @@ data class DestinationsDto ( return DestinationsDto(waypoints, displayOptions, routingOptions, routeTokenOptions) } } + fun toList(): List { - return listOf( - waypoints, - displayOptions, - routingOptions, - routeTokenOptions, - ) + return listOf(waypoints, displayOptions, routingOptions, routeTokenOptions) } + override fun equals(other: Any?): Boolean { if (other !is DestinationsDto) { return false @@ -1760,13 +1804,14 @@ data class DestinationsDto ( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) + } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class RoutingOptionsDto ( +data class RoutingOptionsDto( val alternateRoutesStrategy: AlternateRoutesStrategyDto? = null, val routingStrategy: RoutingStrategyDto? = null, val targetDistanceMeters: List? = null, @@ -1774,9 +1819,8 @@ data class RoutingOptionsDto ( val avoidTolls: Boolean? = null, val avoidFerries: Boolean? = null, val avoidHighways: Boolean? = null, - val locationTimeoutMs: Long? = null -) - { + val locationTimeoutMs: Long? = null, +) { companion object { fun fromList(pigeonVar_list: List): RoutingOptionsDto { val alternateRoutesStrategy = pigeonVar_list[0] as AlternateRoutesStrategyDto? @@ -1787,9 +1831,19 @@ data class RoutingOptionsDto ( val avoidFerries = pigeonVar_list[5] as Boolean? val avoidHighways = pigeonVar_list[6] as Boolean? val locationTimeoutMs = pigeonVar_list[7] as Long? - return RoutingOptionsDto(alternateRoutesStrategy, routingStrategy, targetDistanceMeters, travelMode, avoidTolls, avoidFerries, avoidHighways, locationTimeoutMs) + return RoutingOptionsDto( + alternateRoutesStrategy, + routingStrategy, + targetDistanceMeters, + travelMode, + avoidTolls, + avoidFerries, + avoidHighways, + locationTimeoutMs, + ) } } + fun toList(): List { return listOf( alternateRoutesStrategy, @@ -1802,6 +1856,7 @@ data class RoutingOptionsDto ( locationTimeoutMs, ) } + override fun equals(other: Any?): Boolean { if (other !is RoutingOptionsDto) { return false @@ -1809,20 +1864,20 @@ data class RoutingOptionsDto ( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) + } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class NavigationDisplayOptionsDto ( +data class NavigationDisplayOptionsDto( val showDestinationMarkers: Boolean? = null, /** Deprecated: This option now defaults to true. */ val showStopSigns: Boolean? = null, /** Deprecated: This option now defaults to true. */ - val showTrafficLights: Boolean? = null -) - { + val showTrafficLights: Boolean? = null, +) { companion object { fun fromList(pigeonVar_list: List): NavigationDisplayOptionsDto { val showDestinationMarkers = pigeonVar_list[0] as Boolean? @@ -1831,13 +1886,11 @@ data class NavigationDisplayOptionsDto ( return NavigationDisplayOptionsDto(showDestinationMarkers, showStopSigns, showTrafficLights) } } + fun toList(): List { - return listOf( - showDestinationMarkers, - showStopSigns, - showTrafficLights, - ) + return listOf(showDestinationMarkers, showStopSigns, showTrafficLights) } + override fun equals(other: Any?): Boolean { if (other !is NavigationDisplayOptionsDto) { return false @@ -1845,20 +1898,20 @@ data class NavigationDisplayOptionsDto ( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) + } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class NavigationWaypointDto ( +data class NavigationWaypointDto( val title: String, val target: LatLngDto? = null, val placeID: String? = null, val preferSameSideOfRoad: Boolean? = null, - val preferredSegmentHeading: Long? = null -) - { + val preferredSegmentHeading: Long? = null, +) { companion object { fun fromList(pigeonVar_list: List): NavigationWaypointDto { val title = pigeonVar_list[0] as String @@ -1866,18 +1919,20 @@ data class NavigationWaypointDto ( val placeID = pigeonVar_list[2] as String? val preferSameSideOfRoad = pigeonVar_list[3] as Boolean? val preferredSegmentHeading = pigeonVar_list[4] as Long? - return NavigationWaypointDto(title, target, placeID, preferSameSideOfRoad, preferredSegmentHeading) + return NavigationWaypointDto( + title, + target, + placeID, + preferSameSideOfRoad, + preferredSegmentHeading, + ) } } + fun toList(): List { - return listOf( - title, - target, - placeID, - preferSameSideOfRoad, - preferredSegmentHeading, - ) + return listOf(title, target, placeID, preferSameSideOfRoad, preferredSegmentHeading) } + override fun equals(other: Any?): Boolean { if (other !is NavigationWaypointDto) { return false @@ -1885,17 +1940,17 @@ data class NavigationWaypointDto ( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) + } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class ContinueToNextDestinationResponseDto ( +data class ContinueToNextDestinationResponseDto( val waypoint: NavigationWaypointDto? = null, - val routeStatus: RouteStatusDto? = null -) - { + val routeStatus: RouteStatusDto? = null, +) { companion object { fun fromList(pigeonVar_list: List): ContinueToNextDestinationResponseDto { val waypoint = pigeonVar_list[0] as NavigationWaypointDto? @@ -1903,12 +1958,11 @@ data class ContinueToNextDestinationResponseDto ( return ContinueToNextDestinationResponseDto(waypoint, routeStatus) } } + fun toList(): List { - return listOf( - waypoint, - routeStatus, - ) + return listOf(waypoint, routeStatus) } + override fun equals(other: Any?): Boolean { if (other !is ContinueToNextDestinationResponseDto) { return false @@ -1916,18 +1970,18 @@ data class ContinueToNextDestinationResponseDto ( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) + } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class NavigationTimeAndDistanceDto ( +data class NavigationTimeAndDistanceDto( val time: Double, val distance: Double, - val delaySeverity: TrafficDelaySeverityDto -) - { + val delaySeverity: TrafficDelaySeverityDto, +) { companion object { fun fromList(pigeonVar_list: List): NavigationTimeAndDistanceDto { val time = pigeonVar_list[0] as Double @@ -1936,13 +1990,11 @@ data class NavigationTimeAndDistanceDto ( return NavigationTimeAndDistanceDto(time, distance, delaySeverity) } } + fun toList(): List { - return listOf( - time, - distance, - delaySeverity, - ) + return listOf(time, distance, delaySeverity) } + override fun equals(other: Any?): Boolean { if (other !is NavigationTimeAndDistanceDto) { return false @@ -1950,33 +2002,35 @@ data class NavigationTimeAndDistanceDto ( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) + } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class NavigationAudioGuidanceSettingsDto ( +data class NavigationAudioGuidanceSettingsDto( val isBluetoothAudioEnabled: Boolean? = null, val isVibrationEnabled: Boolean? = null, - val guidanceType: AudioGuidanceTypeDto? = null -) - { + val guidanceType: AudioGuidanceTypeDto? = null, +) { companion object { fun fromList(pigeonVar_list: List): NavigationAudioGuidanceSettingsDto { val isBluetoothAudioEnabled = pigeonVar_list[0] as Boolean? val isVibrationEnabled = pigeonVar_list[1] as Boolean? val guidanceType = pigeonVar_list[2] as AudioGuidanceTypeDto? - return NavigationAudioGuidanceSettingsDto(isBluetoothAudioEnabled, isVibrationEnabled, guidanceType) + return NavigationAudioGuidanceSettingsDto( + isBluetoothAudioEnabled, + isVibrationEnabled, + guidanceType, + ) } } + fun toList(): List { - return listOf( - isBluetoothAudioEnabled, - isVibrationEnabled, - guidanceType, - ) + return listOf(isBluetoothAudioEnabled, isVibrationEnabled, guidanceType) } + override fun equals(other: Any?): Boolean { if (other !is NavigationAudioGuidanceSettingsDto) { return false @@ -1984,27 +2038,25 @@ data class NavigationAudioGuidanceSettingsDto ( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) + } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class SimulationOptionsDto ( - val speedMultiplier: Double -) - { +data class SimulationOptionsDto(val speedMultiplier: Double) { companion object { fun fromList(pigeonVar_list: List): SimulationOptionsDto { val speedMultiplier = pigeonVar_list[0] as Double return SimulationOptionsDto(speedMultiplier) } } + fun toList(): List { - return listOf( - speedMultiplier, - ) + return listOf(speedMultiplier) } + override fun equals(other: Any?): Boolean { if (other !is SimulationOptionsDto) { return false @@ -2012,17 +2064,14 @@ data class SimulationOptionsDto ( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) + } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class LatLngDto ( - val latitude: Double, - val longitude: Double -) - { +data class LatLngDto(val latitude: Double, val longitude: Double) { companion object { fun fromList(pigeonVar_list: List): LatLngDto { val latitude = pigeonVar_list[0] as Double @@ -2030,12 +2079,11 @@ data class LatLngDto ( return LatLngDto(latitude, longitude) } } + fun toList(): List { - return listOf( - latitude, - longitude, - ) + return listOf(latitude, longitude) } + override fun equals(other: Any?): Boolean { if (other !is LatLngDto) { return false @@ -2043,17 +2091,14 @@ data class LatLngDto ( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) + } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class LatLngBoundsDto ( - val southwest: LatLngDto, - val northeast: LatLngDto -) - { +data class LatLngBoundsDto(val southwest: LatLngDto, val northeast: LatLngDto) { companion object { fun fromList(pigeonVar_list: List): LatLngBoundsDto { val southwest = pigeonVar_list[0] as LatLngDto @@ -2061,12 +2106,11 @@ data class LatLngBoundsDto ( return LatLngBoundsDto(southwest, northeast) } } + fun toList(): List { - return listOf( - southwest, - northeast, - ) + return listOf(southwest, northeast) } + override fun equals(other: Any?): Boolean { if (other !is LatLngBoundsDto) { return false @@ -2074,17 +2118,17 @@ data class LatLngBoundsDto ( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) + } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class SpeedingUpdatedEventDto ( +data class SpeedingUpdatedEventDto( val percentageAboveLimit: Double, - val severity: SpeedAlertSeverityDto -) - { + val severity: SpeedAlertSeverityDto, +) { companion object { fun fromList(pigeonVar_list: List): SpeedingUpdatedEventDto { val percentageAboveLimit = pigeonVar_list[0] as Double @@ -2092,12 +2136,11 @@ data class SpeedingUpdatedEventDto ( return SpeedingUpdatedEventDto(percentageAboveLimit, severity) } } + fun toList(): List { - return listOf( - percentageAboveLimit, - severity, - ) + return listOf(percentageAboveLimit, severity) } + override fun equals(other: Any?): Boolean { if (other !is SpeedingUpdatedEventDto) { return false @@ -2105,17 +2148,17 @@ data class SpeedingUpdatedEventDto ( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) + } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class GpsAvailabilityChangeEventDto ( +data class GpsAvailabilityChangeEventDto( val isGpsLost: Boolean, - val isGpsValidForNavigation: Boolean -) - { + val isGpsValidForNavigation: Boolean, +) { companion object { fun fromList(pigeonVar_list: List): GpsAvailabilityChangeEventDto { val isGpsLost = pigeonVar_list[0] as Boolean @@ -2123,12 +2166,11 @@ data class GpsAvailabilityChangeEventDto ( return GpsAvailabilityChangeEventDto(isGpsLost, isGpsValidForNavigation) } } + fun toList(): List { - return listOf( - isGpsLost, - isGpsValidForNavigation, - ) + return listOf(isGpsLost, isGpsValidForNavigation) } + override fun equals(other: Any?): Boolean { if (other !is GpsAvailabilityChangeEventDto) { return false @@ -2136,17 +2178,17 @@ data class GpsAvailabilityChangeEventDto ( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) + } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class SpeedAlertOptionsThresholdPercentageDto ( +data class SpeedAlertOptionsThresholdPercentageDto( val percentage: Double, - val severity: SpeedAlertSeverityDto -) - { + val severity: SpeedAlertSeverityDto, +) { companion object { fun fromList(pigeonVar_list: List): SpeedAlertOptionsThresholdPercentageDto { val percentage = pigeonVar_list[0] as Double @@ -2154,12 +2196,11 @@ data class SpeedAlertOptionsThresholdPercentageDto ( return SpeedAlertOptionsThresholdPercentageDto(percentage, severity) } } + fun toList(): List { - return listOf( - percentage, - severity, - ) + return listOf(percentage, severity) } + override fun equals(other: Any?): Boolean { if (other !is SpeedAlertOptionsThresholdPercentageDto) { return false @@ -2167,26 +2208,31 @@ data class SpeedAlertOptionsThresholdPercentageDto ( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) + } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class SpeedAlertOptionsDto ( +data class SpeedAlertOptionsDto( val severityUpgradeDurationSeconds: Double, val minorSpeedAlertThresholdPercentage: Double, - val majorSpeedAlertThresholdPercentage: Double -) - { + val majorSpeedAlertThresholdPercentage: Double, +) { companion object { fun fromList(pigeonVar_list: List): SpeedAlertOptionsDto { val severityUpgradeDurationSeconds = pigeonVar_list[0] as Double val minorSpeedAlertThresholdPercentage = pigeonVar_list[1] as Double val majorSpeedAlertThresholdPercentage = pigeonVar_list[2] as Double - return SpeedAlertOptionsDto(severityUpgradeDurationSeconds, minorSpeedAlertThresholdPercentage, majorSpeedAlertThresholdPercentage) + return SpeedAlertOptionsDto( + severityUpgradeDurationSeconds, + minorSpeedAlertThresholdPercentage, + majorSpeedAlertThresholdPercentage, + ) } } + fun toList(): List { return listOf( severityUpgradeDurationSeconds, @@ -2194,6 +2240,7 @@ data class SpeedAlertOptionsDto ( majorSpeedAlertThresholdPercentage, ) } + override fun equals(other: Any?): Boolean { if (other !is SpeedAlertOptionsDto) { return false @@ -2201,18 +2248,18 @@ data class SpeedAlertOptionsDto ( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) + } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class RouteSegmentTrafficDataRoadStretchRenderingDataDto ( +data class RouteSegmentTrafficDataRoadStretchRenderingDataDto( val style: RouteSegmentTrafficDataRoadStretchRenderingDataStyleDto, val lengthMeters: Long, - val offsetMeters: Long -) - { + val offsetMeters: Long, +) { companion object { fun fromList(pigeonVar_list: List): RouteSegmentTrafficDataRoadStretchRenderingDataDto { val style = pigeonVar_list[0] as RouteSegmentTrafficDataRoadStretchRenderingDataStyleDto @@ -2221,13 +2268,11 @@ data class RouteSegmentTrafficDataRoadStretchRenderingDataDto ( return RouteSegmentTrafficDataRoadStretchRenderingDataDto(style, lengthMeters, offsetMeters) } } + fun toList(): List { - return listOf( - style, - lengthMeters, - offsetMeters, - ) + return listOf(style, lengthMeters, offsetMeters) } + override fun equals(other: Any?): Boolean { if (other !is RouteSegmentTrafficDataRoadStretchRenderingDataDto) { return false @@ -2235,30 +2280,30 @@ data class RouteSegmentTrafficDataRoadStretchRenderingDataDto ( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) + } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class RouteSegmentTrafficDataDto ( +data class RouteSegmentTrafficDataDto( val status: RouteSegmentTrafficDataStatusDto, - val roadStretchRenderingDataList: List -) - { + val roadStretchRenderingDataList: List, +) { companion object { fun fromList(pigeonVar_list: List): RouteSegmentTrafficDataDto { val status = pigeonVar_list[0] as RouteSegmentTrafficDataStatusDto - val roadStretchRenderingDataList = pigeonVar_list[1] as List + val roadStretchRenderingDataList = + pigeonVar_list[1] as List return RouteSegmentTrafficDataDto(status, roadStretchRenderingDataList) } } + fun toList(): List { - return listOf( - status, - roadStretchRenderingDataList, - ) + return listOf(status, roadStretchRenderingDataList) } + override fun equals(other: Any?): Boolean { if (other !is RouteSegmentTrafficDataDto) { return false @@ -2266,19 +2311,19 @@ data class RouteSegmentTrafficDataDto ( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) + } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class RouteSegmentDto ( +data class RouteSegmentDto( val trafficData: RouteSegmentTrafficDataDto? = null, val destinationLatLng: LatLngDto, val latLngs: List? = null, - val destinationWaypoint: NavigationWaypointDto? = null -) - { + val destinationWaypoint: NavigationWaypointDto? = null, +) { companion object { fun fromList(pigeonVar_list: List): RouteSegmentDto { val trafficData = pigeonVar_list[0] as RouteSegmentTrafficDataDto? @@ -2288,14 +2333,11 @@ data class RouteSegmentDto ( return RouteSegmentDto(trafficData, destinationLatLng, latLngs, destinationWaypoint) } } + fun toList(): List { - return listOf( - trafficData, - destinationLatLng, - latLngs, - destinationWaypoint, - ) + return listOf(trafficData, destinationLatLng, latLngs, destinationWaypoint) } + override fun equals(other: Any?): Boolean { if (other !is RouteSegmentDto) { return false @@ -2303,23 +2345,24 @@ data class RouteSegmentDto ( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) + } override fun hashCode(): Int = toList().hashCode() } /** - * One of the possible directions from a lane at the end of a route step, and whether it is on the recommended route. + * One of the possible directions from a lane at the end of a route step, and whether it is on the + * recommended route. * * Generated class from Pigeon that represents data sent in messages. */ -data class LaneDirectionDto ( +data class LaneDirectionDto( /** Shape for this lane direction. */ val laneShape: LaneShapeDto, /** Whether this lane is recommended. */ - val isRecommended: Boolean -) - { + val isRecommended: Boolean, +) { companion object { fun fromList(pigeonVar_list: List): LaneDirectionDto { val laneShape = pigeonVar_list[0] as LaneShapeDto @@ -2327,12 +2370,11 @@ data class LaneDirectionDto ( return LaneDirectionDto(laneShape, isRecommended) } } + fun toList(): List { - return listOf( - laneShape, - isRecommended, - ) + return listOf(laneShape, isRecommended) } + override fun equals(other: Any?): Boolean { if (other !is LaneDirectionDto) { return false @@ -2340,7 +2382,8 @@ data class LaneDirectionDto ( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) + } override fun hashCode(): Int = toList().hashCode() } @@ -2350,22 +2393,24 @@ data class LaneDirectionDto ( * * Generated class from Pigeon that represents data sent in messages. */ -data class LaneDto ( - /** List of possible directions a driver can follow when using this lane at the end of the respective route step */ +data class LaneDto( + /** + * List of possible directions a driver can follow when using this lane at the end of the + * respective route step + */ val laneDirections: List -) - { +) { companion object { fun fromList(pigeonVar_list: List): LaneDto { val laneDirections = pigeonVar_list[0] as List return LaneDto(laneDirections) } } + fun toList(): List { - return listOf( - laneDirections, - ) + return listOf(laneDirections) } + override fun equals(other: Any?): Boolean { if (other !is LaneDto) { return false @@ -2373,7 +2418,8 @@ data class LaneDto ( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) + } override fun hashCode(): Int = toList().hashCode() } @@ -2383,7 +2429,7 @@ data class LaneDto ( * * Generated class from Pigeon that represents data sent in messages. */ -data class StepInfoDto ( +data class StepInfoDto( /** Distance in meters from the previous step to this step if available, otherwise null. */ val distanceFromPrevStepMeters: Long? = null, /** Time in seconds from the previous step to this step if available, otherwise null. */ @@ -2399,8 +2445,8 @@ data class StepInfoDto ( /** The simplified version of the road name if available, otherwise null. */ val simpleRoadName: String? = null, /** - * The counted number of the exit to take relative to the location where the - * roundabout was entered if available, otherwise null. + * The counted number of the exit to take relative to the location where the roundabout was + * entered if available, otherwise null. */ val roundaboutTurnNumber: Long? = null, /** The list of available lanes at the end of this route step if available, otherwise null. */ @@ -2410,17 +2456,17 @@ data class StepInfoDto ( /** The index of the step in the list of all steps in the route if available, otherwise null. */ val stepNumber: Long? = null, /** - * Image descriptor for the generated maneuver image for the current step if available, otherwise null. - * This image is generated only if step image generation option includes maneuver images. + * Image descriptor for the generated maneuver image for the current step if available, otherwise + * null. This image is generated only if step image generation option includes maneuver images. */ val maneuverImage: ImageDescriptorDto? = null, /** - * Image descriptor for the generated lane guidance image for the current step if available, otherwise null. - * This image is generated only if step image generation option includes lane images. + * Image descriptor for the generated lane guidance image for the current step if available, + * otherwise null. This image is generated only if step image generation option includes lane + * images. */ - val lanesImage: ImageDescriptorDto? = null -) - { + val lanesImage: ImageDescriptorDto? = null, +) { companion object { fun fromList(pigeonVar_list: List): StepInfoDto { val distanceFromPrevStepMeters = pigeonVar_list[0] as Long? @@ -2436,9 +2482,24 @@ data class StepInfoDto ( val stepNumber = pigeonVar_list[10] as Long? val maneuverImage = pigeonVar_list[11] as ImageDescriptorDto? val lanesImage = pigeonVar_list[12] as ImageDescriptorDto? - return StepInfoDto(distanceFromPrevStepMeters, timeFromPrevStepSeconds, drivingSide, exitNumber, fullInstructions, fullRoadName, simpleRoadName, roundaboutTurnNumber, lanes, maneuver, stepNumber, maneuverImage, lanesImage) + return StepInfoDto( + distanceFromPrevStepMeters, + timeFromPrevStepSeconds, + drivingSide, + exitNumber, + fullInstructions, + fullRoadName, + simpleRoadName, + roundaboutTurnNumber, + lanes, + maneuver, + stepNumber, + maneuverImage, + lanesImage, + ) } } + fun toList(): List { return listOf( distanceFromPrevStepMeters, @@ -2456,6 +2517,7 @@ data class StepInfoDto ( lanesImage, ) } + override fun equals(other: Any?): Boolean { if (other !is StepInfoDto) { return false @@ -2463,18 +2525,19 @@ data class StepInfoDto ( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) + } override fun hashCode(): Int = toList().hashCode() } /** - * Contains information about the state of navigation, the current nav step if - * available, and remaining steps if available. + * Contains information about the state of navigation, the current nav step if available, and + * remaining steps if available. * * Generated class from Pigeon that represents data sent in messages. */ -data class NavInfoDto ( +data class NavInfoDto( /** The current state of navigation. */ val navState: NavStateDto, /** Information about the upcoming maneuver step. */ @@ -2483,14 +2546,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. */ + val distanceToCurrentStepMeters: Long? = null, /** - * 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, /** @@ -2499,14 +2559,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, /** @@ -2514,9 +2571,8 @@ data class NavInfoDto ( * * Android only. */ - val timeToNextDestinationSeconds: Long? = null -) - { + val timeToNextDestinationSeconds: Long? = null, +) { companion object { fun fromList(pigeonVar_list: List): NavInfoDto { val navState = pigeonVar_list[0] as NavStateDto @@ -2529,9 +2585,21 @@ data class NavInfoDto ( val timeToCurrentStepSeconds = pigeonVar_list[7] as Long? val timeToFinalDestinationSeconds = pigeonVar_list[8] as Long? val timeToNextDestinationSeconds = pigeonVar_list[9] as Long? - return NavInfoDto(navState, currentStep, remainingSteps, routeChanged, distanceToCurrentStepMeters, distanceToFinalDestinationMeters, distanceToNextDestinationMeters, timeToCurrentStepSeconds, timeToFinalDestinationSeconds, timeToNextDestinationSeconds) + return NavInfoDto( + navState, + currentStep, + remainingSteps, + routeChanged, + distanceToCurrentStepMeters, + distanceToFinalDestinationMeters, + distanceToNextDestinationMeters, + timeToCurrentStepSeconds, + timeToFinalDestinationSeconds, + timeToNextDestinationSeconds, + ) } } + fun toList(): List { return listOf( navState, @@ -2546,6 +2614,7 @@ data class NavInfoDto ( timeToNextDestinationSeconds, ) } + override fun equals(other: Any?): Boolean { if (other !is NavInfoDto) { return false @@ -2553,7 +2622,8 @@ data class NavInfoDto ( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) + } override fun hashCode(): Int = toList().hashCode() } @@ -2561,12 +2631,12 @@ data class NavInfoDto ( /** * UI customization parameters for the Terms and Conditions dialog. * - * All color values are 32-bit ARGB integers (format: 0xAARRGGBB). - * All parameters are optional - if not provided, platform defaults will be used. + * All color values are 32-bit ARGB integers (format: 0xAARRGGBB). All parameters are optional - if + * not provided, platform defaults will be used. * * Generated class from Pigeon that represents data sent in messages. */ -data class TermsAndConditionsUIParamsDto ( +data class TermsAndConditionsUIParamsDto( /** Background color of the dialog box. */ val backgroundColor: Long? = null, /** Text color for the dialog title. */ @@ -2576,9 +2646,8 @@ data class TermsAndConditionsUIParamsDto ( /** Text color for the accept button. */ val acceptButtonTextColor: Long? = null, /** Text color for the cancel button. */ - val cancelButtonTextColor: Long? = null -) - { + val cancelButtonTextColor: Long? = null, +) { companion object { fun fromList(pigeonVar_list: List): TermsAndConditionsUIParamsDto { val backgroundColor = pigeonVar_list[0] as Long? @@ -2586,9 +2655,16 @@ data class TermsAndConditionsUIParamsDto ( val mainTextColor = pigeonVar_list[2] as Long? val acceptButtonTextColor = pigeonVar_list[3] as Long? val cancelButtonTextColor = pigeonVar_list[4] as Long? - return TermsAndConditionsUIParamsDto(backgroundColor, titleColor, mainTextColor, acceptButtonTextColor, cancelButtonTextColor) + return TermsAndConditionsUIParamsDto( + backgroundColor, + titleColor, + mainTextColor, + acceptButtonTextColor, + cancelButtonTextColor, + ) } } + fun toList(): List { return listOf( backgroundColor, @@ -2598,6 +2674,7 @@ data class TermsAndConditionsUIParamsDto ( cancelButtonTextColor, ) } + override fun equals(other: Any?): Boolean { if (other !is TermsAndConditionsUIParamsDto) { return false @@ -2605,7 +2682,8 @@ data class TermsAndConditionsUIParamsDto ( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) + } override fun hashCode(): Int = toList().hashCode() } @@ -2615,19 +2693,14 @@ data class TermsAndConditionsUIParamsDto ( * * Generated class from Pigeon that represents data sent in messages. */ -data class StepImageGenerationOptionsDto ( +data class StepImageGenerationOptionsDto( /** - * Whether to generate maneuver images for navigation steps. - * Defaults to false if not specified. + * Whether to generate maneuver images for navigation steps. Defaults to false if not specified. */ val generateManeuverImages: Boolean? = null, - /** - * Whether to generate lane images for navigation steps. - * Defaults to false if not specified. - */ - val generateLaneImages: Boolean? = null -) - { + /** Whether to generate lane images for navigation steps. Defaults to false if not specified. */ + val generateLaneImages: Boolean? = null, +) { companion object { fun fromList(pigeonVar_list: List): StepImageGenerationOptionsDto { val generateManeuverImages = pigeonVar_list[0] as Boolean? @@ -2635,12 +2708,11 @@ data class StepImageGenerationOptionsDto ( return StepImageGenerationOptionsDto(generateManeuverImages, generateLaneImages) } } + fun toList(): List { - return listOf( - generateManeuverImages, - generateLaneImages, - ) + return listOf(generateManeuverImages, generateLaneImages) } + override fun equals(other: Any?): Boolean { if (other !is StepImageGenerationOptionsDto) { return false @@ -2648,17 +2720,17 @@ data class StepImageGenerationOptionsDto ( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) + } override fun hashCode(): Int = toList().hashCode() } + private open class messagesPigeonCodec : StandardMessageCodec() { override fun readValueOfType(type: Byte, buffer: ByteBuffer): Any? { return when (type) { 129.toByte() -> { - return (readValue(buffer) as Long?)?.let { - MapViewTypeDto.ofRaw(it.toInt()) - } + return (readValue(buffer) as Long?)?.let { MapViewTypeDto.ofRaw(it.toInt()) } } 130.toByte() -> { return (readValue(buffer) as Long?)?.let { @@ -2666,89 +2738,55 @@ private open class messagesPigeonCodec : StandardMessageCodec() { } } 131.toByte() -> { - return (readValue(buffer) as Long?)?.let { - MapTypeDto.ofRaw(it.toInt()) - } + return (readValue(buffer) as Long?)?.let { MapTypeDto.ofRaw(it.toInt()) } } 132.toByte() -> { - return (readValue(buffer) as Long?)?.let { - MapColorSchemeDto.ofRaw(it.toInt()) - } + return (readValue(buffer) as Long?)?.let { MapColorSchemeDto.ofRaw(it.toInt()) } } 133.toByte() -> { - return (readValue(buffer) as Long?)?.let { - NavigationForceNightModeDto.ofRaw(it.toInt()) - } + return (readValue(buffer) as Long?)?.let { NavigationForceNightModeDto.ofRaw(it.toInt()) } } 134.toByte() -> { - return (readValue(buffer) as Long?)?.let { - CameraPerspectiveDto.ofRaw(it.toInt()) - } + return (readValue(buffer) as Long?)?.let { CameraPerspectiveDto.ofRaw(it.toInt()) } } 135.toByte() -> { - return (readValue(buffer) as Long?)?.let { - RegisteredImageTypeDto.ofRaw(it.toInt()) - } + return (readValue(buffer) as Long?)?.let { RegisteredImageTypeDto.ofRaw(it.toInt()) } } 136.toByte() -> { - return (readValue(buffer) as Long?)?.let { - MarkerEventTypeDto.ofRaw(it.toInt()) - } + return (readValue(buffer) as Long?)?.let { MarkerEventTypeDto.ofRaw(it.toInt()) } } 137.toByte() -> { - return (readValue(buffer) as Long?)?.let { - MarkerDragEventTypeDto.ofRaw(it.toInt()) - } + return (readValue(buffer) as Long?)?.let { MarkerDragEventTypeDto.ofRaw(it.toInt()) } } 138.toByte() -> { - return (readValue(buffer) as Long?)?.let { - StrokeJointTypeDto.ofRaw(it.toInt()) - } + return (readValue(buffer) as Long?)?.let { StrokeJointTypeDto.ofRaw(it.toInt()) } } 139.toByte() -> { - return (readValue(buffer) as Long?)?.let { - PatternTypeDto.ofRaw(it.toInt()) - } + return (readValue(buffer) as Long?)?.let { PatternTypeDto.ofRaw(it.toInt()) } } 140.toByte() -> { - return (readValue(buffer) as Long?)?.let { - CameraEventTypeDto.ofRaw(it.toInt()) - } + return (readValue(buffer) as Long?)?.let { CameraEventTypeDto.ofRaw(it.toInt()) } } 141.toByte() -> { - return (readValue(buffer) as Long?)?.let { - AlternateRoutesStrategyDto.ofRaw(it.toInt()) - } + return (readValue(buffer) as Long?)?.let { AlternateRoutesStrategyDto.ofRaw(it.toInt()) } } 142.toByte() -> { - return (readValue(buffer) as Long?)?.let { - RoutingStrategyDto.ofRaw(it.toInt()) - } + return (readValue(buffer) as Long?)?.let { RoutingStrategyDto.ofRaw(it.toInt()) } } 143.toByte() -> { - return (readValue(buffer) as Long?)?.let { - TravelModeDto.ofRaw(it.toInt()) - } + return (readValue(buffer) as Long?)?.let { TravelModeDto.ofRaw(it.toInt()) } } 144.toByte() -> { - return (readValue(buffer) as Long?)?.let { - RouteStatusDto.ofRaw(it.toInt()) - } + return (readValue(buffer) as Long?)?.let { RouteStatusDto.ofRaw(it.toInt()) } } 145.toByte() -> { - return (readValue(buffer) as Long?)?.let { - TrafficDelaySeverityDto.ofRaw(it.toInt()) - } + return (readValue(buffer) as Long?)?.let { TrafficDelaySeverityDto.ofRaw(it.toInt()) } } 146.toByte() -> { - return (readValue(buffer) as Long?)?.let { - AudioGuidanceTypeDto.ofRaw(it.toInt()) - } + return (readValue(buffer) as Long?)?.let { AudioGuidanceTypeDto.ofRaw(it.toInt()) } } 147.toByte() -> { - return (readValue(buffer) as Long?)?.let { - SpeedAlertSeverityDto.ofRaw(it.toInt()) - } + return (readValue(buffer) as Long?)?.let { SpeedAlertSeverityDto.ofRaw(it.toInt()) } } 148.toByte() -> { return (readValue(buffer) as Long?)?.let { @@ -2761,149 +2799,91 @@ private open class messagesPigeonCodec : StandardMessageCodec() { } } 150.toByte() -> { - return (readValue(buffer) as Long?)?.let { - ManeuverDto.ofRaw(it.toInt()) - } + return (readValue(buffer) as Long?)?.let { ManeuverDto.ofRaw(it.toInt()) } } 151.toByte() -> { - return (readValue(buffer) as Long?)?.let { - DrivingSideDto.ofRaw(it.toInt()) - } + return (readValue(buffer) as Long?)?.let { DrivingSideDto.ofRaw(it.toInt()) } } 152.toByte() -> { - return (readValue(buffer) as Long?)?.let { - NavStateDto.ofRaw(it.toInt()) - } + return (readValue(buffer) as Long?)?.let { NavStateDto.ofRaw(it.toInt()) } } 153.toByte() -> { - return (readValue(buffer) as Long?)?.let { - LaneShapeDto.ofRaw(it.toInt()) - } + return (readValue(buffer) as Long?)?.let { LaneShapeDto.ofRaw(it.toInt()) } } 154.toByte() -> { - return (readValue(buffer) as Long?)?.let { - TaskRemovedBehaviorDto.ofRaw(it.toInt()) - } + return (readValue(buffer) as Long?)?.let { TaskRemovedBehaviorDto.ofRaw(it.toInt()) } } 155.toByte() -> { - return (readValue(buffer) as? List)?.let { - AutoMapOptionsDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { AutoMapOptionsDto.fromList(it) } } 156.toByte() -> { - return (readValue(buffer) as? List)?.let { - MapOptionsDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { MapOptionsDto.fromList(it) } } 157.toByte() -> { - return (readValue(buffer) as? List)?.let { - NavigationViewOptionsDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { NavigationViewOptionsDto.fromList(it) } } 158.toByte() -> { - return (readValue(buffer) as? List)?.let { - ViewCreationOptionsDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { ViewCreationOptionsDto.fromList(it) } } 159.toByte() -> { - return (readValue(buffer) as? List)?.let { - CameraPositionDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { CameraPositionDto.fromList(it) } } 160.toByte() -> { - return (readValue(buffer) as? List)?.let { - MarkerDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { MarkerDto.fromList(it) } } 161.toByte() -> { - return (readValue(buffer) as? List)?.let { - MarkerOptionsDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { MarkerOptionsDto.fromList(it) } } 162.toByte() -> { - return (readValue(buffer) as? List)?.let { - ImageDescriptorDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { ImageDescriptorDto.fromList(it) } } 163.toByte() -> { - return (readValue(buffer) as? List)?.let { - InfoWindowDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { InfoWindowDto.fromList(it) } } 164.toByte() -> { - return (readValue(buffer) as? List)?.let { - MarkerAnchorDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { MarkerAnchorDto.fromList(it) } } 165.toByte() -> { - return (readValue(buffer) as? List)?.let { - PointOfInterestDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { PointOfInterestDto.fromList(it) } } 166.toByte() -> { - return (readValue(buffer) as? List)?.let { - IndoorLevelDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { IndoorLevelDto.fromList(it) } } 167.toByte() -> { - return (readValue(buffer) as? List)?.let { - IndoorBuildingDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { IndoorBuildingDto.fromList(it) } } 168.toByte() -> { - return (readValue(buffer) as? List)?.let { - PolygonDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { PolygonDto.fromList(it) } } 169.toByte() -> { - return (readValue(buffer) as? List)?.let { - PolygonOptionsDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { PolygonOptionsDto.fromList(it) } } 170.toByte() -> { - return (readValue(buffer) as? List)?.let { - PolygonHoleDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { PolygonHoleDto.fromList(it) } } 171.toByte() -> { - return (readValue(buffer) as? List)?.let { - StyleSpanStrokeStyleDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { StyleSpanStrokeStyleDto.fromList(it) } } 172.toByte() -> { - return (readValue(buffer) as? List)?.let { - StyleSpanDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { StyleSpanDto.fromList(it) } } 173.toByte() -> { - return (readValue(buffer) as? List)?.let { - PolylineDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { PolylineDto.fromList(it) } } 174.toByte() -> { - return (readValue(buffer) as? List)?.let { - PatternItemDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { PatternItemDto.fromList(it) } } 175.toByte() -> { - return (readValue(buffer) as? List)?.let { - PolylineOptionsDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { PolylineOptionsDto.fromList(it) } } 176.toByte() -> { - return (readValue(buffer) as? List)?.let { - CircleDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { CircleDto.fromList(it) } } 177.toByte() -> { - return (readValue(buffer) as? List)?.let { - CircleOptionsDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { CircleOptionsDto.fromList(it) } } 178.toByte() -> { - return (readValue(buffer) as? List)?.let { - MapPaddingDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { MapPaddingDto.fromList(it) } } 179.toByte() -> { return (readValue(buffer) as? List)?.let { @@ -2911,29 +2891,19 @@ private open class messagesPigeonCodec : StandardMessageCodec() { } } 180.toByte() -> { - return (readValue(buffer) as? List)?.let { - RouteTokenOptionsDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { RouteTokenOptionsDto.fromList(it) } } 181.toByte() -> { - return (readValue(buffer) as? List)?.let { - DestinationsDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { DestinationsDto.fromList(it) } } 182.toByte() -> { - return (readValue(buffer) as? List)?.let { - RoutingOptionsDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { RoutingOptionsDto.fromList(it) } } 183.toByte() -> { - return (readValue(buffer) as? List)?.let { - NavigationDisplayOptionsDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { NavigationDisplayOptionsDto.fromList(it) } } 184.toByte() -> { - return (readValue(buffer) as? List)?.let { - NavigationWaypointDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { NavigationWaypointDto.fromList(it) } } 185.toByte() -> { return (readValue(buffer) as? List)?.let { @@ -2941,9 +2911,7 @@ private open class messagesPigeonCodec : StandardMessageCodec() { } } 186.toByte() -> { - return (readValue(buffer) as? List)?.let { - NavigationTimeAndDistanceDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { NavigationTimeAndDistanceDto.fromList(it) } } 187.toByte() -> { return (readValue(buffer) as? List)?.let { @@ -2951,24 +2919,16 @@ private open class messagesPigeonCodec : StandardMessageCodec() { } } 188.toByte() -> { - return (readValue(buffer) as? List)?.let { - SimulationOptionsDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { SimulationOptionsDto.fromList(it) } } 189.toByte() -> { - return (readValue(buffer) as? List)?.let { - LatLngDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { LatLngDto.fromList(it) } } 190.toByte() -> { - return (readValue(buffer) as? List)?.let { - LatLngBoundsDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { LatLngBoundsDto.fromList(it) } } 191.toByte() -> { - return (readValue(buffer) as? List)?.let { - SpeedingUpdatedEventDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { SpeedingUpdatedEventDto.fromList(it) } } 192.toByte() -> { return (readValue(buffer) as? List)?.let { @@ -2981,9 +2941,7 @@ private open class messagesPigeonCodec : StandardMessageCodec() { } } 194.toByte() -> { - return (readValue(buffer) as? List)?.let { - SpeedAlertOptionsDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { SpeedAlertOptionsDto.fromList(it) } } 195.toByte() -> { return (readValue(buffer) as? List)?.let { @@ -2991,34 +2949,22 @@ private open class messagesPigeonCodec : StandardMessageCodec() { } } 196.toByte() -> { - return (readValue(buffer) as? List)?.let { - RouteSegmentTrafficDataDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { RouteSegmentTrafficDataDto.fromList(it) } } 197.toByte() -> { - return (readValue(buffer) as? List)?.let { - RouteSegmentDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { RouteSegmentDto.fromList(it) } } 198.toByte() -> { - return (readValue(buffer) as? List)?.let { - LaneDirectionDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { LaneDirectionDto.fromList(it) } } 199.toByte() -> { - return (readValue(buffer) as? List)?.let { - LaneDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { LaneDto.fromList(it) } } 200.toByte() -> { - return (readValue(buffer) as? List)?.let { - StepInfoDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { StepInfoDto.fromList(it) } } 201.toByte() -> { - return (readValue(buffer) as? List)?.let { - NavInfoDto.fromList(it) - } + return (readValue(buffer) as? List)?.let { NavInfoDto.fromList(it) } } 202.toByte() -> { return (readValue(buffer) as? List)?.let { @@ -3033,7 +2979,8 @@ private open class messagesPigeonCodec : StandardMessageCodec() { else -> super.readValueOfType(type, buffer) } } - override fun writeValue(stream: ByteArrayOutputStream, value: Any?) { + + override fun writeValue(stream: ByteArrayOutputStream, value: Any?) { when (value) { is MapViewTypeDto -> { stream.write(129) @@ -3340,12 +3287,10 @@ private open class messagesPigeonCodec : StandardMessageCodec() { } } - /** - * Dummy interface to force generation of the platform view creation params. - * Pigeon only generates messages if the messages are used in API. - * [ViewCreationOptionsDto] is encoded and decoded directly to generate a - * PlatformView creation message. + * Dummy interface to force generation of the platform view creation params. Pigeon only generates + * messages if the messages are used in API. [ViewCreationOptionsDto] is encoded and decoded + * directly to generate a PlatformView creation message. * * This API should never be used directly. * @@ -3356,25 +3301,37 @@ interface ViewCreationApi { companion object { /** The codec used by ViewCreationApi. */ - val codec: MessageCodec by lazy { - messagesPigeonCodec() - } - /** Sets up an instance of `ViewCreationApi` to handle messages through the `binaryMessenger`. */ + val codec: MessageCodec by lazy { messagesPigeonCodec() } + + /** + * Sets up an instance of `ViewCreationApi` to handle messages through the `binaryMessenger`. + */ @JvmOverloads - fun setUp(binaryMessenger: BinaryMessenger, api: ViewCreationApi?, messageChannelSuffix: String = "") { - val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + fun setUp( + binaryMessenger: BinaryMessenger, + api: ViewCreationApi?, + messageChannelSuffix: String = "", + ) { + val separatedMessageChannelSuffix = + if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.ViewCreationApi.create$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.ViewCreationApi.create$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val msgArg = args[0] as ViewCreationOptionsDto - val wrapped: List = try { - api.create(msgArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.create(msgArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -3384,137 +3341,300 @@ interface ViewCreationApi { } } } + /** Generated interface from Pigeon that represents a handler of messages from Flutter. */ interface MapViewApi { fun awaitMapReady(viewId: Long, callback: (Result) -> Unit) + fun isMyLocationEnabled(viewId: Long): Boolean + fun setMyLocationEnabled(viewId: Long, enabled: Boolean) + fun getMyLocation(viewId: Long): LatLngDto? + fun getMapType(viewId: Long): MapTypeDto + fun setMapType(viewId: Long, mapType: MapTypeDto) + fun setMapStyle(viewId: Long, styleJson: String) + fun isNavigationTripProgressBarEnabled(viewId: Long): Boolean + fun setNavigationTripProgressBarEnabled(viewId: Long, enabled: Boolean) + fun isNavigationHeaderEnabled(viewId: Long): Boolean + fun setNavigationHeaderEnabled(viewId: Long, enabled: Boolean) + fun getNavigationHeaderStylingOptions(viewId: Long): NavigationHeaderStylingOptionsDto - fun setNavigationHeaderStylingOptions(viewId: Long, stylingOptions: NavigationHeaderStylingOptionsDto) + + fun setNavigationHeaderStylingOptions( + viewId: Long, + stylingOptions: NavigationHeaderStylingOptionsDto, + ) + fun isNavigationFooterEnabled(viewId: Long): Boolean + fun setNavigationFooterEnabled(viewId: Long, enabled: Boolean) + fun isRecenterButtonEnabled(viewId: Long): Boolean + fun setRecenterButtonEnabled(viewId: Long, enabled: Boolean) + fun isSpeedLimitIconEnabled(viewId: Long): Boolean + fun setSpeedLimitIconEnabled(viewId: Long, enabled: Boolean) + fun isSpeedometerEnabled(viewId: Long): Boolean + fun setSpeedometerEnabled(viewId: Long, enabled: Boolean) + fun isNavigationUIEnabled(viewId: Long): Boolean + fun setNavigationUIEnabled(viewId: Long, enabled: Boolean) + fun isMyLocationButtonEnabled(viewId: Long): Boolean + fun setMyLocationButtonEnabled(viewId: Long, enabled: Boolean) + fun isConsumeMyLocationButtonClickEventsEnabled(viewId: Long): Boolean + fun setConsumeMyLocationButtonClickEventsEnabled(viewId: Long, enabled: Boolean) + fun isZoomGesturesEnabled(viewId: Long): Boolean + fun setZoomGesturesEnabled(viewId: Long, enabled: Boolean) + fun isZoomControlsEnabled(viewId: Long): Boolean + fun setZoomControlsEnabled(viewId: Long, enabled: Boolean) + fun isCompassEnabled(viewId: Long): Boolean + fun setCompassEnabled(viewId: Long, enabled: Boolean) + fun isRotateGesturesEnabled(viewId: Long): Boolean + fun setRotateGesturesEnabled(viewId: Long, enabled: Boolean) + fun isScrollGesturesEnabled(viewId: Long): Boolean + fun setScrollGesturesEnabled(viewId: Long, enabled: Boolean) + fun isScrollGesturesEnabledDuringRotateOrZoom(viewId: Long): Boolean + fun setScrollGesturesDuringRotateOrZoomEnabled(viewId: Long, enabled: Boolean) + fun isTiltGesturesEnabled(viewId: Long): Boolean + fun setTiltGesturesEnabled(viewId: Long, enabled: Boolean) + fun isMapToolbarEnabled(viewId: Long): Boolean + fun setMapToolbarEnabled(viewId: Long, enabled: Boolean) + fun isTrafficEnabled(viewId: Long): Boolean + fun setTrafficEnabled(viewId: Long, enabled: Boolean) + fun isTrafficIncidentCardsEnabled(viewId: Long): Boolean + fun setTrafficIncidentCardsEnabled(viewId: Long, enabled: Boolean) + fun isTrafficPromptsEnabled(viewId: Long): Boolean + fun setTrafficPromptsEnabled(viewId: Long, enabled: Boolean) + fun isReportIncidentButtonEnabled(viewId: Long): Boolean + fun setReportIncidentButtonEnabled(viewId: Long, enabled: Boolean) + fun isIncidentReportingAvailable(viewId: Long): Boolean + fun showReportIncidentsPanel(viewId: Long) + fun isBuildingsEnabled(viewId: Long): Boolean + fun setBuildingsEnabled(viewId: Long, enabled: Boolean) + fun isIndoorEnabled(viewId: Long): Boolean + fun setIndoorEnabled(viewId: Long, enabled: Boolean) + fun isIndoorLevelPickerEnabled(viewId: Long): Boolean + fun setIndoorLevelPickerEnabled(viewId: Long, enabled: Boolean) + fun getFocusedIndoorBuilding(viewId: Long): IndoorBuildingDto? + /** - * Activates the indoor level at [levelIndex] within the currently focused - * indoor building. Throws if no building is focused or the index is out of - * range. + * Activates the indoor level at [levelIndex] within the currently focused indoor building. Throws + * if no building is focused or the index is out of range. */ fun activateIndoorLevel(viewId: Long, levelIndex: Long) + fun getCameraPosition(viewId: Long): CameraPositionDto + fun getVisibleRegion(viewId: Long): LatLngBoundsDto + fun followMyLocation(viewId: Long, perspective: CameraPerspectiveDto, zoomLevel: Double?) - fun animateCameraToCameraPosition(viewId: Long, cameraPosition: CameraPositionDto, duration: Long?, callback: (Result) -> Unit) - fun animateCameraToLatLng(viewId: Long, point: LatLngDto, duration: Long?, callback: (Result) -> Unit) - fun animateCameraToLatLngBounds(viewId: Long, bounds: LatLngBoundsDto, padding: Double, duration: Long?, callback: (Result) -> Unit) - fun animateCameraToLatLngZoom(viewId: Long, point: LatLngDto, zoom: Double, duration: Long?, callback: (Result) -> Unit) - fun animateCameraByScroll(viewId: Long, scrollByDx: Double, scrollByDy: Double, duration: Long?, callback: (Result) -> Unit) - fun animateCameraByZoom(viewId: Long, zoomBy: Double, focusDx: Double?, focusDy: Double?, duration: Long?, callback: (Result) -> Unit) - fun animateCameraToZoom(viewId: Long, zoom: Double, duration: Long?, callback: (Result) -> Unit) + + fun animateCameraToCameraPosition( + viewId: Long, + cameraPosition: CameraPositionDto, + duration: Long?, + callback: (Result) -> Unit, + ) + + fun animateCameraToLatLng( + viewId: Long, + point: LatLngDto, + duration: Long?, + callback: (Result) -> Unit, + ) + + fun animateCameraToLatLngBounds( + viewId: Long, + bounds: LatLngBoundsDto, + padding: Double, + duration: Long?, + callback: (Result) -> Unit, + ) + + fun animateCameraToLatLngZoom( + viewId: Long, + point: LatLngDto, + zoom: Double, + duration: Long?, + callback: (Result) -> Unit, + ) + + fun animateCameraByScroll( + viewId: Long, + scrollByDx: Double, + scrollByDy: Double, + duration: Long?, + callback: (Result) -> Unit, + ) + + fun animateCameraByZoom( + viewId: Long, + zoomBy: Double, + focusDx: Double?, + focusDy: Double?, + duration: Long?, + callback: (Result) -> Unit, + ) + + fun animateCameraToZoom( + viewId: Long, + zoom: Double, + duration: Long?, + callback: (Result) -> Unit, + ) + fun moveCameraToCameraPosition(viewId: Long, cameraPosition: CameraPositionDto) + fun moveCameraToLatLng(viewId: Long, point: LatLngDto) + fun moveCameraToLatLngBounds(viewId: Long, bounds: LatLngBoundsDto, padding: Double) + fun moveCameraToLatLngZoom(viewId: Long, point: LatLngDto, zoom: Double) + fun moveCameraByScroll(viewId: Long, scrollByDx: Double, scrollByDy: Double) + fun moveCameraByZoom(viewId: Long, zoomBy: Double, focusDx: Double?, focusDy: Double?) + fun moveCameraToZoom(viewId: Long, zoom: Double) + fun showRouteOverview(viewId: Long) + fun getMinZoomPreference(viewId: Long): Double + fun getMaxZoomPreference(viewId: Long): Double + fun resetMinMaxZoomPreference(viewId: Long) + fun setMinZoomPreference(viewId: Long, minZoomPreference: Double) + fun setMaxZoomPreference(viewId: Long, maxZoomPreference: Double) + fun getMarkers(viewId: Long): List + fun addMarkers(viewId: Long, markers: List): List + fun updateMarkers(viewId: Long, markers: List): List + fun removeMarkers(viewId: Long, markers: List) + fun clearMarkers(viewId: Long) + fun clear(viewId: Long) + fun getPolygons(viewId: Long): List + fun addPolygons(viewId: Long, polygons: List): List + fun updatePolygons(viewId: Long, polygons: List): List + fun removePolygons(viewId: Long, polygons: List) + fun clearPolygons(viewId: Long) + fun getPolylines(viewId: Long): List + fun addPolylines(viewId: Long, polylines: List): List + fun updatePolylines(viewId: Long, polylines: List): List + fun removePolylines(viewId: Long, polylines: List) + fun clearPolylines(viewId: Long) + fun getCircles(viewId: Long): List + fun addCircles(viewId: Long, circles: List): List + fun updateCircles(viewId: Long, circles: List): List + fun removeCircles(viewId: Long, circles: List) + fun clearCircles(viewId: Long) + fun enableOnCameraChangedEvents(viewId: Long) + fun setPadding(viewId: Long, padding: MapPaddingDto) + fun getPadding(viewId: Long): MapPaddingDto + fun getMapColorScheme(viewId: Long): MapColorSchemeDto + fun setMapColorScheme(viewId: Long, mapColorScheme: MapColorSchemeDto) + fun getForceNightMode(viewId: Long): NavigationForceNightModeDto + fun setForceNightMode(viewId: Long, forceNightMode: NavigationForceNightModeDto) companion object { /** The codec used by MapViewApi. */ - val codec: MessageCodec by lazy { - messagesPigeonCodec() - } + val codec: MessageCodec by lazy { messagesPigeonCodec() } + /** Sets up an instance of `MapViewApi` to handle messages through the `binaryMessenger`. */ @JvmOverloads - fun setUp(binaryMessenger: BinaryMessenger, api: MapViewApi?, messageChannelSuffix: String = "") { - val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + fun setUp( + binaryMessenger: BinaryMessenger, + api: MapViewApi?, + messageChannelSuffix: String = "", + ) { + val separatedMessageChannelSuffix = + if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.awaitMapReady$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.awaitMapReady$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -3533,16 +3653,22 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMyLocationEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMyLocationEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = try { - listOf(api.isMyLocationEnabled(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.isMyLocationEnabled(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -3550,18 +3676,24 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMyLocationEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMyLocationEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val enabledArg = args[1] as Boolean - val wrapped: List = try { - api.setMyLocationEnabled(viewIdArg, enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.setMyLocationEnabled(viewIdArg, enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -3569,16 +3701,22 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMyLocation$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMyLocation$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = try { - listOf(api.getMyLocation(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.getMyLocation(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -3586,16 +3724,22 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMapType$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMapType$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = try { - listOf(api.getMapType(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.getMapType(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -3603,18 +3747,24 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapType$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapType$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val mapTypeArg = args[1] as MapTypeDto - val wrapped: List = try { - api.setMapType(viewIdArg, mapTypeArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.setMapType(viewIdArg, mapTypeArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -3622,18 +3772,24 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapStyle$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapStyle$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val styleJsonArg = args[1] as String - val wrapped: List = try { - api.setMapStyle(viewIdArg, styleJsonArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.setMapStyle(viewIdArg, styleJsonArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -3641,16 +3797,22 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationTripProgressBarEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationTripProgressBarEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = try { - listOf(api.isNavigationTripProgressBarEnabled(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.isNavigationTripProgressBarEnabled(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -3658,18 +3820,24 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationTripProgressBarEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationTripProgressBarEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val enabledArg = args[1] as Boolean - val wrapped: List = try { - api.setNavigationTripProgressBarEnabled(viewIdArg, enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.setNavigationTripProgressBarEnabled(viewIdArg, enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -3677,16 +3845,22 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationHeaderEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationHeaderEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = try { - listOf(api.isNavigationHeaderEnabled(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.isNavigationHeaderEnabled(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -3694,18 +3868,24 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationHeaderEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationHeaderEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val enabledArg = args[1] as Boolean - val wrapped: List = try { - api.setNavigationHeaderEnabled(viewIdArg, enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.setNavigationHeaderEnabled(viewIdArg, enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -3713,16 +3893,22 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getNavigationHeaderStylingOptions$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getNavigationHeaderStylingOptions$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = try { - listOf(api.getNavigationHeaderStylingOptions(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.getNavigationHeaderStylingOptions(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -3730,18 +3916,24 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationHeaderStylingOptions$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationHeaderStylingOptions$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val stylingOptionsArg = args[1] as NavigationHeaderStylingOptionsDto - val wrapped: List = try { - api.setNavigationHeaderStylingOptions(viewIdArg, stylingOptionsArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.setNavigationHeaderStylingOptions(viewIdArg, stylingOptionsArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -3749,16 +3941,22 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationFooterEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationFooterEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = try { - listOf(api.isNavigationFooterEnabled(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.isNavigationFooterEnabled(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -3766,18 +3964,24 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationFooterEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationFooterEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val enabledArg = args[1] as Boolean - val wrapped: List = try { - api.setNavigationFooterEnabled(viewIdArg, enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.setNavigationFooterEnabled(viewIdArg, enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -3785,16 +3989,22 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isRecenterButtonEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isRecenterButtonEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = try { - listOf(api.isRecenterButtonEnabled(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.isRecenterButtonEnabled(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -3802,18 +4012,24 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setRecenterButtonEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setRecenterButtonEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val enabledArg = args[1] as Boolean - val wrapped: List = try { - api.setRecenterButtonEnabled(viewIdArg, enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.setRecenterButtonEnabled(viewIdArg, enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -3821,16 +4037,22 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isSpeedLimitIconEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isSpeedLimitIconEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = try { - listOf(api.isSpeedLimitIconEnabled(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.isSpeedLimitIconEnabled(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -3838,18 +4060,24 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setSpeedLimitIconEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setSpeedLimitIconEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val enabledArg = args[1] as Boolean - val wrapped: List = try { - api.setSpeedLimitIconEnabled(viewIdArg, enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.setSpeedLimitIconEnabled(viewIdArg, enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -3857,16 +4085,22 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isSpeedometerEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isSpeedometerEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = try { - listOf(api.isSpeedometerEnabled(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.isSpeedometerEnabled(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -3874,18 +4108,24 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setSpeedometerEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setSpeedometerEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val enabledArg = args[1] as Boolean - val wrapped: List = try { - api.setSpeedometerEnabled(viewIdArg, enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.setSpeedometerEnabled(viewIdArg, enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -3893,16 +4133,22 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationUIEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationUIEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = try { - listOf(api.isNavigationUIEnabled(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.isNavigationUIEnabled(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -3910,18 +4156,24 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationUIEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationUIEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val enabledArg = args[1] as Boolean - val wrapped: List = try { - api.setNavigationUIEnabled(viewIdArg, enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.setNavigationUIEnabled(viewIdArg, enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -3929,16 +4181,22 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMyLocationButtonEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMyLocationButtonEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = try { - listOf(api.isMyLocationButtonEnabled(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.isMyLocationButtonEnabled(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -3946,18 +4204,24 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMyLocationButtonEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMyLocationButtonEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val enabledArg = args[1] as Boolean - val wrapped: List = try { - api.setMyLocationButtonEnabled(viewIdArg, enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.setMyLocationButtonEnabled(viewIdArg, enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -3965,16 +4229,22 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isConsumeMyLocationButtonClickEventsEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isConsumeMyLocationButtonClickEventsEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = try { - listOf(api.isConsumeMyLocationButtonClickEventsEnabled(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.isConsumeMyLocationButtonClickEventsEnabled(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -3982,18 +4252,24 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setConsumeMyLocationButtonClickEventsEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setConsumeMyLocationButtonClickEventsEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val enabledArg = args[1] as Boolean - val wrapped: List = try { - api.setConsumeMyLocationButtonClickEventsEnabled(viewIdArg, enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.setConsumeMyLocationButtonClickEventsEnabled(viewIdArg, enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4001,16 +4277,22 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isZoomGesturesEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isZoomGesturesEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = try { - listOf(api.isZoomGesturesEnabled(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.isZoomGesturesEnabled(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4018,18 +4300,24 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setZoomGesturesEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setZoomGesturesEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val enabledArg = args[1] as Boolean - val wrapped: List = try { - api.setZoomGesturesEnabled(viewIdArg, enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.setZoomGesturesEnabled(viewIdArg, enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4037,16 +4325,22 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isZoomControlsEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isZoomControlsEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = try { - listOf(api.isZoomControlsEnabled(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.isZoomControlsEnabled(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4054,18 +4348,24 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setZoomControlsEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setZoomControlsEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val enabledArg = args[1] as Boolean - val wrapped: List = try { - api.setZoomControlsEnabled(viewIdArg, enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.setZoomControlsEnabled(viewIdArg, enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4073,16 +4373,22 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isCompassEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isCompassEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = try { - listOf(api.isCompassEnabled(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.isCompassEnabled(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4090,18 +4396,24 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setCompassEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setCompassEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val enabledArg = args[1] as Boolean - val wrapped: List = try { - api.setCompassEnabled(viewIdArg, enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.setCompassEnabled(viewIdArg, enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4109,16 +4421,22 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isRotateGesturesEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isRotateGesturesEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = try { - listOf(api.isRotateGesturesEnabled(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.isRotateGesturesEnabled(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4126,18 +4444,24 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setRotateGesturesEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setRotateGesturesEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val enabledArg = args[1] as Boolean - val wrapped: List = try { - api.setRotateGesturesEnabled(viewIdArg, enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.setRotateGesturesEnabled(viewIdArg, enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4145,16 +4469,22 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isScrollGesturesEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isScrollGesturesEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = try { - listOf(api.isScrollGesturesEnabled(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.isScrollGesturesEnabled(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4162,18 +4492,24 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setScrollGesturesEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setScrollGesturesEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val enabledArg = args[1] as Boolean - val wrapped: List = try { - api.setScrollGesturesEnabled(viewIdArg, enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.setScrollGesturesEnabled(viewIdArg, enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4181,16 +4517,22 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isScrollGesturesEnabledDuringRotateOrZoom$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isScrollGesturesEnabledDuringRotateOrZoom$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = try { - listOf(api.isScrollGesturesEnabledDuringRotateOrZoom(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.isScrollGesturesEnabledDuringRotateOrZoom(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4198,18 +4540,24 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setScrollGesturesDuringRotateOrZoomEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setScrollGesturesDuringRotateOrZoomEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val enabledArg = args[1] as Boolean - val wrapped: List = try { - api.setScrollGesturesDuringRotateOrZoomEnabled(viewIdArg, enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.setScrollGesturesDuringRotateOrZoomEnabled(viewIdArg, enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4217,16 +4565,22 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTiltGesturesEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTiltGesturesEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = try { - listOf(api.isTiltGesturesEnabled(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.isTiltGesturesEnabled(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4234,18 +4588,24 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTiltGesturesEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTiltGesturesEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val enabledArg = args[1] as Boolean - val wrapped: List = try { - api.setTiltGesturesEnabled(viewIdArg, enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.setTiltGesturesEnabled(viewIdArg, enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4253,16 +4613,22 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMapToolbarEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMapToolbarEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = try { - listOf(api.isMapToolbarEnabled(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.isMapToolbarEnabled(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4270,18 +4636,24 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapToolbarEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapToolbarEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val enabledArg = args[1] as Boolean - val wrapped: List = try { - api.setMapToolbarEnabled(viewIdArg, enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.setMapToolbarEnabled(viewIdArg, enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4289,16 +4661,22 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = try { - listOf(api.isTrafficEnabled(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.isTrafficEnabled(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4306,18 +4684,24 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val enabledArg = args[1] as Boolean - val wrapped: List = try { - api.setTrafficEnabled(viewIdArg, enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.setTrafficEnabled(viewIdArg, enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4325,16 +4709,22 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficIncidentCardsEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficIncidentCardsEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = try { - listOf(api.isTrafficIncidentCardsEnabled(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.isTrafficIncidentCardsEnabled(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4342,18 +4732,24 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficIncidentCardsEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficIncidentCardsEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val enabledArg = args[1] as Boolean - val wrapped: List = try { - api.setTrafficIncidentCardsEnabled(viewIdArg, enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.setTrafficIncidentCardsEnabled(viewIdArg, enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4361,16 +4757,22 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficPromptsEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficPromptsEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = try { - listOf(api.isTrafficPromptsEnabled(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.isTrafficPromptsEnabled(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4378,18 +4780,24 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficPromptsEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficPromptsEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val enabledArg = args[1] as Boolean - val wrapped: List = try { - api.setTrafficPromptsEnabled(viewIdArg, enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.setTrafficPromptsEnabled(viewIdArg, enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4397,16 +4805,22 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isReportIncidentButtonEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isReportIncidentButtonEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = try { - listOf(api.isReportIncidentButtonEnabled(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.isReportIncidentButtonEnabled(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4414,18 +4828,24 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setReportIncidentButtonEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setReportIncidentButtonEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val enabledArg = args[1] as Boolean - val wrapped: List = try { - api.setReportIncidentButtonEnabled(viewIdArg, enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.setReportIncidentButtonEnabled(viewIdArg, enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4433,16 +4853,22 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isIncidentReportingAvailable$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isIncidentReportingAvailable$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = try { - listOf(api.isIncidentReportingAvailable(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.isIncidentReportingAvailable(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4450,17 +4876,23 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.showReportIncidentsPanel$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.showReportIncidentsPanel$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = try { - api.showReportIncidentsPanel(viewIdArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.showReportIncidentsPanel(viewIdArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4468,16 +4900,22 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isBuildingsEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isBuildingsEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = try { - listOf(api.isBuildingsEnabled(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.isBuildingsEnabled(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4485,18 +4923,24 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setBuildingsEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setBuildingsEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val enabledArg = args[1] as Boolean - val wrapped: List = try { - api.setBuildingsEnabled(viewIdArg, enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.setBuildingsEnabled(viewIdArg, enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4504,16 +4948,22 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isIndoorEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isIndoorEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = try { - listOf(api.isIndoorEnabled(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.isIndoorEnabled(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4521,18 +4971,24 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setIndoorEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setIndoorEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val enabledArg = args[1] as Boolean - val wrapped: List = try { - api.setIndoorEnabled(viewIdArg, enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.setIndoorEnabled(viewIdArg, enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4540,16 +4996,22 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isIndoorLevelPickerEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isIndoorLevelPickerEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = try { - listOf(api.isIndoorLevelPickerEnabled(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.isIndoorLevelPickerEnabled(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4557,18 +5019,24 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setIndoorLevelPickerEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setIndoorLevelPickerEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val enabledArg = args[1] as Boolean - val wrapped: List = try { - api.setIndoorLevelPickerEnabled(viewIdArg, enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.setIndoorLevelPickerEnabled(viewIdArg, enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4576,16 +5044,22 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getFocusedIndoorBuilding$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getFocusedIndoorBuilding$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = try { - listOf(api.getFocusedIndoorBuilding(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.getFocusedIndoorBuilding(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4593,18 +5067,24 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.activateIndoorLevel$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.activateIndoorLevel$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val levelIndexArg = args[1] as Long - val wrapped: List = try { - api.activateIndoorLevel(viewIdArg, levelIndexArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.activateIndoorLevel(viewIdArg, levelIndexArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4612,16 +5092,22 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getCameraPosition$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getCameraPosition$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = try { - listOf(api.getCameraPosition(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.getCameraPosition(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4629,16 +5115,22 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getVisibleRegion$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getVisibleRegion$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = try { - listOf(api.getVisibleRegion(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.getVisibleRegion(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4646,19 +5138,25 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.followMyLocation$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.followMyLocation$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val perspectiveArg = args[1] as CameraPerspectiveDto val zoomLevelArg = args[2] as Double? - val wrapped: List = try { - api.followMyLocation(viewIdArg, perspectiveArg, zoomLevelArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.followMyLocation(viewIdArg, perspectiveArg, zoomLevelArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4666,14 +5164,20 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToCameraPosition$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToCameraPosition$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val cameraPositionArg = args[1] as CameraPositionDto val durationArg = args[2] as Long? - api.animateCameraToCameraPosition(viewIdArg, cameraPositionArg, durationArg) { result: Result -> + api.animateCameraToCameraPosition(viewIdArg, cameraPositionArg, durationArg) { + result: Result -> val error = result.exceptionOrNull() if (error != null) { reply.reply(MessagesPigeonUtils.wrapError(error)) @@ -4688,7 +5192,12 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLng$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLng$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -4710,7 +5219,12 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLngBounds$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLngBounds$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -4718,7 +5232,8 @@ interface MapViewApi { val boundsArg = args[1] as LatLngBoundsDto val paddingArg = args[2] as Double val durationArg = args[3] as Long? - api.animateCameraToLatLngBounds(viewIdArg, boundsArg, paddingArg, durationArg) { result: Result -> + api.animateCameraToLatLngBounds(viewIdArg, boundsArg, paddingArg, durationArg) { + result: Result -> val error = result.exceptionOrNull() if (error != null) { reply.reply(MessagesPigeonUtils.wrapError(error)) @@ -4733,7 +5248,12 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLngZoom$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLngZoom$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -4741,7 +5261,8 @@ interface MapViewApi { val pointArg = args[1] as LatLngDto val zoomArg = args[2] as Double val durationArg = args[3] as Long? - api.animateCameraToLatLngZoom(viewIdArg, pointArg, zoomArg, durationArg) { result: Result -> + api.animateCameraToLatLngZoom(viewIdArg, pointArg, zoomArg, durationArg) { + result: Result -> val error = result.exceptionOrNull() if (error != null) { reply.reply(MessagesPigeonUtils.wrapError(error)) @@ -4756,7 +5277,12 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraByScroll$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraByScroll$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -4764,7 +5290,8 @@ interface MapViewApi { val scrollByDxArg = args[1] as Double val scrollByDyArg = args[2] as Double val durationArg = args[3] as Long? - api.animateCameraByScroll(viewIdArg, scrollByDxArg, scrollByDyArg, durationArg) { result: Result -> + api.animateCameraByScroll(viewIdArg, scrollByDxArg, scrollByDyArg, durationArg) { + result: Result -> val error = result.exceptionOrNull() if (error != null) { reply.reply(MessagesPigeonUtils.wrapError(error)) @@ -4779,7 +5306,12 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraByZoom$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraByZoom$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -4788,7 +5320,8 @@ interface MapViewApi { val focusDxArg = args[2] as Double? val focusDyArg = args[3] as Double? val durationArg = args[4] as Long? - api.animateCameraByZoom(viewIdArg, zoomByArg, focusDxArg, focusDyArg, durationArg) { result: Result -> + api.animateCameraByZoom(viewIdArg, zoomByArg, focusDxArg, focusDyArg, durationArg) { + result: Result -> val error = result.exceptionOrNull() if (error != null) { reply.reply(MessagesPigeonUtils.wrapError(error)) @@ -4803,7 +5336,12 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToZoom$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToZoom$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -4825,18 +5363,24 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToCameraPosition$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToCameraPosition$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val cameraPositionArg = args[1] as CameraPositionDto - val wrapped: List = try { - api.moveCameraToCameraPosition(viewIdArg, cameraPositionArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.moveCameraToCameraPosition(viewIdArg, cameraPositionArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4844,18 +5388,24 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLng$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLng$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val pointArg = args[1] as LatLngDto - val wrapped: List = try { - api.moveCameraToLatLng(viewIdArg, pointArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.moveCameraToLatLng(viewIdArg, pointArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4863,19 +5413,25 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLngBounds$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLngBounds$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val boundsArg = args[1] as LatLngBoundsDto val paddingArg = args[2] as Double - val wrapped: List = try { - api.moveCameraToLatLngBounds(viewIdArg, boundsArg, paddingArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.moveCameraToLatLngBounds(viewIdArg, boundsArg, paddingArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4883,19 +5439,25 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLngZoom$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLngZoom$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val pointArg = args[1] as LatLngDto val zoomArg = args[2] as Double - val wrapped: List = try { - api.moveCameraToLatLngZoom(viewIdArg, pointArg, zoomArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.moveCameraToLatLngZoom(viewIdArg, pointArg, zoomArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4903,19 +5465,25 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraByScroll$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraByScroll$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val scrollByDxArg = args[1] as Double val scrollByDyArg = args[2] as Double - val wrapped: List = try { - api.moveCameraByScroll(viewIdArg, scrollByDxArg, scrollByDyArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.moveCameraByScroll(viewIdArg, scrollByDxArg, scrollByDyArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4923,7 +5491,12 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraByZoom$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraByZoom$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -4931,12 +5504,13 @@ interface MapViewApi { val zoomByArg = args[1] as Double val focusDxArg = args[2] as Double? val focusDyArg = args[3] as Double? - val wrapped: List = try { - api.moveCameraByZoom(viewIdArg, zoomByArg, focusDxArg, focusDyArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.moveCameraByZoom(viewIdArg, zoomByArg, focusDxArg, focusDyArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4944,18 +5518,24 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToZoom$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToZoom$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val zoomArg = args[1] as Double - val wrapped: List = try { - api.moveCameraToZoom(viewIdArg, zoomArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.moveCameraToZoom(viewIdArg, zoomArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4963,17 +5543,23 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.showRouteOverview$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.showRouteOverview$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = try { - api.showRouteOverview(viewIdArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.showRouteOverview(viewIdArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4981,16 +5567,22 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMinZoomPreference$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMinZoomPreference$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = try { - listOf(api.getMinZoomPreference(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.getMinZoomPreference(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4998,16 +5590,22 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMaxZoomPreference$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMaxZoomPreference$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = try { - listOf(api.getMaxZoomPreference(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.getMaxZoomPreference(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5015,17 +5613,23 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.resetMinMaxZoomPreference$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.resetMinMaxZoomPreference$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = try { - api.resetMinMaxZoomPreference(viewIdArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.resetMinMaxZoomPreference(viewIdArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5033,18 +5637,24 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMinZoomPreference$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMinZoomPreference$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val minZoomPreferenceArg = args[1] as Double - val wrapped: List = try { - api.setMinZoomPreference(viewIdArg, minZoomPreferenceArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.setMinZoomPreference(viewIdArg, minZoomPreferenceArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5052,18 +5662,24 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMaxZoomPreference$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMaxZoomPreference$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val maxZoomPreferenceArg = args[1] as Double - val wrapped: List = try { - api.setMaxZoomPreference(viewIdArg, maxZoomPreferenceArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.setMaxZoomPreference(viewIdArg, maxZoomPreferenceArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5071,16 +5687,22 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMarkers$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMarkers$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = try { - listOf(api.getMarkers(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.getMarkers(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5088,17 +5710,23 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addMarkers$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addMarkers$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val markersArg = args[1] as List - val wrapped: List = try { - listOf(api.addMarkers(viewIdArg, markersArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.addMarkers(viewIdArg, markersArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5106,17 +5734,23 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updateMarkers$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updateMarkers$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val markersArg = args[1] as List - val wrapped: List = try { - listOf(api.updateMarkers(viewIdArg, markersArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.updateMarkers(viewIdArg, markersArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5124,18 +5758,24 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removeMarkers$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removeMarkers$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val markersArg = args[1] as List - val wrapped: List = try { - api.removeMarkers(viewIdArg, markersArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.removeMarkers(viewIdArg, markersArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5143,17 +5783,23 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearMarkers$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearMarkers$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = try { - api.clearMarkers(viewIdArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.clearMarkers(viewIdArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5161,17 +5807,23 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clear$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clear$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = try { - api.clear(viewIdArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.clear(viewIdArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5179,16 +5831,22 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPolygons$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPolygons$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = try { - listOf(api.getPolygons(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.getPolygons(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5196,17 +5854,23 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addPolygons$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addPolygons$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val polygonsArg = args[1] as List - val wrapped: List = try { - listOf(api.addPolygons(viewIdArg, polygonsArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.addPolygons(viewIdArg, polygonsArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5214,17 +5878,23 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updatePolygons$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updatePolygons$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val polygonsArg = args[1] as List - val wrapped: List = try { - listOf(api.updatePolygons(viewIdArg, polygonsArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.updatePolygons(viewIdArg, polygonsArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5232,18 +5902,24 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removePolygons$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removePolygons$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val polygonsArg = args[1] as List - val wrapped: List = try { - api.removePolygons(viewIdArg, polygonsArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.removePolygons(viewIdArg, polygonsArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5251,17 +5927,23 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearPolygons$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearPolygons$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = try { - api.clearPolygons(viewIdArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.clearPolygons(viewIdArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5269,16 +5951,22 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPolylines$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPolylines$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = try { - listOf(api.getPolylines(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.getPolylines(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5286,17 +5974,23 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addPolylines$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addPolylines$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val polylinesArg = args[1] as List - val wrapped: List = try { - listOf(api.addPolylines(viewIdArg, polylinesArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.addPolylines(viewIdArg, polylinesArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5304,17 +5998,23 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updatePolylines$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updatePolylines$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val polylinesArg = args[1] as List - val wrapped: List = try { - listOf(api.updatePolylines(viewIdArg, polylinesArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.updatePolylines(viewIdArg, polylinesArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5322,18 +6022,24 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removePolylines$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removePolylines$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val polylinesArg = args[1] as List - val wrapped: List = try { - api.removePolylines(viewIdArg, polylinesArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.removePolylines(viewIdArg, polylinesArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5341,17 +6047,23 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearPolylines$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearPolylines$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = try { - api.clearPolylines(viewIdArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.clearPolylines(viewIdArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5359,16 +6071,22 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getCircles$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getCircles$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = try { - listOf(api.getCircles(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.getCircles(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5376,17 +6094,23 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addCircles$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addCircles$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val circlesArg = args[1] as List - val wrapped: List = try { - listOf(api.addCircles(viewIdArg, circlesArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.addCircles(viewIdArg, circlesArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5394,17 +6118,23 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updateCircles$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updateCircles$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val circlesArg = args[1] as List - val wrapped: List = try { - listOf(api.updateCircles(viewIdArg, circlesArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.updateCircles(viewIdArg, circlesArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5412,18 +6142,24 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removeCircles$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removeCircles$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val circlesArg = args[1] as List - val wrapped: List = try { - api.removeCircles(viewIdArg, circlesArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.removeCircles(viewIdArg, circlesArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5431,17 +6167,23 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearCircles$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearCircles$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = try { - api.clearCircles(viewIdArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.clearCircles(viewIdArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5449,17 +6191,23 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.enableOnCameraChangedEvents$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.enableOnCameraChangedEvents$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = try { - api.enableOnCameraChangedEvents(viewIdArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.enableOnCameraChangedEvents(viewIdArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5467,18 +6215,24 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setPadding$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setPadding$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val paddingArg = args[1] as MapPaddingDto - val wrapped: List = try { - api.setPadding(viewIdArg, paddingArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.setPadding(viewIdArg, paddingArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5486,16 +6240,22 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPadding$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPadding$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = try { - listOf(api.getPadding(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.getPadding(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5503,16 +6263,22 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMapColorScheme$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMapColorScheme$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = try { - listOf(api.getMapColorScheme(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.getMapColorScheme(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5520,18 +6286,24 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapColorScheme$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapColorScheme$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val mapColorSchemeArg = args[1] as MapColorSchemeDto - val wrapped: List = try { - api.setMapColorScheme(viewIdArg, mapColorSchemeArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.setMapColorScheme(viewIdArg, mapColorSchemeArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5539,16 +6311,22 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getForceNightMode$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getForceNightMode$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = try { - listOf(api.getForceNightMode(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.getForceNightMode(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5556,18 +6334,24 @@ interface MapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setForceNightMode$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setForceNightMode$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val forceNightModeArg = args[1] as NavigationForceNightModeDto - val wrapped: List = try { - api.setForceNightMode(viewIdArg, forceNightModeArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.setForceNightMode(viewIdArg, forceNightModeArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5577,25 +6361,47 @@ interface MapViewApi { } } } + /** Generated interface from Pigeon that represents a handler of messages from Flutter. */ interface ImageRegistryApi { - fun registerBitmapImage(imageId: String, bytes: ByteArray, imagePixelRatio: Double, width: Double?, height: Double?): ImageDescriptorDto + fun registerBitmapImage( + imageId: String, + bytes: ByteArray, + imagePixelRatio: Double, + width: Double?, + height: Double?, + ): ImageDescriptorDto + fun unregisterImage(imageDescriptor: ImageDescriptorDto) + fun getRegisteredImages(): List + fun clearRegisteredImages(filter: RegisteredImageTypeDto?) + fun getRegisteredImageData(imageDescriptor: ImageDescriptorDto): ByteArray? companion object { /** The codec used by ImageRegistryApi. */ - val codec: MessageCodec by lazy { - messagesPigeonCodec() - } - /** Sets up an instance of `ImageRegistryApi` to handle messages through the `binaryMessenger`. */ + val codec: MessageCodec by lazy { messagesPigeonCodec() } + + /** + * Sets up an instance of `ImageRegistryApi` to handle messages through the `binaryMessenger`. + */ @JvmOverloads - fun setUp(binaryMessenger: BinaryMessenger, api: ImageRegistryApi?, messageChannelSuffix: String = "") { - val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + fun setUp( + binaryMessenger: BinaryMessenger, + api: ImageRegistryApi?, + messageChannelSuffix: String = "", + ) { + val separatedMessageChannelSuffix = + if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.registerBitmapImage$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.registerBitmapImage$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -5604,11 +6410,20 @@ interface ImageRegistryApi { val imagePixelRatioArg = args[2] as Double val widthArg = args[3] as Double? val heightArg = args[4] as Double? - val wrapped: List = try { - listOf(api.registerBitmapImage(imageIdArg, bytesArg, imagePixelRatioArg, widthArg, heightArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf( + api.registerBitmapImage( + imageIdArg, + bytesArg, + imagePixelRatioArg, + widthArg, + heightArg, + ) + ) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5616,17 +6431,23 @@ interface ImageRegistryApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.unregisterImage$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.unregisterImage$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val imageDescriptorArg = args[0] as ImageDescriptorDto - val wrapped: List = try { - api.unregisterImage(imageDescriptorArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.unregisterImage(imageDescriptorArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5634,14 +6455,20 @@ interface ImageRegistryApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.getRegisteredImages$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.getRegisteredImages$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - listOf(api.getRegisteredImages()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.getRegisteredImages()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5649,17 +6476,23 @@ interface ImageRegistryApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.clearRegisteredImages$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.clearRegisteredImages$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val filterArg = args[0] as RegisteredImageTypeDto? - val wrapped: List = try { - api.clearRegisteredImages(filterArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.clearRegisteredImages(filterArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5667,16 +6500,22 @@ interface ImageRegistryApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.getRegisteredImageData$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.getRegisteredImageData$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val imageDescriptorArg = args[0] as ImageDescriptorDto - val wrapped: List = try { - listOf(api.getRegisteredImageData(imageDescriptorArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.getRegisteredImageData(imageDescriptorArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5686,18 +6525,22 @@ interface ImageRegistryApi { } } } + /** Generated class from Pigeon that represents Flutter messages that can be called from Kotlin. */ -class ViewEventApi(private val binaryMessenger: BinaryMessenger, private val messageChannelSuffix: String = "") { +class ViewEventApi( + private val binaryMessenger: BinaryMessenger, + private val messageChannelSuffix: String = "", +) { companion object { /** The codec used by ViewEventApi. */ - val codec: MessageCodec by lazy { - messagesPigeonCodec() - } + val codec: MessageCodec by lazy { messagesPigeonCodec() } } - fun onMapClickEvent(viewIdArg: Long, latLngArg: LatLngDto, callback: (Result) -> Unit) -{ - val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMapClickEvent$separatedMessageChannelSuffix" + + fun onMapClickEvent(viewIdArg: Long, latLngArg: LatLngDto, callback: (Result) -> Unit) { + val separatedMessageChannelSuffix = + if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = + "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMapClickEvent$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(viewIdArg, latLngArg)) { if (it is List<*>) { @@ -5708,13 +6551,15 @@ class ViewEventApi(private val binaryMessenger: BinaryMessenger, private val mes } } else { callback(Result.failure(MessagesPigeonUtils.createConnectionError(channelName))) - } + } } } - fun onMapLongClickEvent(viewIdArg: Long, latLngArg: LatLngDto, callback: (Result) -> Unit) -{ - val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMapLongClickEvent$separatedMessageChannelSuffix" + + fun onMapLongClickEvent(viewIdArg: Long, latLngArg: LatLngDto, callback: (Result) -> Unit) { + val separatedMessageChannelSuffix = + if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = + "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMapLongClickEvent$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(viewIdArg, latLngArg)) { if (it is List<*>) { @@ -5725,13 +6570,15 @@ class ViewEventApi(private val binaryMessenger: BinaryMessenger, private val mes } } else { callback(Result.failure(MessagesPigeonUtils.createConnectionError(channelName))) - } + } } } - fun onRecenterButtonClicked(viewIdArg: Long, callback: (Result) -> Unit) -{ - val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onRecenterButtonClicked$separatedMessageChannelSuffix" + + fun onRecenterButtonClicked(viewIdArg: Long, callback: (Result) -> Unit) { + val separatedMessageChannelSuffix = + if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = + "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onRecenterButtonClicked$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(viewIdArg)) { if (it is List<*>) { @@ -5742,13 +6589,20 @@ class ViewEventApi(private val binaryMessenger: BinaryMessenger, private val mes } } else { callback(Result.failure(MessagesPigeonUtils.createConnectionError(channelName))) - } + } } } - fun onMarkerEvent(viewIdArg: Long, markerIdArg: String, eventTypeArg: MarkerEventTypeDto, callback: (Result) -> Unit) -{ - val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMarkerEvent$separatedMessageChannelSuffix" + + fun onMarkerEvent( + viewIdArg: Long, + markerIdArg: String, + eventTypeArg: MarkerEventTypeDto, + callback: (Result) -> Unit, + ) { + val separatedMessageChannelSuffix = + if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = + "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMarkerEvent$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(viewIdArg, markerIdArg, eventTypeArg)) { if (it is List<*>) { @@ -5759,13 +6613,21 @@ class ViewEventApi(private val binaryMessenger: BinaryMessenger, private val mes } } else { callback(Result.failure(MessagesPigeonUtils.createConnectionError(channelName))) - } + } } } - fun onMarkerDragEvent(viewIdArg: Long, markerIdArg: String, eventTypeArg: MarkerDragEventTypeDto, positionArg: LatLngDto, callback: (Result) -> Unit) -{ - val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMarkerDragEvent$separatedMessageChannelSuffix" + + fun onMarkerDragEvent( + viewIdArg: Long, + markerIdArg: String, + eventTypeArg: MarkerDragEventTypeDto, + positionArg: LatLngDto, + callback: (Result) -> Unit, + ) { + val separatedMessageChannelSuffix = + if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = + "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMarkerDragEvent$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(viewIdArg, markerIdArg, eventTypeArg, positionArg)) { if (it is List<*>) { @@ -5776,13 +6638,15 @@ class ViewEventApi(private val binaryMessenger: BinaryMessenger, private val mes } } else { callback(Result.failure(MessagesPigeonUtils.createConnectionError(channelName))) - } + } } } - fun onPolygonClicked(viewIdArg: Long, polygonIdArg: String, callback: (Result) -> Unit) -{ - val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPolygonClicked$separatedMessageChannelSuffix" + + fun onPolygonClicked(viewIdArg: Long, polygonIdArg: String, callback: (Result) -> Unit) { + val separatedMessageChannelSuffix = + if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = + "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPolygonClicked$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(viewIdArg, polygonIdArg)) { if (it is List<*>) { @@ -5793,13 +6657,15 @@ class ViewEventApi(private val binaryMessenger: BinaryMessenger, private val mes } } else { callback(Result.failure(MessagesPigeonUtils.createConnectionError(channelName))) - } + } } } - fun onPolylineClicked(viewIdArg: Long, polylineIdArg: String, callback: (Result) -> Unit) -{ - val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPolylineClicked$separatedMessageChannelSuffix" + + fun onPolylineClicked(viewIdArg: Long, polylineIdArg: String, callback: (Result) -> Unit) { + val separatedMessageChannelSuffix = + if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = + "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPolylineClicked$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(viewIdArg, polylineIdArg)) { if (it is List<*>) { @@ -5810,13 +6676,15 @@ class ViewEventApi(private val binaryMessenger: BinaryMessenger, private val mes } } else { callback(Result.failure(MessagesPigeonUtils.createConnectionError(channelName))) - } + } } } - fun onCircleClicked(viewIdArg: Long, circleIdArg: String, callback: (Result) -> Unit) -{ - val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onCircleClicked$separatedMessageChannelSuffix" + + fun onCircleClicked(viewIdArg: Long, circleIdArg: String, callback: (Result) -> Unit) { + val separatedMessageChannelSuffix = + if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = + "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onCircleClicked$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(viewIdArg, circleIdArg)) { if (it is List<*>) { @@ -5827,13 +6695,19 @@ class ViewEventApi(private val binaryMessenger: BinaryMessenger, private val mes } } else { callback(Result.failure(MessagesPigeonUtils.createConnectionError(channelName))) - } + } } } - fun onPoiClick(viewIdArg: Long, pointOfInterestArg: PointOfInterestDto, callback: (Result) -> Unit) -{ - val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPoiClick$separatedMessageChannelSuffix" + + fun onPoiClick( + viewIdArg: Long, + pointOfInterestArg: PointOfInterestDto, + callback: (Result) -> Unit, + ) { + val separatedMessageChannelSuffix = + if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = + "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPoiClick$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(viewIdArg, pointOfInterestArg)) { if (it is List<*>) { @@ -5844,13 +6718,19 @@ class ViewEventApi(private val binaryMessenger: BinaryMessenger, private val mes } } else { callback(Result.failure(MessagesPigeonUtils.createConnectionError(channelName))) - } + } } } - fun onNavigationUIEnabledChanged(viewIdArg: Long, navigationUIEnabledArg: Boolean, callback: (Result) -> Unit) -{ - val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onNavigationUIEnabledChanged$separatedMessageChannelSuffix" + + fun onNavigationUIEnabledChanged( + viewIdArg: Long, + navigationUIEnabledArg: Boolean, + callback: (Result) -> Unit, + ) { + val separatedMessageChannelSuffix = + if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = + "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onNavigationUIEnabledChanged$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(viewIdArg, navigationUIEnabledArg)) { if (it is List<*>) { @@ -5861,13 +6741,19 @@ class ViewEventApi(private val binaryMessenger: BinaryMessenger, private val mes } } else { callback(Result.failure(MessagesPigeonUtils.createConnectionError(channelName))) - } + } } } - fun onPromptVisibilityChanged(viewIdArg: Long, promptVisibleArg: Boolean, callback: (Result) -> Unit) -{ - val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPromptVisibilityChanged$separatedMessageChannelSuffix" + + fun onPromptVisibilityChanged( + viewIdArg: Long, + promptVisibleArg: Boolean, + callback: (Result) -> Unit, + ) { + val separatedMessageChannelSuffix = + if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = + "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPromptVisibilityChanged$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(viewIdArg, promptVisibleArg)) { if (it is List<*>) { @@ -5878,13 +6764,15 @@ class ViewEventApi(private val binaryMessenger: BinaryMessenger, private val mes } } else { callback(Result.failure(MessagesPigeonUtils.createConnectionError(channelName))) - } + } } } - fun onMyLocationClicked(viewIdArg: Long, callback: (Result) -> Unit) -{ - val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMyLocationClicked$separatedMessageChannelSuffix" + + fun onMyLocationClicked(viewIdArg: Long, callback: (Result) -> Unit) { + val separatedMessageChannelSuffix = + if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = + "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMyLocationClicked$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(viewIdArg)) { if (it is List<*>) { @@ -5895,13 +6783,15 @@ class ViewEventApi(private val binaryMessenger: BinaryMessenger, private val mes } } else { callback(Result.failure(MessagesPigeonUtils.createConnectionError(channelName))) - } + } } } - fun onMyLocationButtonClicked(viewIdArg: Long, callback: (Result) -> Unit) -{ - val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMyLocationButtonClicked$separatedMessageChannelSuffix" + + fun onMyLocationButtonClicked(viewIdArg: Long, callback: (Result) -> Unit) { + val separatedMessageChannelSuffix = + if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = + "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMyLocationButtonClicked$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(viewIdArg)) { if (it is List<*>) { @@ -5912,13 +6802,19 @@ class ViewEventApi(private val binaryMessenger: BinaryMessenger, private val mes } } else { callback(Result.failure(MessagesPigeonUtils.createConnectionError(channelName))) - } + } } } - fun onIndoorFocusedBuildingChanged(viewIdArg: Long, buildingArg: IndoorBuildingDto?, callback: (Result) -> Unit) -{ - val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onIndoorFocusedBuildingChanged$separatedMessageChannelSuffix" + + fun onIndoorFocusedBuildingChanged( + viewIdArg: Long, + buildingArg: IndoorBuildingDto?, + callback: (Result) -> Unit, + ) { + val separatedMessageChannelSuffix = + if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = + "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onIndoorFocusedBuildingChanged$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(viewIdArg, buildingArg)) { if (it is List<*>) { @@ -5929,13 +6825,19 @@ class ViewEventApi(private val binaryMessenger: BinaryMessenger, private val mes } } else { callback(Result.failure(MessagesPigeonUtils.createConnectionError(channelName))) - } + } } } - fun onIndoorActiveLevelChanged(viewIdArg: Long, buildingArg: IndoorBuildingDto?, callback: (Result) -> Unit) -{ - val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onIndoorActiveLevelChanged$separatedMessageChannelSuffix" + + fun onIndoorActiveLevelChanged( + viewIdArg: Long, + buildingArg: IndoorBuildingDto?, + callback: (Result) -> Unit, + ) { + val separatedMessageChannelSuffix = + if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = + "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onIndoorActiveLevelChanged$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(viewIdArg, buildingArg)) { if (it is List<*>) { @@ -5946,13 +6848,20 @@ class ViewEventApi(private val binaryMessenger: BinaryMessenger, private val mes } } else { callback(Result.failure(MessagesPigeonUtils.createConnectionError(channelName))) - } + } } } - fun onCameraChanged(viewIdArg: Long, eventTypeArg: CameraEventTypeDto, positionArg: CameraPositionDto, callback: (Result) -> Unit) -{ - val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onCameraChanged$separatedMessageChannelSuffix" + + fun onCameraChanged( + viewIdArg: Long, + eventTypeArg: CameraEventTypeDto, + positionArg: CameraPositionDto, + callback: (Result) -> Unit, + ) { + val separatedMessageChannelSuffix = + if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = + "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onCameraChanged$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(viewIdArg, eventTypeArg, positionArg)) { if (it is List<*>) { @@ -5963,65 +6872,140 @@ class ViewEventApi(private val binaryMessenger: BinaryMessenger, private val mes } } else { callback(Result.failure(MessagesPigeonUtils.createConnectionError(channelName))) - } + } } } } + /** Generated interface from Pigeon that represents a handler of messages from Flutter. */ interface NavigationSessionApi { - fun createNavigationSession(abnormalTerminationReportingEnabled: Boolean, behavior: TaskRemovedBehaviorDto, callback: (Result) -> Unit) + fun createNavigationSession( + abnormalTerminationReportingEnabled: Boolean, + behavior: TaskRemovedBehaviorDto, + callback: (Result) -> Unit, + ) + fun isInitialized(): Boolean + fun cleanup(resetSession: Boolean) - fun showTermsAndConditionsDialog(title: String, companyName: String, shouldOnlyShowDriverAwarenessDisclaimer: Boolean, uiParams: TermsAndConditionsUIParamsDto?, callback: (Result) -> Unit) + + fun showTermsAndConditionsDialog( + title: String, + companyName: String, + shouldOnlyShowDriverAwarenessDisclaimer: Boolean, + uiParams: TermsAndConditionsUIParamsDto?, + callback: (Result) -> Unit, + ) + fun areTermsAccepted(): Boolean + fun resetTermsAccepted() + fun getNavSDKVersion(): String + fun isGuidanceRunning(): Boolean + fun startGuidance() + fun stopGuidance() + fun setDestinations(destinations: DestinationsDto, callback: (Result) -> Unit) + fun clearDestinations() + fun continueToNextDestination(callback: (Result) -> Unit) + fun getCurrentTimeAndDistance(): NavigationTimeAndDistanceDto + fun setAudioGuidance(settings: NavigationAudioGuidanceSettingsDto) + fun setSpeedAlertOptions(options: SpeedAlertOptionsDto) + fun getRouteSegments(): List + fun getTraveledRoute(): List + fun getCurrentRouteSegment(): RouteSegmentDto? + fun setUserLocation(location: LatLngDto) + fun removeUserLocation() + fun simulateLocationsAlongExistingRoute() + fun simulateLocationsAlongExistingRouteWithOptions(options: SimulationOptionsDto) - fun simulateLocationsAlongNewRoute(waypoints: List, callback: (Result) -> Unit) - fun simulateLocationsAlongNewRouteWithRoutingOptions(waypoints: List, routingOptions: RoutingOptionsDto, callback: (Result) -> Unit) - fun simulateLocationsAlongNewRouteWithRoutingAndSimulationOptions(waypoints: List, routingOptions: RoutingOptionsDto, simulationOptions: SimulationOptionsDto, callback: (Result) -> Unit) + + fun simulateLocationsAlongNewRoute( + waypoints: List, + callback: (Result) -> Unit, + ) + + fun simulateLocationsAlongNewRouteWithRoutingOptions( + waypoints: List, + routingOptions: RoutingOptionsDto, + callback: (Result) -> Unit, + ) + + fun simulateLocationsAlongNewRouteWithRoutingAndSimulationOptions( + waypoints: List, + routingOptions: RoutingOptionsDto, + simulationOptions: SimulationOptionsDto, + callback: (Result) -> Unit, + ) + fun pauseSimulation() + fun resumeSimulation() + /** iOS-only method. */ fun allowBackgroundLocationUpdates(allow: Boolean) + fun enableRoadSnappedLocationUpdates() + fun disableRoadSnappedLocationUpdates() - fun enableTurnByTurnNavigationEvents(numNextStepsToPreview: Long?, options: StepImageGenerationOptionsDto?) + + fun enableTurnByTurnNavigationEvents( + numNextStepsToPreview: Long?, + options: StepImageGenerationOptionsDto?, + ) + fun disableTurnByTurnNavigationEvents() - fun registerRemainingTimeOrDistanceChangedListener(remainingTimeThresholdSeconds: Long, remainingDistanceThresholdMeters: Long) + + fun registerRemainingTimeOrDistanceChangedListener( + remainingTimeThresholdSeconds: Long, + remainingDistanceThresholdMeters: Long, + ) companion object { /** The codec used by NavigationSessionApi. */ - val codec: MessageCodec by lazy { - messagesPigeonCodec() - } - /** Sets up an instance of `NavigationSessionApi` to handle messages through the `binaryMessenger`. */ + val codec: MessageCodec by lazy { messagesPigeonCodec() } + + /** + * Sets up an instance of `NavigationSessionApi` to handle messages through the + * `binaryMessenger`. + */ @JvmOverloads - fun setUp(binaryMessenger: BinaryMessenger, api: NavigationSessionApi?, messageChannelSuffix: String = "") { - val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + fun setUp( + binaryMessenger: BinaryMessenger, + api: NavigationSessionApi?, + messageChannelSuffix: String = "", + ) { + val separatedMessageChannelSuffix = + if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.createNavigationSession$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.createNavigationSession$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val abnormalTerminationReportingEnabledArg = args[0] as Boolean val behaviorArg = args[1] as TaskRemovedBehaviorDto - api.createNavigationSession(abnormalTerminationReportingEnabledArg, behaviorArg) { result: Result -> + api.createNavigationSession(abnormalTerminationReportingEnabledArg, behaviorArg) { + result: Result -> val error = result.exceptionOrNull() if (error != null) { reply.reply(MessagesPigeonUtils.wrapError(error)) @@ -6035,14 +7019,20 @@ interface NavigationSessionApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.isInitialized$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.isInitialized$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - listOf(api.isInitialized()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.isInitialized()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -6050,17 +7040,23 @@ interface NavigationSessionApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.cleanup$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.cleanup$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val resetSessionArg = args[0] as Boolean - val wrapped: List = try { - api.cleanup(resetSessionArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.cleanup(resetSessionArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -6068,7 +7064,12 @@ interface NavigationSessionApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.showTermsAndConditionsDialog$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.showTermsAndConditionsDialog$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -6076,7 +7077,12 @@ interface NavigationSessionApi { val companyNameArg = args[1] as String val shouldOnlyShowDriverAwarenessDisclaimerArg = args[2] as Boolean val uiParamsArg = args[3] as TermsAndConditionsUIParamsDto? - api.showTermsAndConditionsDialog(titleArg, companyNameArg, shouldOnlyShowDriverAwarenessDisclaimerArg, uiParamsArg) { result: Result -> + api.showTermsAndConditionsDialog( + titleArg, + companyNameArg, + shouldOnlyShowDriverAwarenessDisclaimerArg, + uiParamsArg, + ) { result: Result -> val error = result.exceptionOrNull() if (error != null) { reply.reply(MessagesPigeonUtils.wrapError(error)) @@ -6091,14 +7097,20 @@ interface NavigationSessionApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.areTermsAccepted$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.areTermsAccepted$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - listOf(api.areTermsAccepted()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.areTermsAccepted()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -6106,15 +7118,21 @@ interface NavigationSessionApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.resetTermsAccepted$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.resetTermsAccepted$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - api.resetTermsAccepted() - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.resetTermsAccepted() + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -6122,14 +7140,20 @@ interface NavigationSessionApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getNavSDKVersion$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getNavSDKVersion$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - listOf(api.getNavSDKVersion()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.getNavSDKVersion()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -6137,14 +7161,20 @@ interface NavigationSessionApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.isGuidanceRunning$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.isGuidanceRunning$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - listOf(api.isGuidanceRunning()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.isGuidanceRunning()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -6152,15 +7182,21 @@ interface NavigationSessionApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.startGuidance$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.startGuidance$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - api.startGuidance() - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.startGuidance() + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -6168,15 +7204,21 @@ interface NavigationSessionApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.stopGuidance$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.stopGuidance$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - api.stopGuidance() - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.stopGuidance() + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -6184,7 +7226,12 @@ interface NavigationSessionApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setDestinations$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setDestinations$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -6204,15 +7251,21 @@ interface NavigationSessionApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.clearDestinations$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.clearDestinations$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - api.clearDestinations() - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.clearDestinations() + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -6220,10 +7273,15 @@ interface NavigationSessionApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.continueToNextDestination$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.continueToNextDestination$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> - api.continueToNextDestination{ result: Result -> + api.continueToNextDestination { result: Result -> val error = result.exceptionOrNull() if (error != null) { reply.reply(MessagesPigeonUtils.wrapError(error)) @@ -6238,14 +7296,20 @@ interface NavigationSessionApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getCurrentTimeAndDistance$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getCurrentTimeAndDistance$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - listOf(api.getCurrentTimeAndDistance()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.getCurrentTimeAndDistance()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -6253,17 +7317,23 @@ interface NavigationSessionApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setAudioGuidance$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setAudioGuidance$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val settingsArg = args[0] as NavigationAudioGuidanceSettingsDto - val wrapped: List = try { - api.setAudioGuidance(settingsArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.setAudioGuidance(settingsArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -6271,17 +7341,23 @@ interface NavigationSessionApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setSpeedAlertOptions$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setSpeedAlertOptions$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val optionsArg = args[0] as SpeedAlertOptionsDto - val wrapped: List = try { - api.setSpeedAlertOptions(optionsArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.setSpeedAlertOptions(optionsArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -6289,14 +7365,20 @@ interface NavigationSessionApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getRouteSegments$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getRouteSegments$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - listOf(api.getRouteSegments()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.getRouteSegments()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -6304,14 +7386,20 @@ interface NavigationSessionApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getTraveledRoute$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getTraveledRoute$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - listOf(api.getTraveledRoute()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.getTraveledRoute()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -6319,14 +7407,20 @@ interface NavigationSessionApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getCurrentRouteSegment$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getCurrentRouteSegment$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - listOf(api.getCurrentRouteSegment()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.getCurrentRouteSegment()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -6334,17 +7428,23 @@ interface NavigationSessionApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setUserLocation$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setUserLocation$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val locationArg = args[0] as LatLngDto - val wrapped: List = try { - api.setUserLocation(locationArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.setUserLocation(locationArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -6352,15 +7452,21 @@ interface NavigationSessionApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.removeUserLocation$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.removeUserLocation$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - api.removeUserLocation() - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.removeUserLocation() + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -6368,15 +7474,21 @@ interface NavigationSessionApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongExistingRoute$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongExistingRoute$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - api.simulateLocationsAlongExistingRoute() - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.simulateLocationsAlongExistingRoute() + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -6384,17 +7496,23 @@ interface NavigationSessionApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongExistingRouteWithOptions$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongExistingRouteWithOptions$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val optionsArg = args[0] as SimulationOptionsDto - val wrapped: List = try { - api.simulateLocationsAlongExistingRouteWithOptions(optionsArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.simulateLocationsAlongExistingRouteWithOptions(optionsArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -6402,7 +7520,12 @@ interface NavigationSessionApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRoute$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRoute$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -6422,13 +7545,19 @@ interface NavigationSessionApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRouteWithRoutingOptions$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRouteWithRoutingOptions$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val waypointsArg = args[0] as List val routingOptionsArg = args[1] as RoutingOptionsDto - api.simulateLocationsAlongNewRouteWithRoutingOptions(waypointsArg, routingOptionsArg) { result: Result -> + api.simulateLocationsAlongNewRouteWithRoutingOptions(waypointsArg, routingOptionsArg) { + result: Result -> val error = result.exceptionOrNull() if (error != null) { reply.reply(MessagesPigeonUtils.wrapError(error)) @@ -6443,14 +7572,23 @@ interface NavigationSessionApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRouteWithRoutingAndSimulationOptions$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRouteWithRoutingAndSimulationOptions$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val waypointsArg = args[0] as List val routingOptionsArg = args[1] as RoutingOptionsDto val simulationOptionsArg = args[2] as SimulationOptionsDto - api.simulateLocationsAlongNewRouteWithRoutingAndSimulationOptions(waypointsArg, routingOptionsArg, simulationOptionsArg) { result: Result -> + api.simulateLocationsAlongNewRouteWithRoutingAndSimulationOptions( + waypointsArg, + routingOptionsArg, + simulationOptionsArg, + ) { result: Result -> val error = result.exceptionOrNull() if (error != null) { reply.reply(MessagesPigeonUtils.wrapError(error)) @@ -6465,15 +7603,21 @@ interface NavigationSessionApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.pauseSimulation$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.pauseSimulation$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - api.pauseSimulation() - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.pauseSimulation() + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -6481,15 +7625,21 @@ interface NavigationSessionApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.resumeSimulation$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.resumeSimulation$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - api.resumeSimulation() - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.resumeSimulation() + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -6497,17 +7647,23 @@ interface NavigationSessionApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.allowBackgroundLocationUpdates$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.allowBackgroundLocationUpdates$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val allowArg = args[0] as Boolean - val wrapped: List = try { - api.allowBackgroundLocationUpdates(allowArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.allowBackgroundLocationUpdates(allowArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -6515,15 +7671,21 @@ interface NavigationSessionApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.enableRoadSnappedLocationUpdates$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.enableRoadSnappedLocationUpdates$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - api.enableRoadSnappedLocationUpdates() - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.enableRoadSnappedLocationUpdates() + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -6531,15 +7693,21 @@ interface NavigationSessionApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.disableRoadSnappedLocationUpdates$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.disableRoadSnappedLocationUpdates$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - api.disableRoadSnappedLocationUpdates() - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.disableRoadSnappedLocationUpdates() + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -6547,18 +7715,24 @@ interface NavigationSessionApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.enableTurnByTurnNavigationEvents$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.enableTurnByTurnNavigationEvents$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val numNextStepsToPreviewArg = args[0] as Long? val optionsArg = args[1] as StepImageGenerationOptionsDto? - val wrapped: List = try { - api.enableTurnByTurnNavigationEvents(numNextStepsToPreviewArg, optionsArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.enableTurnByTurnNavigationEvents(numNextStepsToPreviewArg, optionsArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -6566,15 +7740,21 @@ interface NavigationSessionApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.disableTurnByTurnNavigationEvents$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.disableTurnByTurnNavigationEvents$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - api.disableTurnByTurnNavigationEvents() - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.disableTurnByTurnNavigationEvents() + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -6582,18 +7762,27 @@ interface NavigationSessionApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.registerRemainingTimeOrDistanceChangedListener$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.registerRemainingTimeOrDistanceChangedListener$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val remainingTimeThresholdSecondsArg = args[0] as Long val remainingDistanceThresholdMetersArg = args[1] as Long - val wrapped: List = try { - api.registerRemainingTimeOrDistanceChangedListener(remainingTimeThresholdSecondsArg, remainingDistanceThresholdMetersArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.registerRemainingTimeOrDistanceChangedListener( + remainingTimeThresholdSecondsArg, + remainingDistanceThresholdMetersArg, + ) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -6603,18 +7792,22 @@ interface NavigationSessionApi { } } } + /** Generated class from Pigeon that represents Flutter messages that can be called from Kotlin. */ -class NavigationSessionEventApi(private val binaryMessenger: BinaryMessenger, private val messageChannelSuffix: String = "") { +class NavigationSessionEventApi( + private val binaryMessenger: BinaryMessenger, + private val messageChannelSuffix: String = "", +) { companion object { /** The codec used by NavigationSessionEventApi. */ - val codec: MessageCodec by lazy { - messagesPigeonCodec() - } + val codec: MessageCodec by lazy { messagesPigeonCodec() } } - fun onSpeedingUpdated(msgArg: SpeedingUpdatedEventDto, callback: (Result) -> Unit) -{ - val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onSpeedingUpdated$separatedMessageChannelSuffix" + + fun onSpeedingUpdated(msgArg: SpeedingUpdatedEventDto, callback: (Result) -> Unit) { + val separatedMessageChannelSuffix = + if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onSpeedingUpdated$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(msgArg)) { if (it is List<*>) { @@ -6625,13 +7818,15 @@ class NavigationSessionEventApi(private val binaryMessenger: BinaryMessenger, pr } } else { callback(Result.failure(MessagesPigeonUtils.createConnectionError(channelName))) - } + } } } - fun onRoadSnappedLocationUpdated(locationArg: LatLngDto, callback: (Result) -> Unit) -{ - val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRoadSnappedLocationUpdated$separatedMessageChannelSuffix" + + fun onRoadSnappedLocationUpdated(locationArg: LatLngDto, callback: (Result) -> Unit) { + val separatedMessageChannelSuffix = + if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRoadSnappedLocationUpdated$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(locationArg)) { if (it is List<*>) { @@ -6642,13 +7837,15 @@ class NavigationSessionEventApi(private val binaryMessenger: BinaryMessenger, pr } } else { callback(Result.failure(MessagesPigeonUtils.createConnectionError(channelName))) - } + } } } - fun onRoadSnappedRawLocationUpdated(locationArg: LatLngDto, callback: (Result) -> Unit) -{ - val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRoadSnappedRawLocationUpdated$separatedMessageChannelSuffix" + + fun onRoadSnappedRawLocationUpdated(locationArg: LatLngDto, callback: (Result) -> Unit) { + val separatedMessageChannelSuffix = + if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRoadSnappedRawLocationUpdated$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(locationArg)) { if (it is List<*>) { @@ -6659,13 +7856,15 @@ class NavigationSessionEventApi(private val binaryMessenger: BinaryMessenger, pr } } else { callback(Result.failure(MessagesPigeonUtils.createConnectionError(channelName))) - } + } } } - fun onArrival(waypointArg: NavigationWaypointDto, callback: (Result) -> Unit) -{ - val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onArrival$separatedMessageChannelSuffix" + + fun onArrival(waypointArg: NavigationWaypointDto, callback: (Result) -> Unit) { + val separatedMessageChannelSuffix = + if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onArrival$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(waypointArg)) { if (it is List<*>) { @@ -6676,13 +7875,15 @@ class NavigationSessionEventApi(private val binaryMessenger: BinaryMessenger, pr } } else { callback(Result.failure(MessagesPigeonUtils.createConnectionError(channelName))) - } + } } } - fun onRouteChanged(callback: (Result) -> Unit) -{ - val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRouteChanged$separatedMessageChannelSuffix" + + fun onRouteChanged(callback: (Result) -> Unit) { + val separatedMessageChannelSuffix = + if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRouteChanged$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(null) { if (it is List<*>) { @@ -6693,13 +7894,20 @@ class NavigationSessionEventApi(private val binaryMessenger: BinaryMessenger, pr } } else { callback(Result.failure(MessagesPigeonUtils.createConnectionError(channelName))) - } + } } } - fun onRemainingTimeOrDistanceChanged(remainingTimeArg: Double, remainingDistanceArg: Double, delaySeverityArg: TrafficDelaySeverityDto, callback: (Result) -> Unit) -{ - val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRemainingTimeOrDistanceChanged$separatedMessageChannelSuffix" + + fun onRemainingTimeOrDistanceChanged( + remainingTimeArg: Double, + remainingDistanceArg: Double, + delaySeverityArg: TrafficDelaySeverityDto, + callback: (Result) -> Unit, + ) { + val separatedMessageChannelSuffix = + if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRemainingTimeOrDistanceChanged$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(remainingTimeArg, remainingDistanceArg, delaySeverityArg)) { if (it is List<*>) { @@ -6710,14 +7918,16 @@ class NavigationSessionEventApi(private val binaryMessenger: BinaryMessenger, pr } } else { callback(Result.failure(MessagesPigeonUtils.createConnectionError(channelName))) - } + } } } + /** Android-only event. */ - fun onTrafficUpdated(callback: (Result) -> Unit) -{ - val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onTrafficUpdated$separatedMessageChannelSuffix" + fun onTrafficUpdated(callback: (Result) -> Unit) { + val separatedMessageChannelSuffix = + if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onTrafficUpdated$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(null) { if (it is List<*>) { @@ -6728,14 +7938,16 @@ class NavigationSessionEventApi(private val binaryMessenger: BinaryMessenger, pr } } else { callback(Result.failure(MessagesPigeonUtils.createConnectionError(channelName))) - } + } } } + /** Android-only event. */ - fun onRerouting(callback: (Result) -> Unit) -{ - val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRerouting$separatedMessageChannelSuffix" + fun onRerouting(callback: (Result) -> Unit) { + val separatedMessageChannelSuffix = + if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRerouting$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(null) { if (it is List<*>) { @@ -6746,14 +7958,16 @@ class NavigationSessionEventApi(private val binaryMessenger: BinaryMessenger, pr } } else { callback(Result.failure(MessagesPigeonUtils.createConnectionError(channelName))) - } + } } } + /** Android-only event. */ - fun onGpsAvailabilityUpdate(availableArg: Boolean, callback: (Result) -> Unit) -{ - val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onGpsAvailabilityUpdate$separatedMessageChannelSuffix" + fun onGpsAvailabilityUpdate(availableArg: Boolean, callback: (Result) -> Unit) { + val separatedMessageChannelSuffix = + if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onGpsAvailabilityUpdate$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(availableArg)) { if (it is List<*>) { @@ -6764,14 +7978,19 @@ class NavigationSessionEventApi(private val binaryMessenger: BinaryMessenger, pr } } else { callback(Result.failure(MessagesPigeonUtils.createConnectionError(channelName))) - } + } } } + /** Android-only event. */ - fun onGpsAvailabilityChange(eventArg: GpsAvailabilityChangeEventDto, callback: (Result) -> Unit) -{ - val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onGpsAvailabilityChange$separatedMessageChannelSuffix" + fun onGpsAvailabilityChange( + eventArg: GpsAvailabilityChangeEventDto, + callback: (Result) -> Unit, + ) { + val separatedMessageChannelSuffix = + if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onGpsAvailabilityChange$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(eventArg)) { if (it is List<*>) { @@ -6782,14 +8001,16 @@ class NavigationSessionEventApi(private val binaryMessenger: BinaryMessenger, pr } } else { callback(Result.failure(MessagesPigeonUtils.createConnectionError(channelName))) - } + } } } + /** Turn-by-Turn navigation events. */ - fun onNavInfo(navInfoArg: NavInfoDto, callback: (Result) -> Unit) -{ - val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onNavInfo$separatedMessageChannelSuffix" + fun onNavInfo(navInfoArg: NavInfoDto, callback: (Result) -> Unit) { + val separatedMessageChannelSuffix = + if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onNavInfo$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(navInfoArg)) { if (it is List<*>) { @@ -6800,17 +8021,16 @@ class NavigationSessionEventApi(private val binaryMessenger: BinaryMessenger, pr } } else { callback(Result.failure(MessagesPigeonUtils.createConnectionError(channelName))) - } + } } } - /** - * Navigation session event. Called when a new navigation - * session starts with active guidance. - */ - fun onNewNavigationSession(callback: (Result) -> Unit) -{ - val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onNewNavigationSession$separatedMessageChannelSuffix" + + /** Navigation session event. Called when a new navigation session starts with active guidance. */ + fun onNewNavigationSession(callback: (Result) -> Unit) { + val separatedMessageChannelSuffix = + if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onNewNavigationSession$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(null) { if (it is List<*>) { @@ -6821,137 +8041,269 @@ class NavigationSessionEventApi(private val binaryMessenger: BinaryMessenger, pr } } else { callback(Result.failure(MessagesPigeonUtils.createConnectionError(channelName))) - } + } } } } + /** Generated interface from Pigeon that represents a handler of messages from Flutter. */ interface AutoMapViewApi { /** - * Sets the map options to be used for Android Auto and CarPlay views. - * Should be called before the Auto/CarPlay screen is created. - * This allows customization of mapId and basic map settings. + * Sets the map options to be used for Android Auto and CarPlay views. Should be called before the + * Auto/CarPlay screen is created. This allows customization of mapId and basic map settings. */ fun setAutoMapOptions(mapOptions: AutoMapOptionsDto) + fun isMyLocationEnabled(): Boolean + fun setMyLocationEnabled(enabled: Boolean) + fun getMyLocation(): LatLngDto? + fun getMapType(): MapTypeDto + fun setMapType(mapType: MapTypeDto) + fun setMapStyle(styleJson: String) + fun getCameraPosition(): CameraPositionDto + fun getVisibleRegion(): LatLngBoundsDto + fun followMyLocation(perspective: CameraPerspectiveDto, zoomLevel: Double?) - fun animateCameraToCameraPosition(cameraPosition: CameraPositionDto, duration: Long?, callback: (Result) -> Unit) + + fun animateCameraToCameraPosition( + cameraPosition: CameraPositionDto, + duration: Long?, + callback: (Result) -> Unit, + ) + fun animateCameraToLatLng(point: LatLngDto, duration: Long?, callback: (Result) -> Unit) - fun animateCameraToLatLngBounds(bounds: LatLngBoundsDto, padding: Double, duration: Long?, callback: (Result) -> Unit) - fun animateCameraToLatLngZoom(point: LatLngDto, zoom: Double, duration: Long?, callback: (Result) -> Unit) - fun animateCameraByScroll(scrollByDx: Double, scrollByDy: Double, duration: Long?, callback: (Result) -> Unit) - fun animateCameraByZoom(zoomBy: Double, focusDx: Double?, focusDy: Double?, duration: Long?, callback: (Result) -> Unit) + + fun animateCameraToLatLngBounds( + bounds: LatLngBoundsDto, + padding: Double, + duration: Long?, + callback: (Result) -> Unit, + ) + + fun animateCameraToLatLngZoom( + point: LatLngDto, + zoom: Double, + duration: Long?, + callback: (Result) -> Unit, + ) + + fun animateCameraByScroll( + scrollByDx: Double, + scrollByDy: Double, + duration: Long?, + callback: (Result) -> Unit, + ) + + fun animateCameraByZoom( + zoomBy: Double, + focusDx: Double?, + focusDy: Double?, + duration: Long?, + callback: (Result) -> Unit, + ) + fun animateCameraToZoom(zoom: Double, duration: Long?, callback: (Result) -> Unit) + fun moveCameraToCameraPosition(cameraPosition: CameraPositionDto) + fun moveCameraToLatLng(point: LatLngDto) + fun moveCameraToLatLngBounds(bounds: LatLngBoundsDto, padding: Double) + fun moveCameraToLatLngZoom(point: LatLngDto, zoom: Double) + fun moveCameraByScroll(scrollByDx: Double, scrollByDy: Double) + fun moveCameraByZoom(zoomBy: Double, focusDx: Double?, focusDy: Double?) + fun moveCameraToZoom(zoom: Double) + fun getMinZoomPreference(): Double + fun getMaxZoomPreference(): Double + fun resetMinMaxZoomPreference() + fun setMinZoomPreference(minZoomPreference: Double) + fun setMaxZoomPreference(maxZoomPreference: Double) + fun setMyLocationButtonEnabled(enabled: Boolean) + fun setConsumeMyLocationButtonClickEventsEnabled(enabled: Boolean) + fun setZoomGesturesEnabled(enabled: Boolean) + fun setZoomControlsEnabled(enabled: Boolean) + fun setCompassEnabled(enabled: Boolean) + fun setRotateGesturesEnabled(enabled: Boolean) + fun setScrollGesturesEnabled(enabled: Boolean) + fun setScrollGesturesDuringRotateOrZoomEnabled(enabled: Boolean) + fun setTiltGesturesEnabled(enabled: Boolean) + fun setMapToolbarEnabled(enabled: Boolean) + fun setTrafficEnabled(enabled: Boolean) + fun setTrafficPromptsEnabled(enabled: Boolean) + fun setTrafficIncidentCardsEnabled(enabled: Boolean) + fun setNavigationTripProgressBarEnabled(enabled: Boolean) + fun setSpeedLimitIconEnabled(enabled: Boolean) + fun setSpeedometerEnabled(enabled: Boolean) + fun setNavigationUIEnabled(enabled: Boolean) + fun isMyLocationButtonEnabled(): Boolean + fun isConsumeMyLocationButtonClickEventsEnabled(): Boolean + fun isZoomGesturesEnabled(): Boolean + fun isZoomControlsEnabled(): Boolean + fun isCompassEnabled(): Boolean + fun isRotateGesturesEnabled(): Boolean + fun isScrollGesturesEnabled(): Boolean + fun isScrollGesturesEnabledDuringRotateOrZoom(): Boolean + fun isTiltGesturesEnabled(): Boolean + fun isMapToolbarEnabled(): Boolean + fun isTrafficEnabled(): Boolean + fun isTrafficPromptsEnabled(): Boolean + fun isTrafficIncidentCardsEnabled(): Boolean + fun isNavigationTripProgressBarEnabled(): Boolean + fun isSpeedLimitIconEnabled(): Boolean + fun isSpeedometerEnabled(): Boolean + fun isNavigationUIEnabled(): Boolean + fun isIndoorEnabled(): Boolean + fun setIndoorEnabled(enabled: Boolean) + fun getFocusedIndoorBuilding(): IndoorBuildingDto? + fun activateIndoorLevel(levelIndex: Long) + fun showRouteOverview() + fun getMarkers(): List + fun addMarkers(markers: List): List + fun updateMarkers(markers: List): List + fun removeMarkers(markers: List) + fun clearMarkers() + fun clear() + fun getPolygons(): List + fun addPolygons(polygons: List): List + fun updatePolygons(polygons: List): List + fun removePolygons(polygons: List) + fun clearPolygons() + fun getPolylines(): List + fun addPolylines(polylines: List): List + fun updatePolylines(polylines: List): List + fun removePolylines(polylines: List) + fun clearPolylines() + fun getCircles(): List + fun addCircles(circles: List): List + fun updateCircles(circles: List): List + fun removeCircles(circles: List) + fun clearCircles() + fun enableOnCameraChangedEvents() + fun isAutoScreenAvailable(): Boolean + fun setPadding(padding: MapPaddingDto) + fun getPadding(): MapPaddingDto + fun getMapColorScheme(): MapColorSchemeDto + fun setMapColorScheme(mapColorScheme: MapColorSchemeDto) + fun getForceNightMode(): NavigationForceNightModeDto + fun setForceNightMode(forceNightMode: NavigationForceNightModeDto) + fun sendCustomNavigationAutoEvent(event: String, data: Any) companion object { /** The codec used by AutoMapViewApi. */ - val codec: MessageCodec by lazy { - messagesPigeonCodec() - } + val codec: MessageCodec by lazy { messagesPigeonCodec() } + /** Sets up an instance of `AutoMapViewApi` to handle messages through the `binaryMessenger`. */ @JvmOverloads - fun setUp(binaryMessenger: BinaryMessenger, api: AutoMapViewApi?, messageChannelSuffix: String = "") { - val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + fun setUp( + binaryMessenger: BinaryMessenger, + api: AutoMapViewApi?, + messageChannelSuffix: String = "", + ) { + val separatedMessageChannelSuffix = + if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setAutoMapOptions$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setAutoMapOptions$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val mapOptionsArg = args[0] as AutoMapOptionsDto - val wrapped: List = try { - api.setAutoMapOptions(mapOptionsArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.setAutoMapOptions(mapOptionsArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -6959,14 +8311,20 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isMyLocationEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isMyLocationEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - listOf(api.isMyLocationEnabled()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.isMyLocationEnabled()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -6974,17 +8332,23 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMyLocationEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMyLocationEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val enabledArg = args[0] as Boolean - val wrapped: List = try { - api.setMyLocationEnabled(enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.setMyLocationEnabled(enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -6992,14 +8356,20 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMyLocation$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMyLocation$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - listOf(api.getMyLocation()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.getMyLocation()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7007,14 +8377,20 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMapType$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMapType$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - listOf(api.getMapType()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.getMapType()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7022,17 +8398,23 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapType$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapType$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val mapTypeArg = args[0] as MapTypeDto - val wrapped: List = try { - api.setMapType(mapTypeArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.setMapType(mapTypeArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7040,17 +8422,23 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapStyle$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapStyle$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val styleJsonArg = args[0] as String - val wrapped: List = try { - api.setMapStyle(styleJsonArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.setMapStyle(styleJsonArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7058,14 +8446,20 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getCameraPosition$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getCameraPosition$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - listOf(api.getCameraPosition()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.getCameraPosition()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7073,14 +8467,20 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getVisibleRegion$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getVisibleRegion$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - listOf(api.getVisibleRegion()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.getVisibleRegion()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7088,18 +8488,24 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.followMyLocation$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.followMyLocation$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val perspectiveArg = args[0] as CameraPerspectiveDto val zoomLevelArg = args[1] as Double? - val wrapped: List = try { - api.followMyLocation(perspectiveArg, zoomLevelArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.followMyLocation(perspectiveArg, zoomLevelArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7107,13 +8513,19 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToCameraPosition$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToCameraPosition$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val cameraPositionArg = args[0] as CameraPositionDto val durationArg = args[1] as Long? - api.animateCameraToCameraPosition(cameraPositionArg, durationArg) { result: Result -> + api.animateCameraToCameraPosition(cameraPositionArg, durationArg) { + result: Result -> val error = result.exceptionOrNull() if (error != null) { reply.reply(MessagesPigeonUtils.wrapError(error)) @@ -7128,7 +8540,12 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLng$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLng$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -7149,14 +8566,20 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLngBounds$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLngBounds$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val boundsArg = args[0] as LatLngBoundsDto val paddingArg = args[1] as Double val durationArg = args[2] as Long? - api.animateCameraToLatLngBounds(boundsArg, paddingArg, durationArg) { result: Result -> + api.animateCameraToLatLngBounds(boundsArg, paddingArg, durationArg) { + result: Result -> val error = result.exceptionOrNull() if (error != null) { reply.reply(MessagesPigeonUtils.wrapError(error)) @@ -7171,14 +8594,20 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLngZoom$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLngZoom$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val pointArg = args[0] as LatLngDto val zoomArg = args[1] as Double val durationArg = args[2] as Long? - api.animateCameraToLatLngZoom(pointArg, zoomArg, durationArg) { result: Result -> + api.animateCameraToLatLngZoom(pointArg, zoomArg, durationArg) { result: Result + -> val error = result.exceptionOrNull() if (error != null) { reply.reply(MessagesPigeonUtils.wrapError(error)) @@ -7193,14 +8622,20 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraByScroll$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraByScroll$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val scrollByDxArg = args[0] as Double val scrollByDyArg = args[1] as Double val durationArg = args[2] as Long? - api.animateCameraByScroll(scrollByDxArg, scrollByDyArg, durationArg) { result: Result -> + api.animateCameraByScroll(scrollByDxArg, scrollByDyArg, durationArg) { + result: Result -> val error = result.exceptionOrNull() if (error != null) { reply.reply(MessagesPigeonUtils.wrapError(error)) @@ -7215,7 +8650,12 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraByZoom$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraByZoom$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -7223,7 +8663,8 @@ interface AutoMapViewApi { val focusDxArg = args[1] as Double? val focusDyArg = args[2] as Double? val durationArg = args[3] as Long? - api.animateCameraByZoom(zoomByArg, focusDxArg, focusDyArg, durationArg) { result: Result -> + api.animateCameraByZoom(zoomByArg, focusDxArg, focusDyArg, durationArg) { + result: Result -> val error = result.exceptionOrNull() if (error != null) { reply.reply(MessagesPigeonUtils.wrapError(error)) @@ -7238,7 +8679,12 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToZoom$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToZoom$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -7259,17 +8705,23 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToCameraPosition$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToCameraPosition$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val cameraPositionArg = args[0] as CameraPositionDto - val wrapped: List = try { - api.moveCameraToCameraPosition(cameraPositionArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.moveCameraToCameraPosition(cameraPositionArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7277,17 +8729,23 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLng$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLng$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val pointArg = args[0] as LatLngDto - val wrapped: List = try { - api.moveCameraToLatLng(pointArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.moveCameraToLatLng(pointArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7295,18 +8753,24 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLngBounds$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLngBounds$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val boundsArg = args[0] as LatLngBoundsDto val paddingArg = args[1] as Double - val wrapped: List = try { - api.moveCameraToLatLngBounds(boundsArg, paddingArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.moveCameraToLatLngBounds(boundsArg, paddingArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7314,18 +8778,24 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLngZoom$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLngZoom$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val pointArg = args[0] as LatLngDto val zoomArg = args[1] as Double - val wrapped: List = try { - api.moveCameraToLatLngZoom(pointArg, zoomArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.moveCameraToLatLngZoom(pointArg, zoomArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7333,18 +8803,24 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraByScroll$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraByScroll$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val scrollByDxArg = args[0] as Double val scrollByDyArg = args[1] as Double - val wrapped: List = try { - api.moveCameraByScroll(scrollByDxArg, scrollByDyArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.moveCameraByScroll(scrollByDxArg, scrollByDyArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7352,19 +8828,25 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraByZoom$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraByZoom$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val zoomByArg = args[0] as Double val focusDxArg = args[1] as Double? val focusDyArg = args[2] as Double? - val wrapped: List = try { - api.moveCameraByZoom(zoomByArg, focusDxArg, focusDyArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.moveCameraByZoom(zoomByArg, focusDxArg, focusDyArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7372,17 +8854,23 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToZoom$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToZoom$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val zoomArg = args[0] as Double - val wrapped: List = try { - api.moveCameraToZoom(zoomArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.moveCameraToZoom(zoomArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7390,14 +8878,20 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMinZoomPreference$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMinZoomPreference$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - listOf(api.getMinZoomPreference()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.getMinZoomPreference()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7405,14 +8899,20 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMaxZoomPreference$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMaxZoomPreference$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - listOf(api.getMaxZoomPreference()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.getMaxZoomPreference()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7420,15 +8920,21 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.resetMinMaxZoomPreference$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.resetMinMaxZoomPreference$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - api.resetMinMaxZoomPreference() - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.resetMinMaxZoomPreference() + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7436,17 +8942,23 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMinZoomPreference$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMinZoomPreference$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val minZoomPreferenceArg = args[0] as Double - val wrapped: List = try { - api.setMinZoomPreference(minZoomPreferenceArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.setMinZoomPreference(minZoomPreferenceArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7454,17 +8966,23 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMaxZoomPreference$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMaxZoomPreference$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val maxZoomPreferenceArg = args[0] as Double - val wrapped: List = try { - api.setMaxZoomPreference(maxZoomPreferenceArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.setMaxZoomPreference(maxZoomPreferenceArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7472,17 +8990,23 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMyLocationButtonEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMyLocationButtonEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val enabledArg = args[0] as Boolean - val wrapped: List = try { - api.setMyLocationButtonEnabled(enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.setMyLocationButtonEnabled(enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7490,17 +9014,23 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setConsumeMyLocationButtonClickEventsEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setConsumeMyLocationButtonClickEventsEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val enabledArg = args[0] as Boolean - val wrapped: List = try { - api.setConsumeMyLocationButtonClickEventsEnabled(enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.setConsumeMyLocationButtonClickEventsEnabled(enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7508,17 +9038,23 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setZoomGesturesEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setZoomGesturesEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val enabledArg = args[0] as Boolean - val wrapped: List = try { - api.setZoomGesturesEnabled(enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.setZoomGesturesEnabled(enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7526,17 +9062,23 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setZoomControlsEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setZoomControlsEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val enabledArg = args[0] as Boolean - val wrapped: List = try { - api.setZoomControlsEnabled(enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.setZoomControlsEnabled(enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7544,17 +9086,23 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setCompassEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setCompassEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val enabledArg = args[0] as Boolean - val wrapped: List = try { - api.setCompassEnabled(enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.setCompassEnabled(enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7562,17 +9110,23 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setRotateGesturesEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setRotateGesturesEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val enabledArg = args[0] as Boolean - val wrapped: List = try { - api.setRotateGesturesEnabled(enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.setRotateGesturesEnabled(enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7580,17 +9134,23 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setScrollGesturesEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setScrollGesturesEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val enabledArg = args[0] as Boolean - val wrapped: List = try { - api.setScrollGesturesEnabled(enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.setScrollGesturesEnabled(enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7598,17 +9158,23 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setScrollGesturesDuringRotateOrZoomEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setScrollGesturesDuringRotateOrZoomEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val enabledArg = args[0] as Boolean - val wrapped: List = try { - api.setScrollGesturesDuringRotateOrZoomEnabled(enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.setScrollGesturesDuringRotateOrZoomEnabled(enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7616,17 +9182,23 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTiltGesturesEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTiltGesturesEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val enabledArg = args[0] as Boolean - val wrapped: List = try { - api.setTiltGesturesEnabled(enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.setTiltGesturesEnabled(enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7634,17 +9206,23 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapToolbarEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapToolbarEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val enabledArg = args[0] as Boolean - val wrapped: List = try { - api.setMapToolbarEnabled(enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.setMapToolbarEnabled(enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7652,17 +9230,23 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val enabledArg = args[0] as Boolean - val wrapped: List = try { - api.setTrafficEnabled(enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.setTrafficEnabled(enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7670,17 +9254,23 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficPromptsEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficPromptsEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val enabledArg = args[0] as Boolean - val wrapped: List = try { - api.setTrafficPromptsEnabled(enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.setTrafficPromptsEnabled(enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7688,17 +9278,23 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficIncidentCardsEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficIncidentCardsEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val enabledArg = args[0] as Boolean - val wrapped: List = try { - api.setTrafficIncidentCardsEnabled(enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.setTrafficIncidentCardsEnabled(enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7706,17 +9302,23 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setNavigationTripProgressBarEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setNavigationTripProgressBarEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val enabledArg = args[0] as Boolean - val wrapped: List = try { - api.setNavigationTripProgressBarEnabled(enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.setNavigationTripProgressBarEnabled(enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7724,17 +9326,23 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setSpeedLimitIconEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setSpeedLimitIconEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val enabledArg = args[0] as Boolean - val wrapped: List = try { - api.setSpeedLimitIconEnabled(enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.setSpeedLimitIconEnabled(enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7742,17 +9350,23 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setSpeedometerEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setSpeedometerEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val enabledArg = args[0] as Boolean - val wrapped: List = try { - api.setSpeedometerEnabled(enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.setSpeedometerEnabled(enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7760,17 +9374,23 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setNavigationUIEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setNavigationUIEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val enabledArg = args[0] as Boolean - val wrapped: List = try { - api.setNavigationUIEnabled(enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.setNavigationUIEnabled(enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7778,14 +9398,20 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isMyLocationButtonEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isMyLocationButtonEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - listOf(api.isMyLocationButtonEnabled()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.isMyLocationButtonEnabled()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7793,14 +9419,20 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isConsumeMyLocationButtonClickEventsEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isConsumeMyLocationButtonClickEventsEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - listOf(api.isConsumeMyLocationButtonClickEventsEnabled()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.isConsumeMyLocationButtonClickEventsEnabled()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7808,14 +9440,20 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isZoomGesturesEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isZoomGesturesEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - listOf(api.isZoomGesturesEnabled()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.isZoomGesturesEnabled()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7823,14 +9461,20 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isZoomControlsEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isZoomControlsEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - listOf(api.isZoomControlsEnabled()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.isZoomControlsEnabled()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7838,14 +9482,20 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isCompassEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isCompassEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - listOf(api.isCompassEnabled()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.isCompassEnabled()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7853,14 +9503,20 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isRotateGesturesEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isRotateGesturesEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - listOf(api.isRotateGesturesEnabled()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.isRotateGesturesEnabled()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7868,14 +9524,20 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isScrollGesturesEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isScrollGesturesEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - listOf(api.isScrollGesturesEnabled()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.isScrollGesturesEnabled()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7883,14 +9545,20 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isScrollGesturesEnabledDuringRotateOrZoom$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isScrollGesturesEnabledDuringRotateOrZoom$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - listOf(api.isScrollGesturesEnabledDuringRotateOrZoom()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.isScrollGesturesEnabledDuringRotateOrZoom()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7898,14 +9566,20 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTiltGesturesEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTiltGesturesEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - listOf(api.isTiltGesturesEnabled()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.isTiltGesturesEnabled()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7913,14 +9587,20 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isMapToolbarEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isMapToolbarEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - listOf(api.isMapToolbarEnabled()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.isMapToolbarEnabled()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7928,14 +9608,20 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTrafficEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTrafficEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - listOf(api.isTrafficEnabled()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.isTrafficEnabled()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7943,14 +9629,20 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTrafficPromptsEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTrafficPromptsEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - listOf(api.isTrafficPromptsEnabled()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.isTrafficPromptsEnabled()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7958,14 +9650,20 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTrafficIncidentCardsEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTrafficIncidentCardsEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - listOf(api.isTrafficIncidentCardsEnabled()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.isTrafficIncidentCardsEnabled()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7973,14 +9671,20 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isNavigationTripProgressBarEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isNavigationTripProgressBarEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - listOf(api.isNavigationTripProgressBarEnabled()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.isNavigationTripProgressBarEnabled()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7988,14 +9692,20 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isSpeedLimitIconEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isSpeedLimitIconEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - listOf(api.isSpeedLimitIconEnabled()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.isSpeedLimitIconEnabled()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8003,14 +9713,20 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isSpeedometerEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isSpeedometerEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - listOf(api.isSpeedometerEnabled()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.isSpeedometerEnabled()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8018,14 +9734,20 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isNavigationUIEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isNavigationUIEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - listOf(api.isNavigationUIEnabled()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.isNavigationUIEnabled()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8033,14 +9755,20 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isIndoorEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isIndoorEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - listOf(api.isIndoorEnabled()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.isIndoorEnabled()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8048,17 +9776,23 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setIndoorEnabled$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setIndoorEnabled$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val enabledArg = args[0] as Boolean - val wrapped: List = try { - api.setIndoorEnabled(enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.setIndoorEnabled(enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8066,14 +9800,20 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getFocusedIndoorBuilding$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getFocusedIndoorBuilding$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - listOf(api.getFocusedIndoorBuilding()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.getFocusedIndoorBuilding()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8081,17 +9821,23 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.activateIndoorLevel$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.activateIndoorLevel$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val levelIndexArg = args[0] as Long - val wrapped: List = try { - api.activateIndoorLevel(levelIndexArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.activateIndoorLevel(levelIndexArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8099,15 +9845,21 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.showRouteOverview$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.showRouteOverview$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - api.showRouteOverview() - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.showRouteOverview() + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8115,14 +9867,20 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMarkers$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMarkers$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - listOf(api.getMarkers()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.getMarkers()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8130,16 +9888,22 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addMarkers$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addMarkers$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val markersArg = args[0] as List - val wrapped: List = try { - listOf(api.addMarkers(markersArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.addMarkers(markersArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8147,16 +9911,22 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updateMarkers$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updateMarkers$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val markersArg = args[0] as List - val wrapped: List = try { - listOf(api.updateMarkers(markersArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.updateMarkers(markersArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8164,17 +9934,23 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removeMarkers$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removeMarkers$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val markersArg = args[0] as List - val wrapped: List = try { - api.removeMarkers(markersArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.removeMarkers(markersArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8182,15 +9958,21 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearMarkers$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearMarkers$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - api.clearMarkers() - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.clearMarkers() + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8198,15 +9980,21 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clear$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clear$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - api.clear() - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.clear() + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8214,14 +10002,20 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getPolygons$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getPolygons$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - listOf(api.getPolygons()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.getPolygons()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8229,16 +10023,22 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addPolygons$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addPolygons$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val polygonsArg = args[0] as List - val wrapped: List = try { - listOf(api.addPolygons(polygonsArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.addPolygons(polygonsArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8246,16 +10046,22 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updatePolygons$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updatePolygons$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val polygonsArg = args[0] as List - val wrapped: List = try { - listOf(api.updatePolygons(polygonsArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.updatePolygons(polygonsArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8263,17 +10069,23 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removePolygons$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removePolygons$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val polygonsArg = args[0] as List - val wrapped: List = try { - api.removePolygons(polygonsArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.removePolygons(polygonsArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8281,15 +10093,21 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearPolygons$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearPolygons$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - api.clearPolygons() - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.clearPolygons() + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8297,14 +10115,20 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getPolylines$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getPolylines$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - listOf(api.getPolylines()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.getPolylines()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8312,16 +10136,22 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addPolylines$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addPolylines$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val polylinesArg = args[0] as List - val wrapped: List = try { - listOf(api.addPolylines(polylinesArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.addPolylines(polylinesArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8329,16 +10159,22 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updatePolylines$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updatePolylines$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val polylinesArg = args[0] as List - val wrapped: List = try { - listOf(api.updatePolylines(polylinesArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.updatePolylines(polylinesArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8346,17 +10182,23 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removePolylines$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removePolylines$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val polylinesArg = args[0] as List - val wrapped: List = try { - api.removePolylines(polylinesArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.removePolylines(polylinesArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8364,15 +10206,21 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearPolylines$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearPolylines$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - api.clearPolylines() - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.clearPolylines() + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8380,14 +10228,20 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getCircles$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getCircles$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - listOf(api.getCircles()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.getCircles()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8395,16 +10249,22 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addCircles$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addCircles$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val circlesArg = args[0] as List - val wrapped: List = try { - listOf(api.addCircles(circlesArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.addCircles(circlesArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8412,16 +10272,22 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updateCircles$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updateCircles$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val circlesArg = args[0] as List - val wrapped: List = try { - listOf(api.updateCircles(circlesArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.updateCircles(circlesArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8429,17 +10295,23 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removeCircles$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removeCircles$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val circlesArg = args[0] as List - val wrapped: List = try { - api.removeCircles(circlesArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.removeCircles(circlesArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8447,15 +10319,21 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearCircles$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearCircles$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - api.clearCircles() - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.clearCircles() + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8463,15 +10341,21 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.enableOnCameraChangedEvents$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.enableOnCameraChangedEvents$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - api.enableOnCameraChangedEvents() - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.enableOnCameraChangedEvents() + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8479,14 +10363,20 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isAutoScreenAvailable$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isAutoScreenAvailable$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - listOf(api.isAutoScreenAvailable()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.isAutoScreenAvailable()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8494,17 +10384,23 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setPadding$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setPadding$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val paddingArg = args[0] as MapPaddingDto - val wrapped: List = try { - api.setPadding(paddingArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.setPadding(paddingArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8512,14 +10408,20 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getPadding$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getPadding$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - listOf(api.getPadding()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.getPadding()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8527,14 +10429,20 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMapColorScheme$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMapColorScheme$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - listOf(api.getMapColorScheme()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.getMapColorScheme()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8542,17 +10450,23 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapColorScheme$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapColorScheme$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val mapColorSchemeArg = args[0] as MapColorSchemeDto - val wrapped: List = try { - api.setMapColorScheme(mapColorSchemeArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.setMapColorScheme(mapColorSchemeArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8560,14 +10474,20 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getForceNightMode$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getForceNightMode$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = try { - listOf(api.getForceNightMode()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.getForceNightMode()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8575,17 +10495,23 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setForceNightMode$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setForceNightMode$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val forceNightModeArg = args[0] as NavigationForceNightModeDto - val wrapped: List = try { - api.setForceNightMode(forceNightModeArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.setForceNightMode(forceNightModeArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8593,18 +10519,24 @@ interface AutoMapViewApi { } } run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.sendCustomNavigationAutoEvent$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.sendCustomNavigationAutoEvent$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val eventArg = args[0] as String val dataArg = args[1] as Any - val wrapped: List = try { - api.sendCustomNavigationAutoEvent(eventArg, dataArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + api.sendCustomNavigationAutoEvent(eventArg, dataArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8614,18 +10546,26 @@ interface AutoMapViewApi { } } } + /** Generated class from Pigeon that represents Flutter messages that can be called from Kotlin. */ -class AutoViewEventApi(private val binaryMessenger: BinaryMessenger, private val messageChannelSuffix: String = "") { +class AutoViewEventApi( + private val binaryMessenger: BinaryMessenger, + private val messageChannelSuffix: String = "", +) { companion object { /** The codec used by AutoViewEventApi. */ - val codec: MessageCodec by lazy { - messagesPigeonCodec() - } - } - fun onCustomNavigationAutoEvent(eventArg: String, dataArg: Any, callback: (Result) -> Unit) -{ - val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = "dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onCustomNavigationAutoEvent$separatedMessageChannelSuffix" + val codec: MessageCodec by lazy { messagesPigeonCodec() } + } + + fun onCustomNavigationAutoEvent( + eventArg: String, + dataArg: Any, + callback: (Result) -> Unit, + ) { + val separatedMessageChannelSuffix = + if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = + "dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onCustomNavigationAutoEvent$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(eventArg, dataArg)) { if (it is List<*>) { @@ -8636,13 +10576,15 @@ class AutoViewEventApi(private val binaryMessenger: BinaryMessenger, private val } } else { callback(Result.failure(MessagesPigeonUtils.createConnectionError(channelName))) - } + } } } - fun onAutoScreenAvailabilityChanged(isAvailableArg: Boolean, callback: (Result) -> Unit) -{ - val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = "dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onAutoScreenAvailabilityChanged$separatedMessageChannelSuffix" + + fun onAutoScreenAvailabilityChanged(isAvailableArg: Boolean, callback: (Result) -> Unit) { + val separatedMessageChannelSuffix = + if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = + "dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onAutoScreenAvailabilityChanged$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(isAvailableArg)) { if (it is List<*>) { @@ -8653,13 +10595,15 @@ class AutoViewEventApi(private val binaryMessenger: BinaryMessenger, private val } } else { callback(Result.failure(MessagesPigeonUtils.createConnectionError(channelName))) - } + } } } - fun onPromptVisibilityChanged(promptVisibleArg: Boolean, callback: (Result) -> Unit) -{ - val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = "dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onPromptVisibilityChanged$separatedMessageChannelSuffix" + + fun onPromptVisibilityChanged(promptVisibleArg: Boolean, callback: (Result) -> Unit) { + val separatedMessageChannelSuffix = + if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = + "dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onPromptVisibilityChanged$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(promptVisibleArg)) { if (it is List<*>) { @@ -8670,13 +10614,18 @@ class AutoViewEventApi(private val binaryMessenger: BinaryMessenger, private val } } else { callback(Result.failure(MessagesPigeonUtils.createConnectionError(channelName))) - } + } } } - fun onNavigationUIEnabledChanged(navigationUIEnabledArg: Boolean, callback: (Result) -> Unit) -{ - val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = "dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onNavigationUIEnabledChanged$separatedMessageChannelSuffix" + + fun onNavigationUIEnabledChanged( + navigationUIEnabledArg: Boolean, + callback: (Result) -> Unit, + ) { + val separatedMessageChannelSuffix = + if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = + "dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onNavigationUIEnabledChanged$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(navigationUIEnabledArg)) { if (it is List<*>) { @@ -8687,13 +10636,18 @@ class AutoViewEventApi(private val binaryMessenger: BinaryMessenger, private val } } else { callback(Result.failure(MessagesPigeonUtils.createConnectionError(channelName))) - } + } } } - fun onIndoorFocusedBuildingChanged(buildingArg: IndoorBuildingDto?, callback: (Result) -> Unit) -{ - val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = "dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onIndoorFocusedBuildingChanged$separatedMessageChannelSuffix" + + fun onIndoorFocusedBuildingChanged( + buildingArg: IndoorBuildingDto?, + callback: (Result) -> Unit, + ) { + val separatedMessageChannelSuffix = + if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = + "dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onIndoorFocusedBuildingChanged$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(buildingArg)) { if (it is List<*>) { @@ -8704,13 +10658,18 @@ class AutoViewEventApi(private val binaryMessenger: BinaryMessenger, private val } } else { callback(Result.failure(MessagesPigeonUtils.createConnectionError(channelName))) - } + } } } - fun onIndoorActiveLevelChanged(buildingArg: IndoorBuildingDto?, callback: (Result) -> Unit) -{ - val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = "dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onIndoorActiveLevelChanged$separatedMessageChannelSuffix" + + fun onIndoorActiveLevelChanged( + buildingArg: IndoorBuildingDto?, + callback: (Result) -> Unit, + ) { + val separatedMessageChannelSuffix = + if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = + "dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onIndoorActiveLevelChanged$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(buildingArg)) { if (it is List<*>) { @@ -8721,34 +10680,48 @@ class AutoViewEventApi(private val binaryMessenger: BinaryMessenger, private val } } else { callback(Result.failure(MessagesPigeonUtils.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 { - messagesPigeonCodec() - } - /** Sets up an instance of `NavigationInspector` to handle messages through the `binaryMessenger`. */ + val codec: MessageCodec by lazy { messagesPigeonCodec() } + + /** + * Sets up an instance of `NavigationInspector` to handle messages through the + * `binaryMessenger`. + */ @JvmOverloads - fun setUp(binaryMessenger: BinaryMessenger, api: NavigationInspector?, messageChannelSuffix: String = "") { - val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + fun setUp( + binaryMessenger: BinaryMessenger, + api: NavigationInspector?, + messageChannelSuffix: String = "", + ) { + val separatedMessageChannelSuffix = + if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationInspector.isViewAttachedToSession$separatedMessageChannelSuffix", codec) + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.google_navigation_flutter.NavigationInspector.isViewAttachedToSession$separatedMessageChannelSuffix", + codec, + ) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = try { - listOf(api.isViewAttachedToSession(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = + try { + listOf(api.isViewAttachedToSession(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { diff --git a/ios/google_navigation_flutter/Sources/google_navigation_flutter/messages.g.swift b/ios/google_navigation_flutter/Sources/google_navigation_flutter/messages.g.swift index 0799220a..35bb5442 100644 --- a/ios/google_navigation_flutter/Sources/google_navigation_flutter/messages.g.swift +++ b/ios/google_navigation_flutter/Sources/google_navigation_flutter/messages.g.swift @@ -70,7 +70,9 @@ private func wrapError(_ error: Any) -> [Any?] { } private func createConnectionError(withChannelName channelName: String) -> PigeonError { - return PigeonError(code: "channel-error", message: "Unable to establish connection on channel: '\(channelName)'.", details: "") + return PigeonError( + code: "channel-error", message: "Unable to establish connection on channel: '\(channelName)'.", + details: "") } private func isNullish(_ value: Any?) -> Bool { @@ -125,12 +127,12 @@ func deepEqualsmessages(_ lhs: Any?, _ rhs: Any?) -> Bool { func deepHashmessages(value: Any?, hasher: inout Hasher) { if let valueList = value as? [AnyHashable] { - for item in valueList { deepHashmessages(value: item, hasher: &hasher) } - return + for item in valueList { deepHashmessages(value: item, hasher: &hasher) } + return } if let valueDict = value as? [AnyHashable: AnyHashable] { - for key in valueDict.keys { + for key in valueDict.keys { hasher.combine(key) deepHashmessages(value: valueDict[key]!, hasher: &hasher) } @@ -144,8 +146,6 @@ func deepHashmessages(value: Any?, hasher: inout Hasher) { return hasher.combine(String(describing: value)) } - - /// Describes the type of map to construct. enum MapViewTypeDto: Int { /// Navigation view supports navigation overlay, and current navigation session is displayed on the map. @@ -517,7 +517,6 @@ struct AutoMapOptionsDto: Hashable { /// Determines the initial visibility of the navigation UI on map initialization. var navigationUIEnabledPreference: NavigationUIEnabledPreferenceDto? = nil - // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> AutoMapOptionsDto? { let cameraPosition: CameraPositionDto? = nilOrValue(pigeonVar_list[0]) @@ -525,7 +524,8 @@ struct AutoMapOptionsDto: Hashable { let mapType: MapTypeDto? = nilOrValue(pigeonVar_list[2]) let mapColorScheme: MapColorSchemeDto? = nilOrValue(pigeonVar_list[3]) let forceNightMode: NavigationForceNightModeDto? = nilOrValue(pigeonVar_list[4]) - let navigationUIEnabledPreference: NavigationUIEnabledPreferenceDto? = nilOrValue(pigeonVar_list[5]) + let navigationUIEnabledPreference: NavigationUIEnabledPreferenceDto? = nilOrValue( + pigeonVar_list[5]) return AutoMapOptionsDto( cameraPosition: cameraPosition, @@ -547,7 +547,8 @@ struct AutoMapOptionsDto: Hashable { ] } static func == (lhs: AutoMapOptionsDto, rhs: AutoMapOptionsDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) } + return deepEqualsmessages(lhs.toList(), rhs.toList()) + } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -592,7 +593,6 @@ struct MapOptionsDto: Hashable { /// The map color scheme mode for the map view. var mapColorScheme: MapColorSchemeDto - // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> MapOptionsDto? { let cameraPosition = pigeonVar_list[0] as! CameraPositionDto @@ -652,7 +652,8 @@ struct MapOptionsDto: Hashable { ] } static func == (lhs: MapOptionsDto, rhs: MapOptionsDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) } + return deepEqualsmessages(lhs.toList(), rhs.toList()) + } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -667,7 +668,6 @@ struct NavigationViewOptionsDto: Hashable { /// Controls the navigation night mode for Navigation UI. var forceNightMode: NavigationForceNightModeDto - // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> NavigationViewOptionsDto? { let navigationUIEnabledPreference = pigeonVar_list[0] as! NavigationUIEnabledPreferenceDto @@ -685,7 +685,8 @@ struct NavigationViewOptionsDto: Hashable { ] } static func == (lhs: NavigationViewOptionsDto, rhs: NavigationViewOptionsDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) } + return deepEqualsmessages(lhs.toList(), rhs.toList()) + } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -702,7 +703,6 @@ struct ViewCreationOptionsDto: Hashable { var mapOptions: MapOptionsDto var navigationViewOptions: NavigationViewOptionsDto? = nil - // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> ViewCreationOptionsDto? { let mapViewType = pigeonVar_list[0] as! MapViewTypeDto @@ -723,7 +723,8 @@ struct ViewCreationOptionsDto: Hashable { ] } static func == (lhs: ViewCreationOptionsDto, rhs: ViewCreationOptionsDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) } + return deepEqualsmessages(lhs.toList(), rhs.toList()) + } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -736,7 +737,6 @@ struct CameraPositionDto: Hashable { var tilt: Double var zoom: Double - // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> CameraPositionDto? { let bearing = pigeonVar_list[0] as! Double @@ -760,7 +760,8 @@ struct CameraPositionDto: Hashable { ] } static func == (lhs: CameraPositionDto, rhs: CameraPositionDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) } + return deepEqualsmessages(lhs.toList(), rhs.toList()) + } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -773,7 +774,6 @@ struct MarkerDto: Hashable { /// Options for marker var options: MarkerOptionsDto - // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> MarkerDto? { let markerId = pigeonVar_list[0] as! String @@ -791,7 +791,8 @@ struct MarkerDto: Hashable { ] } static func == (lhs: MarkerDto, rhs: MarkerDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) } + return deepEqualsmessages(lhs.toList(), rhs.toList()) + } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -811,7 +812,6 @@ struct MarkerOptionsDto: Hashable { var zIndex: Double var icon: ImageDescriptorDto - // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> MarkerOptionsDto? { let alpha = pigeonVar_list[0] as! Double @@ -856,7 +856,8 @@ struct MarkerOptionsDto: Hashable { ] } static func == (lhs: MarkerOptionsDto, rhs: MarkerOptionsDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) } + return deepEqualsmessages(lhs.toList(), rhs.toList()) + } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -870,7 +871,6 @@ struct ImageDescriptorDto: Hashable { var height: Double? = nil var type: RegisteredImageTypeDto - // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> ImageDescriptorDto? { let registeredImageId: String? = nilOrValue(pigeonVar_list[0]) @@ -897,7 +897,8 @@ struct ImageDescriptorDto: Hashable { ] } static func == (lhs: ImageDescriptorDto, rhs: ImageDescriptorDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) } + return deepEqualsmessages(lhs.toList(), rhs.toList()) + } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -909,7 +910,6 @@ struct InfoWindowDto: Hashable { var snippet: String? = nil var anchor: MarkerAnchorDto - // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> InfoWindowDto? { let title: String? = nilOrValue(pigeonVar_list[0]) @@ -930,7 +930,8 @@ struct InfoWindowDto: Hashable { ] } static func == (lhs: InfoWindowDto, rhs: InfoWindowDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) } + return deepEqualsmessages(lhs.toList(), rhs.toList()) + } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -941,7 +942,6 @@ struct MarkerAnchorDto: Hashable { var u: Double var v: Double - // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> MarkerAnchorDto? { let u = pigeonVar_list[0] as! Double @@ -959,7 +959,8 @@ struct MarkerAnchorDto: Hashable { ] } static func == (lhs: MarkerAnchorDto, rhs: MarkerAnchorDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) } + return deepEqualsmessages(lhs.toList(), rhs.toList()) + } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -978,7 +979,6 @@ struct PointOfInterestDto: Hashable { /// The geographical coordinates of the POI. var latLng: LatLngDto - // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> PointOfInterestDto? { let placeID = pigeonVar_list[0] as! String @@ -999,7 +999,8 @@ struct PointOfInterestDto: Hashable { ] } static func == (lhs: PointOfInterestDto, rhs: PointOfInterestDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) } + return deepEqualsmessages(lhs.toList(), rhs.toList()) + } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -1014,7 +1015,6 @@ struct IndoorLevelDto: Hashable { /// Short display name of the level. var shortName: String? = nil - // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> IndoorLevelDto? { let name: String? = nilOrValue(pigeonVar_list[0]) @@ -1032,7 +1032,8 @@ struct IndoorLevelDto: Hashable { ] } static func == (lhs: IndoorLevelDto, rhs: IndoorLevelDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) } + return deepEqualsmessages(lhs.toList(), rhs.toList()) + } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -1051,7 +1052,6 @@ struct IndoorBuildingDto: Hashable { /// Whether building is mostly underground, if known. var isUnderground: Bool? = nil - // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> IndoorBuildingDto? { let levels = pigeonVar_list[0] as! [IndoorLevelDto?] @@ -1075,7 +1075,8 @@ struct IndoorBuildingDto: Hashable { ] } static func == (lhs: IndoorBuildingDto, rhs: IndoorBuildingDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) } + return deepEqualsmessages(lhs.toList(), rhs.toList()) + } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -1086,7 +1087,6 @@ struct PolygonDto: Hashable { var polygonId: String var options: PolygonOptionsDto - // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> PolygonDto? { let polygonId = pigeonVar_list[0] as! String @@ -1104,7 +1104,8 @@ struct PolygonDto: Hashable { ] } static func == (lhs: PolygonDto, rhs: PolygonDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) } + return deepEqualsmessages(lhs.toList(), rhs.toList()) + } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -1122,7 +1123,6 @@ struct PolygonOptionsDto: Hashable { var visible: Bool var zIndex: Double - // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> PolygonOptionsDto? { let points = pigeonVar_list[0] as! [LatLngDto?] @@ -1161,7 +1161,8 @@ struct PolygonOptionsDto: Hashable { ] } static func == (lhs: PolygonOptionsDto, rhs: PolygonOptionsDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) } + return deepEqualsmessages(lhs.toList(), rhs.toList()) + } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -1171,7 +1172,6 @@ struct PolygonOptionsDto: Hashable { struct PolygonHoleDto: Hashable { var points: [LatLngDto?] - // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> PolygonHoleDto? { let points = pigeonVar_list[0] as! [LatLngDto?] @@ -1186,7 +1186,8 @@ struct PolygonHoleDto: Hashable { ] } static func == (lhs: PolygonHoleDto, rhs: PolygonHoleDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) } + return deepEqualsmessages(lhs.toList(), rhs.toList()) + } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -1198,7 +1199,6 @@ struct StyleSpanStrokeStyleDto: Hashable { var fromColor: Int64? = nil var toColor: Int64? = nil - // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> StyleSpanStrokeStyleDto? { let solidColor: Int64? = nilOrValue(pigeonVar_list[0]) @@ -1219,7 +1219,8 @@ struct StyleSpanStrokeStyleDto: Hashable { ] } static func == (lhs: StyleSpanStrokeStyleDto, rhs: StyleSpanStrokeStyleDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) } + return deepEqualsmessages(lhs.toList(), rhs.toList()) + } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -1230,7 +1231,6 @@ struct StyleSpanDto: Hashable { var length: Double var style: StyleSpanStrokeStyleDto - // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> StyleSpanDto? { let length = pigeonVar_list[0] as! Double @@ -1248,7 +1248,8 @@ struct StyleSpanDto: Hashable { ] } static func == (lhs: StyleSpanDto, rhs: StyleSpanDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) } + return deepEqualsmessages(lhs.toList(), rhs.toList()) + } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -1259,7 +1260,6 @@ struct PolylineDto: Hashable { var polylineId: String var options: PolylineOptionsDto - // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> PolylineDto? { let polylineId = pigeonVar_list[0] as! String @@ -1277,7 +1277,8 @@ struct PolylineDto: Hashable { ] } static func == (lhs: PolylineDto, rhs: PolylineDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) } + return deepEqualsmessages(lhs.toList(), rhs.toList()) + } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -1288,7 +1289,6 @@ struct PatternItemDto: Hashable { var type: PatternTypeDto var length: Double? = nil - // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> PatternItemDto? { let type = pigeonVar_list[0] as! PatternTypeDto @@ -1306,7 +1306,8 @@ struct PatternItemDto: Hashable { ] } static func == (lhs: PatternItemDto, rhs: PatternItemDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) } + return deepEqualsmessages(lhs.toList(), rhs.toList()) + } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -1325,7 +1326,6 @@ struct PolylineOptionsDto: Hashable { var zIndex: Double? = nil var spans: [StyleSpanDto?] - // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> PolylineOptionsDto? { let points: [LatLngDto?]? = nilOrValue(pigeonVar_list[0]) @@ -1367,7 +1367,8 @@ struct PolylineOptionsDto: Hashable { ] } static func == (lhs: PolylineOptionsDto, rhs: PolylineOptionsDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) } + return deepEqualsmessages(lhs.toList(), rhs.toList()) + } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -1380,7 +1381,6 @@ struct CircleDto: Hashable { /// Options for circle. var options: CircleOptionsDto - // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> CircleDto? { let circleId = pigeonVar_list[0] as! String @@ -1398,7 +1398,8 @@ struct CircleDto: Hashable { ] } static func == (lhs: CircleDto, rhs: CircleDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) } + return deepEqualsmessages(lhs.toList(), rhs.toList()) + } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -1416,7 +1417,6 @@ struct CircleOptionsDto: Hashable { var visible: Bool var clickable: Bool - // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> CircleOptionsDto? { let position = pigeonVar_list[0] as! LatLngDto @@ -1455,7 +1455,8 @@ struct CircleOptionsDto: Hashable { ] } static func == (lhs: CircleOptionsDto, rhs: CircleOptionsDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) } + return deepEqualsmessages(lhs.toList(), rhs.toList()) + } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -1468,7 +1469,6 @@ struct MapPaddingDto: Hashable { var bottom: Int64 var right: Int64 - // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> MapPaddingDto? { let top = pigeonVar_list[0] as! Int64 @@ -1492,7 +1492,8 @@ struct MapPaddingDto: Hashable { ] } static func == (lhs: MapPaddingDto, rhs: MapPaddingDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) } + return deepEqualsmessages(lhs.toList(), rhs.toList()) + } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -1525,7 +1526,6 @@ struct NavigationHeaderStylingOptionsDto: Hashable { var instructionsSecondRowTextSize: Double? = nil var guidanceRecommendedLaneColor: Int64? = nil - // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> NavigationHeaderStylingOptionsDto? { let primaryDayModeBackgroundColor: Int64? = nilOrValue(pigeonVar_list[0]) @@ -1584,8 +1584,11 @@ struct NavigationHeaderStylingOptionsDto: Hashable { guidanceRecommendedLaneColor, ] } - static func == (lhs: NavigationHeaderStylingOptionsDto, rhs: NavigationHeaderStylingOptionsDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) } + static func == (lhs: NavigationHeaderStylingOptionsDto, rhs: NavigationHeaderStylingOptionsDto) + -> Bool + { + return deepEqualsmessages(lhs.toList(), rhs.toList()) + } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -1596,7 +1599,6 @@ struct RouteTokenOptionsDto: Hashable { var routeToken: String var travelMode: TravelModeDto? = nil - // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> RouteTokenOptionsDto? { let routeToken = pigeonVar_list[0] as! String @@ -1614,7 +1616,8 @@ struct RouteTokenOptionsDto: Hashable { ] } static func == (lhs: RouteTokenOptionsDto, rhs: RouteTokenOptionsDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) } + return deepEqualsmessages(lhs.toList(), rhs.toList()) + } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -1627,7 +1630,6 @@ struct DestinationsDto: Hashable { var routingOptions: RoutingOptionsDto? = nil var routeTokenOptions: RouteTokenOptionsDto? = nil - // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> DestinationsDto? { let waypoints = pigeonVar_list[0] as! [NavigationWaypointDto?] @@ -1651,7 +1653,8 @@ struct DestinationsDto: Hashable { ] } static func == (lhs: DestinationsDto, rhs: DestinationsDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) } + return deepEqualsmessages(lhs.toList(), rhs.toList()) + } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -1668,7 +1671,6 @@ struct RoutingOptionsDto: Hashable { var avoidHighways: Bool? = nil var locationTimeoutMs: Int64? = nil - // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> RoutingOptionsDto? { let alternateRoutesStrategy: AlternateRoutesStrategyDto? = nilOrValue(pigeonVar_list[0]) @@ -1704,7 +1706,8 @@ struct RoutingOptionsDto: Hashable { ] } static func == (lhs: RoutingOptionsDto, rhs: RoutingOptionsDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) } + return deepEqualsmessages(lhs.toList(), rhs.toList()) + } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -1718,7 +1721,6 @@ struct NavigationDisplayOptionsDto: Hashable { /// Deprecated: This option now defaults to true. var showTrafficLights: Bool? = nil - // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> NavigationDisplayOptionsDto? { let showDestinationMarkers: Bool? = nilOrValue(pigeonVar_list[0]) @@ -1739,7 +1741,8 @@ struct NavigationDisplayOptionsDto: Hashable { ] } static func == (lhs: NavigationDisplayOptionsDto, rhs: NavigationDisplayOptionsDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) } + return deepEqualsmessages(lhs.toList(), rhs.toList()) + } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -1753,7 +1756,6 @@ struct NavigationWaypointDto: Hashable { var preferSameSideOfRoad: Bool? = nil var preferredSegmentHeading: Int64? = nil - // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> NavigationWaypointDto? { let title = pigeonVar_list[0] as! String @@ -1780,7 +1782,8 @@ struct NavigationWaypointDto: Hashable { ] } static func == (lhs: NavigationWaypointDto, rhs: NavigationWaypointDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) } + return deepEqualsmessages(lhs.toList(), rhs.toList()) + } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -1791,7 +1794,6 @@ struct ContinueToNextDestinationResponseDto: Hashable { var waypoint: NavigationWaypointDto? = nil var routeStatus: RouteStatusDto? = nil - // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> ContinueToNextDestinationResponseDto? { let waypoint: NavigationWaypointDto? = nilOrValue(pigeonVar_list[0]) @@ -1808,8 +1810,11 @@ struct ContinueToNextDestinationResponseDto: Hashable { routeStatus, ] } - static func == (lhs: ContinueToNextDestinationResponseDto, rhs: ContinueToNextDestinationResponseDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) } + static func == ( + lhs: ContinueToNextDestinationResponseDto, rhs: ContinueToNextDestinationResponseDto + ) -> Bool { + return deepEqualsmessages(lhs.toList(), rhs.toList()) + } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -1821,7 +1826,6 @@ struct NavigationTimeAndDistanceDto: Hashable { var distance: Double var delaySeverity: TrafficDelaySeverityDto - // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> NavigationTimeAndDistanceDto? { let time = pigeonVar_list[0] as! Double @@ -1842,7 +1846,8 @@ struct NavigationTimeAndDistanceDto: Hashable { ] } static func == (lhs: NavigationTimeAndDistanceDto, rhs: NavigationTimeAndDistanceDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) } + return deepEqualsmessages(lhs.toList(), rhs.toList()) + } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -1854,7 +1859,6 @@ struct NavigationAudioGuidanceSettingsDto: Hashable { var isVibrationEnabled: Bool? = nil var guidanceType: AudioGuidanceTypeDto? = nil - // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> NavigationAudioGuidanceSettingsDto? { let isBluetoothAudioEnabled: Bool? = nilOrValue(pigeonVar_list[0]) @@ -1874,8 +1878,11 @@ struct NavigationAudioGuidanceSettingsDto: Hashable { guidanceType, ] } - static func == (lhs: NavigationAudioGuidanceSettingsDto, rhs: NavigationAudioGuidanceSettingsDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) } + static func == (lhs: NavigationAudioGuidanceSettingsDto, rhs: NavigationAudioGuidanceSettingsDto) + -> Bool + { + return deepEqualsmessages(lhs.toList(), rhs.toList()) + } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -1885,7 +1892,6 @@ struct NavigationAudioGuidanceSettingsDto: Hashable { struct SimulationOptionsDto: Hashable { var speedMultiplier: Double - // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> SimulationOptionsDto? { let speedMultiplier = pigeonVar_list[0] as! Double @@ -1900,7 +1906,8 @@ struct SimulationOptionsDto: Hashable { ] } static func == (lhs: SimulationOptionsDto, rhs: SimulationOptionsDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) } + return deepEqualsmessages(lhs.toList(), rhs.toList()) + } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -1911,7 +1918,6 @@ struct LatLngDto: Hashable { var latitude: Double var longitude: Double - // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> LatLngDto? { let latitude = pigeonVar_list[0] as! Double @@ -1929,7 +1935,8 @@ struct LatLngDto: Hashable { ] } static func == (lhs: LatLngDto, rhs: LatLngDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) } + return deepEqualsmessages(lhs.toList(), rhs.toList()) + } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -1940,7 +1947,6 @@ struct LatLngBoundsDto: Hashable { var southwest: LatLngDto var northeast: LatLngDto - // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> LatLngBoundsDto? { let southwest = pigeonVar_list[0] as! LatLngDto @@ -1958,7 +1964,8 @@ struct LatLngBoundsDto: Hashable { ] } static func == (lhs: LatLngBoundsDto, rhs: LatLngBoundsDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) } + return deepEqualsmessages(lhs.toList(), rhs.toList()) + } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -1969,7 +1976,6 @@ struct SpeedingUpdatedEventDto: Hashable { var percentageAboveLimit: Double var severity: SpeedAlertSeverityDto - // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> SpeedingUpdatedEventDto? { let percentageAboveLimit = pigeonVar_list[0] as! Double @@ -1987,7 +1993,8 @@ struct SpeedingUpdatedEventDto: Hashable { ] } static func == (lhs: SpeedingUpdatedEventDto, rhs: SpeedingUpdatedEventDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) } + return deepEqualsmessages(lhs.toList(), rhs.toList()) + } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -1998,7 +2005,6 @@ struct GpsAvailabilityChangeEventDto: Hashable { var isGpsLost: Bool var isGpsValidForNavigation: Bool - // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> GpsAvailabilityChangeEventDto? { let isGpsLost = pigeonVar_list[0] as! Bool @@ -2016,7 +2022,8 @@ struct GpsAvailabilityChangeEventDto: Hashable { ] } static func == (lhs: GpsAvailabilityChangeEventDto, rhs: GpsAvailabilityChangeEventDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) } + return deepEqualsmessages(lhs.toList(), rhs.toList()) + } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -2027,7 +2034,6 @@ struct SpeedAlertOptionsThresholdPercentageDto: Hashable { var percentage: Double var severity: SpeedAlertSeverityDto - // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> SpeedAlertOptionsThresholdPercentageDto? { let percentage = pigeonVar_list[0] as! Double @@ -2044,8 +2050,11 @@ struct SpeedAlertOptionsThresholdPercentageDto: Hashable { severity, ] } - static func == (lhs: SpeedAlertOptionsThresholdPercentageDto, rhs: SpeedAlertOptionsThresholdPercentageDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) } + static func == ( + lhs: SpeedAlertOptionsThresholdPercentageDto, rhs: SpeedAlertOptionsThresholdPercentageDto + ) -> Bool { + return deepEqualsmessages(lhs.toList(), rhs.toList()) + } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -2057,7 +2066,6 @@ struct SpeedAlertOptionsDto: Hashable { var minorSpeedAlertThresholdPercentage: Double var majorSpeedAlertThresholdPercentage: Double - // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> SpeedAlertOptionsDto? { let severityUpgradeDurationSeconds = pigeonVar_list[0] as! Double @@ -2078,7 +2086,8 @@ struct SpeedAlertOptionsDto: Hashable { ] } static func == (lhs: SpeedAlertOptionsDto, rhs: SpeedAlertOptionsDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) } + return deepEqualsmessages(lhs.toList(), rhs.toList()) + } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -2090,9 +2099,10 @@ struct RouteSegmentTrafficDataRoadStretchRenderingDataDto: Hashable { var lengthMeters: Int64 var offsetMeters: Int64 - // swift-format-ignore: AlwaysUseLowerCamelCase - static func fromList(_ pigeonVar_list: [Any?]) -> RouteSegmentTrafficDataRoadStretchRenderingDataDto? { + static func fromList(_ pigeonVar_list: [Any?]) + -> RouteSegmentTrafficDataRoadStretchRenderingDataDto? + { let style = pigeonVar_list[0] as! RouteSegmentTrafficDataRoadStretchRenderingDataStyleDto let lengthMeters = pigeonVar_list[1] as! Int64 let offsetMeters = pigeonVar_list[2] as! Int64 @@ -2110,8 +2120,12 @@ struct RouteSegmentTrafficDataRoadStretchRenderingDataDto: Hashable { offsetMeters, ] } - static func == (lhs: RouteSegmentTrafficDataRoadStretchRenderingDataDto, rhs: RouteSegmentTrafficDataRoadStretchRenderingDataDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) } + static func == ( + lhs: RouteSegmentTrafficDataRoadStretchRenderingDataDto, + rhs: RouteSegmentTrafficDataRoadStretchRenderingDataDto + ) -> Bool { + return deepEqualsmessages(lhs.toList(), rhs.toList()) + } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -2122,11 +2136,11 @@ struct RouteSegmentTrafficDataDto: Hashable { var status: RouteSegmentTrafficDataStatusDto var roadStretchRenderingDataList: [RouteSegmentTrafficDataRoadStretchRenderingDataDto?] - // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> RouteSegmentTrafficDataDto? { let status = pigeonVar_list[0] as! RouteSegmentTrafficDataStatusDto - let roadStretchRenderingDataList = pigeonVar_list[1] as! [RouteSegmentTrafficDataRoadStretchRenderingDataDto?] + let roadStretchRenderingDataList = + pigeonVar_list[1] as! [RouteSegmentTrafficDataRoadStretchRenderingDataDto?] return RouteSegmentTrafficDataDto( status: status, @@ -2140,7 +2154,8 @@ struct RouteSegmentTrafficDataDto: Hashable { ] } static func == (lhs: RouteSegmentTrafficDataDto, rhs: RouteSegmentTrafficDataDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) } + return deepEqualsmessages(lhs.toList(), rhs.toList()) + } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -2153,7 +2168,6 @@ struct RouteSegmentDto: Hashable { var latLngs: [LatLngDto?]? = nil var destinationWaypoint: NavigationWaypointDto? = nil - // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> RouteSegmentDto? { let trafficData: RouteSegmentTrafficDataDto? = nilOrValue(pigeonVar_list[0]) @@ -2177,7 +2191,8 @@ struct RouteSegmentDto: Hashable { ] } static func == (lhs: RouteSegmentDto, rhs: RouteSegmentDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) } + return deepEqualsmessages(lhs.toList(), rhs.toList()) + } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -2192,7 +2207,6 @@ struct LaneDirectionDto: Hashable { /// Whether this lane is recommended. var isRecommended: Bool - // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> LaneDirectionDto? { let laneShape = pigeonVar_list[0] as! LaneShapeDto @@ -2210,7 +2224,8 @@ struct LaneDirectionDto: Hashable { ] } static func == (lhs: LaneDirectionDto, rhs: LaneDirectionDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) } + return deepEqualsmessages(lhs.toList(), rhs.toList()) + } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -2223,7 +2238,6 @@ struct LaneDto: Hashable { /// List of possible directions a driver can follow when using this lane at the end of the respective route step var laneDirections: [LaneDirectionDto?] - // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> LaneDto? { let laneDirections = pigeonVar_list[0] as! [LaneDirectionDto?] @@ -2238,7 +2252,8 @@ struct LaneDto: Hashable { ] } static func == (lhs: LaneDto, rhs: LaneDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) } + return deepEqualsmessages(lhs.toList(), rhs.toList()) + } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -2278,7 +2293,6 @@ struct StepInfoDto: Hashable { /// This image is generated only if step image generation option includes lane images. var lanesImage: ImageDescriptorDto? = nil - // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> StepInfoDto? { let distanceFromPrevStepMeters: Int64? = nilOrValue(pigeonVar_list[0]) @@ -2329,7 +2343,8 @@ struct StepInfoDto: Hashable { ] } static func == (lhs: StepInfoDto, rhs: StepInfoDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) } + return deepEqualsmessages(lhs.toList(), rhs.toList()) + } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -2369,7 +2384,6 @@ struct NavInfoDto: Hashable { /// Android only. var timeToNextDestinationSeconds: Int64? = nil - // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> NavInfoDto? { let navState = pigeonVar_list[0] as! NavStateDto @@ -2411,7 +2425,8 @@ struct NavInfoDto: Hashable { ] } static func == (lhs: NavInfoDto, rhs: NavInfoDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) } + return deepEqualsmessages(lhs.toList(), rhs.toList()) + } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -2435,7 +2450,6 @@ struct TermsAndConditionsUIParamsDto: Hashable { /// Text color for the cancel button. var cancelButtonTextColor: Int64? = nil - // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> TermsAndConditionsUIParamsDto? { let backgroundColor: Int64? = nilOrValue(pigeonVar_list[0]) @@ -2462,7 +2476,8 @@ struct TermsAndConditionsUIParamsDto: Hashable { ] } static func == (lhs: TermsAndConditionsUIParamsDto, rhs: TermsAndConditionsUIParamsDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) } + return deepEqualsmessages(lhs.toList(), rhs.toList()) + } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -2479,7 +2494,6 @@ struct StepImageGenerationOptionsDto: Hashable { /// Defaults to false if not specified. var generateLaneImages: Bool? = nil - // swift-format-ignore: AlwaysUseLowerCamelCase static func fromList(_ pigeonVar_list: [Any?]) -> StepImageGenerationOptionsDto? { let generateManeuverImages: Bool? = nilOrValue(pigeonVar_list[0]) @@ -2497,7 +2511,8 @@ struct StepImageGenerationOptionsDto: Hashable { ] } static func == (lhs: StepImageGenerationOptionsDto, rhs: StepImageGenerationOptionsDto) -> Bool { - return deepEqualsmessages(lhs.toList(), rhs.toList()) } + return deepEqualsmessages(lhs.toList(), rhs.toList()) + } func hash(into hasher: inout Hasher) { deepHashmessages(value: toList(), hasher: &hasher) } @@ -2743,7 +2758,8 @@ private class MessagesPigeonCodecReader: FlutterStandardReader { case 194: return SpeedAlertOptionsDto.fromList(self.readValue() as! [Any?]) case 195: - return RouteSegmentTrafficDataRoadStretchRenderingDataDto.fromList(self.readValue() as! [Any?]) + return RouteSegmentTrafficDataRoadStretchRenderingDataDto.fromList( + self.readValue() as! [Any?]) case 196: return RouteSegmentTrafficDataDto.fromList(self.readValue() as! [Any?]) case 197: @@ -3013,7 +3029,6 @@ class MessagesPigeonCodec: FlutterStandardMessageCodec, @unchecked Sendable { static let shared = MessagesPigeonCodec(readerWriter: MessagesPigeonCodecReaderWriter()) } - /// Dummy interface to force generation of the platform view creation params. /// Pigeon only generates messages if the messages are used in API. /// [ViewCreationOptionsDto] is encoded and decoded directly to generate a @@ -3030,9 +3045,14 @@ protocol ViewCreationApi { class ViewCreationApiSetup { static var codec: FlutterStandardMessageCodec { MessagesPigeonCodec.shared } /// Sets up an instance of `ViewCreationApi` to handle messages through the `binaryMessenger`. - static func setUp(binaryMessenger: FlutterBinaryMessenger, api: ViewCreationApi?, messageChannelSuffix: String = "") { + static func setUp( + binaryMessenger: FlutterBinaryMessenger, api: ViewCreationApi?, + messageChannelSuffix: String = "" + ) { let channelSuffix = messageChannelSuffix.count > 0 ? ".\(messageChannelSuffix)" : "" - let createChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.ViewCreationApi.create\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let createChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.ViewCreationApi.create\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { createChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3063,7 +3083,8 @@ protocol MapViewApi { func isNavigationHeaderEnabled(viewId: Int64) throws -> Bool func setNavigationHeaderEnabled(viewId: Int64, enabled: Bool) throws func getNavigationHeaderStylingOptions(viewId: Int64) throws -> NavigationHeaderStylingOptionsDto - func setNavigationHeaderStylingOptions(viewId: Int64, stylingOptions: NavigationHeaderStylingOptionsDto) throws + func setNavigationHeaderStylingOptions( + viewId: Int64, stylingOptions: NavigationHeaderStylingOptionsDto) throws func isNavigationFooterEnabled(viewId: Int64) throws -> Bool func setNavigationFooterEnabled(viewId: Int64, enabled: Bool) throws func isRecenterButtonEnabled(viewId: Int64) throws -> Bool @@ -3118,13 +3139,27 @@ protocol MapViewApi { func getCameraPosition(viewId: Int64) throws -> CameraPositionDto func getVisibleRegion(viewId: Int64) throws -> LatLngBoundsDto func followMyLocation(viewId: Int64, perspective: CameraPerspectiveDto, zoomLevel: Double?) throws - func animateCameraToCameraPosition(viewId: Int64, cameraPosition: CameraPositionDto, duration: Int64?, completion: @escaping (Result) -> Void) - func animateCameraToLatLng(viewId: Int64, point: LatLngDto, duration: Int64?, completion: @escaping (Result) -> Void) - func animateCameraToLatLngBounds(viewId: Int64, bounds: LatLngBoundsDto, padding: Double, duration: Int64?, completion: @escaping (Result) -> Void) - func animateCameraToLatLngZoom(viewId: Int64, point: LatLngDto, zoom: Double, duration: Int64?, completion: @escaping (Result) -> Void) - func animateCameraByScroll(viewId: Int64, scrollByDx: Double, scrollByDy: Double, duration: Int64?, completion: @escaping (Result) -> Void) - func animateCameraByZoom(viewId: Int64, zoomBy: Double, focusDx: Double?, focusDy: Double?, duration: Int64?, completion: @escaping (Result) -> Void) - func animateCameraToZoom(viewId: Int64, zoom: Double, duration: Int64?, completion: @escaping (Result) -> Void) + func animateCameraToCameraPosition( + viewId: Int64, cameraPosition: CameraPositionDto, duration: Int64?, + completion: @escaping (Result) -> Void) + func animateCameraToLatLng( + viewId: Int64, point: LatLngDto, duration: Int64?, + completion: @escaping (Result) -> Void) + func animateCameraToLatLngBounds( + viewId: Int64, bounds: LatLngBoundsDto, padding: Double, duration: Int64?, + completion: @escaping (Result) -> Void) + func animateCameraToLatLngZoom( + viewId: Int64, point: LatLngDto, zoom: Double, duration: Int64?, + completion: @escaping (Result) -> Void) + func animateCameraByScroll( + viewId: Int64, scrollByDx: Double, scrollByDy: Double, duration: Int64?, + completion: @escaping (Result) -> Void) + func animateCameraByZoom( + viewId: Int64, zoomBy: Double, focusDx: Double?, focusDy: Double?, duration: Int64?, + completion: @escaping (Result) -> Void) + func animateCameraToZoom( + viewId: Int64, zoom: Double, duration: Int64?, + completion: @escaping (Result) -> Void) func moveCameraToCameraPosition(viewId: Int64, cameraPosition: CameraPositionDto) throws func moveCameraToLatLng(viewId: Int64, point: LatLngDto) throws func moveCameraToLatLngBounds(viewId: Int64, bounds: LatLngBoundsDto, padding: Double) throws @@ -3172,9 +3207,13 @@ protocol MapViewApi { class MapViewApiSetup { static var codec: FlutterStandardMessageCodec { MessagesPigeonCodec.shared } /// Sets up an instance of `MapViewApi` to handle messages through the `binaryMessenger`. - static func setUp(binaryMessenger: FlutterBinaryMessenger, api: MapViewApi?, messageChannelSuffix: String = "") { + static func setUp( + binaryMessenger: FlutterBinaryMessenger, api: MapViewApi?, messageChannelSuffix: String = "" + ) { let channelSuffix = messageChannelSuffix.count > 0 ? ".\(messageChannelSuffix)" : "" - let awaitMapReadyChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.awaitMapReady\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let awaitMapReadyChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.awaitMapReady\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { awaitMapReadyChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3191,7 +3230,10 @@ class MapViewApiSetup { } else { awaitMapReadyChannel.setMessageHandler(nil) } - let isMyLocationEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMyLocationEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let isMyLocationEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMyLocationEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { isMyLocationEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3206,7 +3248,10 @@ class MapViewApiSetup { } else { isMyLocationEnabledChannel.setMessageHandler(nil) } - let setMyLocationEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMyLocationEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let setMyLocationEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMyLocationEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { setMyLocationEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3222,7 +3267,9 @@ class MapViewApiSetup { } else { setMyLocationEnabledChannel.setMessageHandler(nil) } - let getMyLocationChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMyLocation\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let getMyLocationChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMyLocation\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { getMyLocationChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3237,7 +3284,9 @@ class MapViewApiSetup { } else { getMyLocationChannel.setMessageHandler(nil) } - let getMapTypeChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMapType\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let getMapTypeChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMapType\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { getMapTypeChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3252,7 +3301,9 @@ class MapViewApiSetup { } else { getMapTypeChannel.setMessageHandler(nil) } - let setMapTypeChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapType\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let setMapTypeChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapType\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { setMapTypeChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3268,7 +3319,9 @@ class MapViewApiSetup { } else { setMapTypeChannel.setMessageHandler(nil) } - let setMapStyleChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapStyle\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let setMapStyleChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapStyle\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { setMapStyleChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3284,7 +3337,10 @@ class MapViewApiSetup { } else { setMapStyleChannel.setMessageHandler(nil) } - let isNavigationTripProgressBarEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationTripProgressBarEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let isNavigationTripProgressBarEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationTripProgressBarEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { isNavigationTripProgressBarEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3299,7 +3355,10 @@ class MapViewApiSetup { } else { isNavigationTripProgressBarEnabledChannel.setMessageHandler(nil) } - let setNavigationTripProgressBarEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationTripProgressBarEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let setNavigationTripProgressBarEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationTripProgressBarEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { setNavigationTripProgressBarEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3315,7 +3374,10 @@ class MapViewApiSetup { } else { setNavigationTripProgressBarEnabledChannel.setMessageHandler(nil) } - let isNavigationHeaderEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationHeaderEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let isNavigationHeaderEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationHeaderEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { isNavigationHeaderEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3330,7 +3392,10 @@ class MapViewApiSetup { } else { isNavigationHeaderEnabledChannel.setMessageHandler(nil) } - let setNavigationHeaderEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationHeaderEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let setNavigationHeaderEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationHeaderEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { setNavigationHeaderEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3346,7 +3411,10 @@ class MapViewApiSetup { } else { setNavigationHeaderEnabledChannel.setMessageHandler(nil) } - let getNavigationHeaderStylingOptionsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getNavigationHeaderStylingOptions\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let getNavigationHeaderStylingOptionsChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getNavigationHeaderStylingOptions\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { getNavigationHeaderStylingOptionsChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3361,14 +3429,18 @@ class MapViewApiSetup { } else { getNavigationHeaderStylingOptionsChannel.setMessageHandler(nil) } - let setNavigationHeaderStylingOptionsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationHeaderStylingOptions\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let setNavigationHeaderStylingOptionsChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationHeaderStylingOptions\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { setNavigationHeaderStylingOptionsChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] as! Int64 let stylingOptionsArg = args[1] as! NavigationHeaderStylingOptionsDto do { - try api.setNavigationHeaderStylingOptions(viewId: viewIdArg, stylingOptions: stylingOptionsArg) + try api.setNavigationHeaderStylingOptions( + viewId: viewIdArg, stylingOptions: stylingOptionsArg) reply(wrapResult(nil)) } catch { reply(wrapError(error)) @@ -3377,7 +3449,10 @@ class MapViewApiSetup { } else { setNavigationHeaderStylingOptionsChannel.setMessageHandler(nil) } - let isNavigationFooterEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationFooterEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let isNavigationFooterEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationFooterEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { isNavigationFooterEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3392,7 +3467,10 @@ class MapViewApiSetup { } else { isNavigationFooterEnabledChannel.setMessageHandler(nil) } - let setNavigationFooterEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationFooterEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let setNavigationFooterEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationFooterEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { setNavigationFooterEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3408,7 +3486,10 @@ class MapViewApiSetup { } else { setNavigationFooterEnabledChannel.setMessageHandler(nil) } - let isRecenterButtonEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isRecenterButtonEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let isRecenterButtonEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isRecenterButtonEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { isRecenterButtonEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3423,7 +3504,10 @@ class MapViewApiSetup { } else { isRecenterButtonEnabledChannel.setMessageHandler(nil) } - let setRecenterButtonEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setRecenterButtonEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let setRecenterButtonEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setRecenterButtonEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { setRecenterButtonEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3439,7 +3523,10 @@ class MapViewApiSetup { } else { setRecenterButtonEnabledChannel.setMessageHandler(nil) } - let isSpeedLimitIconEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isSpeedLimitIconEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let isSpeedLimitIconEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isSpeedLimitIconEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { isSpeedLimitIconEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3454,7 +3541,10 @@ class MapViewApiSetup { } else { isSpeedLimitIconEnabledChannel.setMessageHandler(nil) } - let setSpeedLimitIconEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setSpeedLimitIconEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let setSpeedLimitIconEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setSpeedLimitIconEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { setSpeedLimitIconEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3470,7 +3560,10 @@ class MapViewApiSetup { } else { setSpeedLimitIconEnabledChannel.setMessageHandler(nil) } - let isSpeedometerEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isSpeedometerEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let isSpeedometerEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isSpeedometerEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { isSpeedometerEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3485,7 +3578,10 @@ class MapViewApiSetup { } else { isSpeedometerEnabledChannel.setMessageHandler(nil) } - let setSpeedometerEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setSpeedometerEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let setSpeedometerEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setSpeedometerEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { setSpeedometerEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3501,7 +3597,10 @@ class MapViewApiSetup { } else { setSpeedometerEnabledChannel.setMessageHandler(nil) } - let isNavigationUIEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationUIEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let isNavigationUIEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationUIEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { isNavigationUIEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3516,7 +3615,10 @@ class MapViewApiSetup { } else { isNavigationUIEnabledChannel.setMessageHandler(nil) } - let setNavigationUIEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationUIEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let setNavigationUIEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationUIEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { setNavigationUIEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3532,7 +3634,10 @@ class MapViewApiSetup { } else { setNavigationUIEnabledChannel.setMessageHandler(nil) } - let isMyLocationButtonEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMyLocationButtonEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let isMyLocationButtonEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMyLocationButtonEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { isMyLocationButtonEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3547,7 +3652,10 @@ class MapViewApiSetup { } else { isMyLocationButtonEnabledChannel.setMessageHandler(nil) } - let setMyLocationButtonEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMyLocationButtonEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let setMyLocationButtonEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMyLocationButtonEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { setMyLocationButtonEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3563,7 +3671,10 @@ class MapViewApiSetup { } else { setMyLocationButtonEnabledChannel.setMessageHandler(nil) } - let isConsumeMyLocationButtonClickEventsEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isConsumeMyLocationButtonClickEventsEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let isConsumeMyLocationButtonClickEventsEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isConsumeMyLocationButtonClickEventsEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { isConsumeMyLocationButtonClickEventsEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3578,14 +3689,18 @@ class MapViewApiSetup { } else { isConsumeMyLocationButtonClickEventsEnabledChannel.setMessageHandler(nil) } - let setConsumeMyLocationButtonClickEventsEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setConsumeMyLocationButtonClickEventsEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let setConsumeMyLocationButtonClickEventsEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setConsumeMyLocationButtonClickEventsEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { setConsumeMyLocationButtonClickEventsEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] as! Int64 let enabledArg = args[1] as! Bool do { - try api.setConsumeMyLocationButtonClickEventsEnabled(viewId: viewIdArg, enabled: enabledArg) + try api.setConsumeMyLocationButtonClickEventsEnabled( + viewId: viewIdArg, enabled: enabledArg) reply(wrapResult(nil)) } catch { reply(wrapError(error)) @@ -3594,7 +3709,10 @@ class MapViewApiSetup { } else { setConsumeMyLocationButtonClickEventsEnabledChannel.setMessageHandler(nil) } - let isZoomGesturesEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isZoomGesturesEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let isZoomGesturesEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isZoomGesturesEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { isZoomGesturesEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3609,7 +3727,10 @@ class MapViewApiSetup { } else { isZoomGesturesEnabledChannel.setMessageHandler(nil) } - let setZoomGesturesEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setZoomGesturesEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let setZoomGesturesEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setZoomGesturesEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { setZoomGesturesEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3625,7 +3746,10 @@ class MapViewApiSetup { } else { setZoomGesturesEnabledChannel.setMessageHandler(nil) } - let isZoomControlsEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isZoomControlsEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let isZoomControlsEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isZoomControlsEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { isZoomControlsEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3640,7 +3764,10 @@ class MapViewApiSetup { } else { isZoomControlsEnabledChannel.setMessageHandler(nil) } - let setZoomControlsEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setZoomControlsEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let setZoomControlsEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setZoomControlsEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { setZoomControlsEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3656,7 +3783,10 @@ class MapViewApiSetup { } else { setZoomControlsEnabledChannel.setMessageHandler(nil) } - let isCompassEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isCompassEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let isCompassEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isCompassEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { isCompassEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3671,7 +3801,10 @@ class MapViewApiSetup { } else { isCompassEnabledChannel.setMessageHandler(nil) } - let setCompassEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setCompassEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let setCompassEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setCompassEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { setCompassEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3687,7 +3820,10 @@ class MapViewApiSetup { } else { setCompassEnabledChannel.setMessageHandler(nil) } - let isRotateGesturesEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isRotateGesturesEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let isRotateGesturesEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isRotateGesturesEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { isRotateGesturesEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3702,7 +3838,10 @@ class MapViewApiSetup { } else { isRotateGesturesEnabledChannel.setMessageHandler(nil) } - let setRotateGesturesEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setRotateGesturesEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let setRotateGesturesEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setRotateGesturesEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { setRotateGesturesEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3718,7 +3857,10 @@ class MapViewApiSetup { } else { setRotateGesturesEnabledChannel.setMessageHandler(nil) } - let isScrollGesturesEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isScrollGesturesEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let isScrollGesturesEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isScrollGesturesEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { isScrollGesturesEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3733,7 +3875,10 @@ class MapViewApiSetup { } else { isScrollGesturesEnabledChannel.setMessageHandler(nil) } - let setScrollGesturesEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setScrollGesturesEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let setScrollGesturesEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setScrollGesturesEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { setScrollGesturesEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3749,7 +3894,10 @@ class MapViewApiSetup { } else { setScrollGesturesEnabledChannel.setMessageHandler(nil) } - let isScrollGesturesEnabledDuringRotateOrZoomChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isScrollGesturesEnabledDuringRotateOrZoom\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let isScrollGesturesEnabledDuringRotateOrZoomChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isScrollGesturesEnabledDuringRotateOrZoom\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { isScrollGesturesEnabledDuringRotateOrZoomChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3764,7 +3912,10 @@ class MapViewApiSetup { } else { isScrollGesturesEnabledDuringRotateOrZoomChannel.setMessageHandler(nil) } - let setScrollGesturesDuringRotateOrZoomEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setScrollGesturesDuringRotateOrZoomEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let setScrollGesturesDuringRotateOrZoomEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setScrollGesturesDuringRotateOrZoomEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { setScrollGesturesDuringRotateOrZoomEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3780,7 +3931,10 @@ class MapViewApiSetup { } else { setScrollGesturesDuringRotateOrZoomEnabledChannel.setMessageHandler(nil) } - let isTiltGesturesEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTiltGesturesEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let isTiltGesturesEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTiltGesturesEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { isTiltGesturesEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3795,7 +3949,10 @@ class MapViewApiSetup { } else { isTiltGesturesEnabledChannel.setMessageHandler(nil) } - let setTiltGesturesEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTiltGesturesEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let setTiltGesturesEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTiltGesturesEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { setTiltGesturesEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3811,7 +3968,10 @@ class MapViewApiSetup { } else { setTiltGesturesEnabledChannel.setMessageHandler(nil) } - let isMapToolbarEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMapToolbarEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let isMapToolbarEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMapToolbarEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { isMapToolbarEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3826,7 +3986,10 @@ class MapViewApiSetup { } else { isMapToolbarEnabledChannel.setMessageHandler(nil) } - let setMapToolbarEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapToolbarEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let setMapToolbarEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapToolbarEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { setMapToolbarEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3842,7 +4005,10 @@ class MapViewApiSetup { } else { setMapToolbarEnabledChannel.setMessageHandler(nil) } - let isTrafficEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let isTrafficEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { isTrafficEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3857,7 +4023,10 @@ class MapViewApiSetup { } else { isTrafficEnabledChannel.setMessageHandler(nil) } - let setTrafficEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let setTrafficEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { setTrafficEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3873,7 +4042,10 @@ class MapViewApiSetup { } else { setTrafficEnabledChannel.setMessageHandler(nil) } - let isTrafficIncidentCardsEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficIncidentCardsEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let isTrafficIncidentCardsEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficIncidentCardsEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { isTrafficIncidentCardsEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3888,7 +4060,10 @@ class MapViewApiSetup { } else { isTrafficIncidentCardsEnabledChannel.setMessageHandler(nil) } - let setTrafficIncidentCardsEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficIncidentCardsEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let setTrafficIncidentCardsEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficIncidentCardsEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { setTrafficIncidentCardsEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3904,7 +4079,10 @@ class MapViewApiSetup { } else { setTrafficIncidentCardsEnabledChannel.setMessageHandler(nil) } - let isTrafficPromptsEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficPromptsEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let isTrafficPromptsEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficPromptsEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { isTrafficPromptsEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3919,7 +4097,10 @@ class MapViewApiSetup { } else { isTrafficPromptsEnabledChannel.setMessageHandler(nil) } - let setTrafficPromptsEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficPromptsEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let setTrafficPromptsEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficPromptsEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { setTrafficPromptsEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3935,7 +4116,10 @@ class MapViewApiSetup { } else { setTrafficPromptsEnabledChannel.setMessageHandler(nil) } - let isReportIncidentButtonEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isReportIncidentButtonEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let isReportIncidentButtonEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isReportIncidentButtonEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { isReportIncidentButtonEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3950,7 +4134,10 @@ class MapViewApiSetup { } else { isReportIncidentButtonEnabledChannel.setMessageHandler(nil) } - let setReportIncidentButtonEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setReportIncidentButtonEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let setReportIncidentButtonEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setReportIncidentButtonEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { setReportIncidentButtonEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3966,7 +4153,10 @@ class MapViewApiSetup { } else { setReportIncidentButtonEnabledChannel.setMessageHandler(nil) } - let isIncidentReportingAvailableChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isIncidentReportingAvailable\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let isIncidentReportingAvailableChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isIncidentReportingAvailable\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { isIncidentReportingAvailableChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3981,7 +4171,10 @@ class MapViewApiSetup { } else { isIncidentReportingAvailableChannel.setMessageHandler(nil) } - let showReportIncidentsPanelChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.showReportIncidentsPanel\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let showReportIncidentsPanelChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.showReportIncidentsPanel\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { showReportIncidentsPanelChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -3996,7 +4189,10 @@ class MapViewApiSetup { } else { showReportIncidentsPanelChannel.setMessageHandler(nil) } - let isBuildingsEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isBuildingsEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let isBuildingsEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isBuildingsEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { isBuildingsEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4011,7 +4207,10 @@ class MapViewApiSetup { } else { isBuildingsEnabledChannel.setMessageHandler(nil) } - let setBuildingsEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setBuildingsEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let setBuildingsEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setBuildingsEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { setBuildingsEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4027,7 +4226,10 @@ class MapViewApiSetup { } else { setBuildingsEnabledChannel.setMessageHandler(nil) } - let isIndoorEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isIndoorEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let isIndoorEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isIndoorEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { isIndoorEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4042,7 +4244,10 @@ class MapViewApiSetup { } else { isIndoorEnabledChannel.setMessageHandler(nil) } - let setIndoorEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setIndoorEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let setIndoorEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setIndoorEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { setIndoorEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4058,7 +4263,10 @@ class MapViewApiSetup { } else { setIndoorEnabledChannel.setMessageHandler(nil) } - let isIndoorLevelPickerEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isIndoorLevelPickerEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let isIndoorLevelPickerEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isIndoorLevelPickerEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { isIndoorLevelPickerEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4073,7 +4281,10 @@ class MapViewApiSetup { } else { isIndoorLevelPickerEnabledChannel.setMessageHandler(nil) } - let setIndoorLevelPickerEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setIndoorLevelPickerEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let setIndoorLevelPickerEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setIndoorLevelPickerEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { setIndoorLevelPickerEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4089,7 +4300,10 @@ class MapViewApiSetup { } else { setIndoorLevelPickerEnabledChannel.setMessageHandler(nil) } - let getFocusedIndoorBuildingChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getFocusedIndoorBuilding\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let getFocusedIndoorBuildingChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getFocusedIndoorBuilding\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { getFocusedIndoorBuildingChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4107,7 +4321,10 @@ class MapViewApiSetup { /// Activates the indoor level at [levelIndex] within the currently focused /// indoor building. Throws if no building is focused or the index is out of /// range. - let activateIndoorLevelChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.activateIndoorLevel\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let activateIndoorLevelChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.activateIndoorLevel\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { activateIndoorLevelChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4123,7 +4340,10 @@ class MapViewApiSetup { } else { activateIndoorLevelChannel.setMessageHandler(nil) } - let getCameraPositionChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getCameraPosition\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let getCameraPositionChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getCameraPosition\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { getCameraPositionChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4138,7 +4358,10 @@ class MapViewApiSetup { } else { getCameraPositionChannel.setMessageHandler(nil) } - let getVisibleRegionChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getVisibleRegion\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let getVisibleRegionChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getVisibleRegion\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { getVisibleRegionChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4153,7 +4376,10 @@ class MapViewApiSetup { } else { getVisibleRegionChannel.setMessageHandler(nil) } - let followMyLocationChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.followMyLocation\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let followMyLocationChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.followMyLocation\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { followMyLocationChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4161,7 +4387,8 @@ class MapViewApiSetup { let perspectiveArg = args[1] as! CameraPerspectiveDto let zoomLevelArg: Double? = nilOrValue(args[2]) do { - try api.followMyLocation(viewId: viewIdArg, perspective: perspectiveArg, zoomLevel: zoomLevelArg) + try api.followMyLocation( + viewId: viewIdArg, perspective: perspectiveArg, zoomLevel: zoomLevelArg) reply(wrapResult(nil)) } catch { reply(wrapError(error)) @@ -4170,14 +4397,19 @@ class MapViewApiSetup { } else { followMyLocationChannel.setMessageHandler(nil) } - let animateCameraToCameraPositionChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToCameraPosition\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let animateCameraToCameraPositionChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToCameraPosition\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { animateCameraToCameraPositionChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] as! Int64 let cameraPositionArg = args[1] as! CameraPositionDto let durationArg: Int64? = nilOrValue(args[2]) - api.animateCameraToCameraPosition(viewId: viewIdArg, cameraPosition: cameraPositionArg, duration: durationArg) { result in + api.animateCameraToCameraPosition( + viewId: viewIdArg, cameraPosition: cameraPositionArg, duration: durationArg + ) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -4189,14 +4421,18 @@ class MapViewApiSetup { } else { animateCameraToCameraPositionChannel.setMessageHandler(nil) } - let animateCameraToLatLngChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLng\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let animateCameraToLatLngChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLng\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { animateCameraToLatLngChannel.setMessageHandler { message, reply in let args = message as! [Any?] let viewIdArg = args[0] as! Int64 let pointArg = args[1] as! LatLngDto let durationArg: Int64? = nilOrValue(args[2]) - api.animateCameraToLatLng(viewId: viewIdArg, point: pointArg, duration: durationArg) { result in + api.animateCameraToLatLng(viewId: viewIdArg, point: pointArg, duration: durationArg) { + result in switch result { case .success(let res): reply(wrapResult(res)) @@ -4208,7 +4444,10 @@ class MapViewApiSetup { } else { animateCameraToLatLngChannel.setMessageHandler(nil) } - let animateCameraToLatLngBoundsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLngBounds\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let animateCameraToLatLngBoundsChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLngBounds\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { animateCameraToLatLngBoundsChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4216,7 +4455,9 @@ class MapViewApiSetup { let boundsArg = args[1] as! LatLngBoundsDto let paddingArg = args[2] as! Double let durationArg: Int64? = nilOrValue(args[3]) - api.animateCameraToLatLngBounds(viewId: viewIdArg, bounds: boundsArg, padding: paddingArg, duration: durationArg) { result in + api.animateCameraToLatLngBounds( + viewId: viewIdArg, bounds: boundsArg, padding: paddingArg, duration: durationArg + ) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -4228,7 +4469,10 @@ class MapViewApiSetup { } else { animateCameraToLatLngBoundsChannel.setMessageHandler(nil) } - let animateCameraToLatLngZoomChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLngZoom\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let animateCameraToLatLngZoomChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLngZoom\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { animateCameraToLatLngZoomChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4236,7 +4480,9 @@ class MapViewApiSetup { let pointArg = args[1] as! LatLngDto let zoomArg = args[2] as! Double let durationArg: Int64? = nilOrValue(args[3]) - api.animateCameraToLatLngZoom(viewId: viewIdArg, point: pointArg, zoom: zoomArg, duration: durationArg) { result in + api.animateCameraToLatLngZoom( + viewId: viewIdArg, point: pointArg, zoom: zoomArg, duration: durationArg + ) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -4248,7 +4494,10 @@ class MapViewApiSetup { } else { animateCameraToLatLngZoomChannel.setMessageHandler(nil) } - let animateCameraByScrollChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraByScroll\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let animateCameraByScrollChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraByScroll\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { animateCameraByScrollChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4256,7 +4505,10 @@ class MapViewApiSetup { let scrollByDxArg = args[1] as! Double let scrollByDyArg = args[2] as! Double let durationArg: Int64? = nilOrValue(args[3]) - api.animateCameraByScroll(viewId: viewIdArg, scrollByDx: scrollByDxArg, scrollByDy: scrollByDyArg, duration: durationArg) { result in + api.animateCameraByScroll( + viewId: viewIdArg, scrollByDx: scrollByDxArg, scrollByDy: scrollByDyArg, + duration: durationArg + ) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -4268,7 +4520,10 @@ class MapViewApiSetup { } else { animateCameraByScrollChannel.setMessageHandler(nil) } - let animateCameraByZoomChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraByZoom\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let animateCameraByZoomChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraByZoom\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { animateCameraByZoomChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4277,7 +4532,10 @@ class MapViewApiSetup { let focusDxArg: Double? = nilOrValue(args[2]) let focusDyArg: Double? = nilOrValue(args[3]) let durationArg: Int64? = nilOrValue(args[4]) - api.animateCameraByZoom(viewId: viewIdArg, zoomBy: zoomByArg, focusDx: focusDxArg, focusDy: focusDyArg, duration: durationArg) { result in + api.animateCameraByZoom( + viewId: viewIdArg, zoomBy: zoomByArg, focusDx: focusDxArg, focusDy: focusDyArg, + duration: durationArg + ) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -4289,7 +4547,10 @@ class MapViewApiSetup { } else { animateCameraByZoomChannel.setMessageHandler(nil) } - let animateCameraToZoomChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToZoom\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let animateCameraToZoomChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToZoom\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { animateCameraToZoomChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4308,7 +4569,10 @@ class MapViewApiSetup { } else { animateCameraToZoomChannel.setMessageHandler(nil) } - let moveCameraToCameraPositionChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToCameraPosition\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let moveCameraToCameraPositionChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToCameraPosition\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { moveCameraToCameraPositionChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4324,7 +4588,10 @@ class MapViewApiSetup { } else { moveCameraToCameraPositionChannel.setMessageHandler(nil) } - let moveCameraToLatLngChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLng\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let moveCameraToLatLngChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLng\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { moveCameraToLatLngChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4340,7 +4607,10 @@ class MapViewApiSetup { } else { moveCameraToLatLngChannel.setMessageHandler(nil) } - let moveCameraToLatLngBoundsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLngBounds\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let moveCameraToLatLngBoundsChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLngBounds\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { moveCameraToLatLngBoundsChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4348,7 +4618,8 @@ class MapViewApiSetup { let boundsArg = args[1] as! LatLngBoundsDto let paddingArg = args[2] as! Double do { - try api.moveCameraToLatLngBounds(viewId: viewIdArg, bounds: boundsArg, padding: paddingArg) + try api.moveCameraToLatLngBounds( + viewId: viewIdArg, bounds: boundsArg, padding: paddingArg) reply(wrapResult(nil)) } catch { reply(wrapError(error)) @@ -4357,7 +4628,10 @@ class MapViewApiSetup { } else { moveCameraToLatLngBoundsChannel.setMessageHandler(nil) } - let moveCameraToLatLngZoomChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLngZoom\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let moveCameraToLatLngZoomChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLngZoom\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { moveCameraToLatLngZoomChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4374,7 +4648,10 @@ class MapViewApiSetup { } else { moveCameraToLatLngZoomChannel.setMessageHandler(nil) } - let moveCameraByScrollChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraByScroll\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let moveCameraByScrollChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraByScroll\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { moveCameraByScrollChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4382,7 +4659,8 @@ class MapViewApiSetup { let scrollByDxArg = args[1] as! Double let scrollByDyArg = args[2] as! Double do { - try api.moveCameraByScroll(viewId: viewIdArg, scrollByDx: scrollByDxArg, scrollByDy: scrollByDyArg) + try api.moveCameraByScroll( + viewId: viewIdArg, scrollByDx: scrollByDxArg, scrollByDy: scrollByDyArg) reply(wrapResult(nil)) } catch { reply(wrapError(error)) @@ -4391,7 +4669,10 @@ class MapViewApiSetup { } else { moveCameraByScrollChannel.setMessageHandler(nil) } - let moveCameraByZoomChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraByZoom\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let moveCameraByZoomChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraByZoom\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { moveCameraByZoomChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4400,7 +4681,8 @@ class MapViewApiSetup { let focusDxArg: Double? = nilOrValue(args[2]) let focusDyArg: Double? = nilOrValue(args[3]) do { - try api.moveCameraByZoom(viewId: viewIdArg, zoomBy: zoomByArg, focusDx: focusDxArg, focusDy: focusDyArg) + try api.moveCameraByZoom( + viewId: viewIdArg, zoomBy: zoomByArg, focusDx: focusDxArg, focusDy: focusDyArg) reply(wrapResult(nil)) } catch { reply(wrapError(error)) @@ -4409,7 +4691,10 @@ class MapViewApiSetup { } else { moveCameraByZoomChannel.setMessageHandler(nil) } - let moveCameraToZoomChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToZoom\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let moveCameraToZoomChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToZoom\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { moveCameraToZoomChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4425,7 +4710,10 @@ class MapViewApiSetup { } else { moveCameraToZoomChannel.setMessageHandler(nil) } - let showRouteOverviewChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.showRouteOverview\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let showRouteOverviewChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.showRouteOverview\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { showRouteOverviewChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4440,7 +4728,10 @@ class MapViewApiSetup { } else { showRouteOverviewChannel.setMessageHandler(nil) } - let getMinZoomPreferenceChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMinZoomPreference\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let getMinZoomPreferenceChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMinZoomPreference\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { getMinZoomPreferenceChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4455,7 +4746,10 @@ class MapViewApiSetup { } else { getMinZoomPreferenceChannel.setMessageHandler(nil) } - let getMaxZoomPreferenceChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMaxZoomPreference\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let getMaxZoomPreferenceChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMaxZoomPreference\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { getMaxZoomPreferenceChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4470,7 +4764,10 @@ class MapViewApiSetup { } else { getMaxZoomPreferenceChannel.setMessageHandler(nil) } - let resetMinMaxZoomPreferenceChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.resetMinMaxZoomPreference\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let resetMinMaxZoomPreferenceChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.resetMinMaxZoomPreference\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { resetMinMaxZoomPreferenceChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4485,7 +4782,10 @@ class MapViewApiSetup { } else { resetMinMaxZoomPreferenceChannel.setMessageHandler(nil) } - let setMinZoomPreferenceChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMinZoomPreference\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let setMinZoomPreferenceChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMinZoomPreference\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { setMinZoomPreferenceChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4501,7 +4801,10 @@ class MapViewApiSetup { } else { setMinZoomPreferenceChannel.setMessageHandler(nil) } - let setMaxZoomPreferenceChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMaxZoomPreference\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let setMaxZoomPreferenceChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMaxZoomPreference\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { setMaxZoomPreferenceChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4517,7 +4820,9 @@ class MapViewApiSetup { } else { setMaxZoomPreferenceChannel.setMessageHandler(nil) } - let getMarkersChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMarkers\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let getMarkersChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMarkers\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { getMarkersChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4532,7 +4837,9 @@ class MapViewApiSetup { } else { getMarkersChannel.setMessageHandler(nil) } - let addMarkersChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addMarkers\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let addMarkersChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addMarkers\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { addMarkersChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4548,7 +4855,9 @@ class MapViewApiSetup { } else { addMarkersChannel.setMessageHandler(nil) } - let updateMarkersChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updateMarkers\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let updateMarkersChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updateMarkers\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { updateMarkersChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4564,7 +4873,9 @@ class MapViewApiSetup { } else { updateMarkersChannel.setMessageHandler(nil) } - let removeMarkersChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removeMarkers\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let removeMarkersChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removeMarkers\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { removeMarkersChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4580,7 +4891,9 @@ class MapViewApiSetup { } else { removeMarkersChannel.setMessageHandler(nil) } - let clearMarkersChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearMarkers\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let clearMarkersChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearMarkers\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { clearMarkersChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4595,7 +4908,9 @@ class MapViewApiSetup { } else { clearMarkersChannel.setMessageHandler(nil) } - let clearChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clear\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let clearChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clear\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { clearChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4610,7 +4925,9 @@ class MapViewApiSetup { } else { clearChannel.setMessageHandler(nil) } - let getPolygonsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPolygons\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let getPolygonsChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPolygons\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { getPolygonsChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4625,7 +4942,9 @@ class MapViewApiSetup { } else { getPolygonsChannel.setMessageHandler(nil) } - let addPolygonsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addPolygons\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let addPolygonsChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addPolygons\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { addPolygonsChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4641,7 +4960,10 @@ class MapViewApiSetup { } else { addPolygonsChannel.setMessageHandler(nil) } - let updatePolygonsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updatePolygons\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let updatePolygonsChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updatePolygons\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { updatePolygonsChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4657,7 +4979,10 @@ class MapViewApiSetup { } else { updatePolygonsChannel.setMessageHandler(nil) } - let removePolygonsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removePolygons\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let removePolygonsChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removePolygons\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { removePolygonsChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4673,7 +4998,9 @@ class MapViewApiSetup { } else { removePolygonsChannel.setMessageHandler(nil) } - let clearPolygonsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearPolygons\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let clearPolygonsChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearPolygons\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { clearPolygonsChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4688,7 +5015,9 @@ class MapViewApiSetup { } else { clearPolygonsChannel.setMessageHandler(nil) } - let getPolylinesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPolylines\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let getPolylinesChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPolylines\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { getPolylinesChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4703,7 +5032,9 @@ class MapViewApiSetup { } else { getPolylinesChannel.setMessageHandler(nil) } - let addPolylinesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addPolylines\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let addPolylinesChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addPolylines\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { addPolylinesChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4719,7 +5050,10 @@ class MapViewApiSetup { } else { addPolylinesChannel.setMessageHandler(nil) } - let updatePolylinesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updatePolylines\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let updatePolylinesChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updatePolylines\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { updatePolylinesChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4735,7 +5069,10 @@ class MapViewApiSetup { } else { updatePolylinesChannel.setMessageHandler(nil) } - let removePolylinesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removePolylines\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let removePolylinesChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removePolylines\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { removePolylinesChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4751,7 +5088,10 @@ class MapViewApiSetup { } else { removePolylinesChannel.setMessageHandler(nil) } - let clearPolylinesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearPolylines\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let clearPolylinesChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearPolylines\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { clearPolylinesChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4766,7 +5106,9 @@ class MapViewApiSetup { } else { clearPolylinesChannel.setMessageHandler(nil) } - let getCirclesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getCircles\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let getCirclesChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getCircles\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { getCirclesChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4781,7 +5123,9 @@ class MapViewApiSetup { } else { getCirclesChannel.setMessageHandler(nil) } - let addCirclesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addCircles\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let addCirclesChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addCircles\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { addCirclesChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4797,7 +5141,9 @@ class MapViewApiSetup { } else { addCirclesChannel.setMessageHandler(nil) } - let updateCirclesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updateCircles\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let updateCirclesChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updateCircles\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { updateCirclesChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4813,7 +5159,9 @@ class MapViewApiSetup { } else { updateCirclesChannel.setMessageHandler(nil) } - let removeCirclesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removeCircles\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let removeCirclesChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removeCircles\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { removeCirclesChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4829,7 +5177,9 @@ class MapViewApiSetup { } else { removeCirclesChannel.setMessageHandler(nil) } - let clearCirclesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearCircles\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let clearCirclesChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearCircles\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { clearCirclesChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4844,7 +5194,10 @@ class MapViewApiSetup { } else { clearCirclesChannel.setMessageHandler(nil) } - let enableOnCameraChangedEventsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.enableOnCameraChangedEvents\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let enableOnCameraChangedEventsChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.enableOnCameraChangedEvents\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { enableOnCameraChangedEventsChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4859,7 +5212,9 @@ class MapViewApiSetup { } else { enableOnCameraChangedEventsChannel.setMessageHandler(nil) } - let setPaddingChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setPadding\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let setPaddingChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setPadding\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { setPaddingChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4875,7 +5230,9 @@ class MapViewApiSetup { } else { setPaddingChannel.setMessageHandler(nil) } - let getPaddingChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPadding\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let getPaddingChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPadding\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { getPaddingChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4890,7 +5247,10 @@ class MapViewApiSetup { } else { getPaddingChannel.setMessageHandler(nil) } - let getMapColorSchemeChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMapColorScheme\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let getMapColorSchemeChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMapColorScheme\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { getMapColorSchemeChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4905,7 +5265,10 @@ class MapViewApiSetup { } else { getMapColorSchemeChannel.setMessageHandler(nil) } - let setMapColorSchemeChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapColorScheme\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let setMapColorSchemeChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapColorScheme\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { setMapColorSchemeChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4921,7 +5284,10 @@ class MapViewApiSetup { } else { setMapColorSchemeChannel.setMessageHandler(nil) } - let getForceNightModeChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getForceNightMode\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let getForceNightModeChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getForceNightMode\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { getForceNightModeChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4936,7 +5302,10 @@ class MapViewApiSetup { } else { getForceNightModeChannel.setMessageHandler(nil) } - let setForceNightModeChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setForceNightMode\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let setForceNightModeChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setForceNightMode\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { setForceNightModeChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4956,20 +5325,30 @@ class MapViewApiSetup { } /// Generated protocol from Pigeon that represents a handler of messages from Flutter. protocol ImageRegistryApi { - func registerBitmapImage(imageId: String, bytes: FlutterStandardTypedData, imagePixelRatio: Double, width: Double?, height: Double?) throws -> ImageDescriptorDto + func registerBitmapImage( + imageId: String, bytes: FlutterStandardTypedData, imagePixelRatio: Double, width: Double?, + height: Double? + ) throws -> ImageDescriptorDto func unregisterImage(imageDescriptor: ImageDescriptorDto) throws func getRegisteredImages() throws -> [ImageDescriptorDto] func clearRegisteredImages(filter: RegisteredImageTypeDto?) throws - func getRegisteredImageData(imageDescriptor: ImageDescriptorDto) throws -> FlutterStandardTypedData? + func getRegisteredImageData(imageDescriptor: ImageDescriptorDto) throws + -> FlutterStandardTypedData? } /// Generated setup class from Pigeon to handle messages through the `binaryMessenger`. class ImageRegistryApiSetup { static var codec: FlutterStandardMessageCodec { MessagesPigeonCodec.shared } /// Sets up an instance of `ImageRegistryApi` to handle messages through the `binaryMessenger`. - static func setUp(binaryMessenger: FlutterBinaryMessenger, api: ImageRegistryApi?, messageChannelSuffix: String = "") { + static func setUp( + binaryMessenger: FlutterBinaryMessenger, api: ImageRegistryApi?, + messageChannelSuffix: String = "" + ) { let channelSuffix = messageChannelSuffix.count > 0 ? ".\(messageChannelSuffix)" : "" - let registerBitmapImageChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.registerBitmapImage\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let registerBitmapImageChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.registerBitmapImage\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { registerBitmapImageChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -4979,7 +5358,9 @@ class ImageRegistryApiSetup { let widthArg: Double? = nilOrValue(args[3]) let heightArg: Double? = nilOrValue(args[4]) do { - let result = try api.registerBitmapImage(imageId: imageIdArg, bytes: bytesArg, imagePixelRatio: imagePixelRatioArg, width: widthArg, height: heightArg) + let result = try api.registerBitmapImage( + imageId: imageIdArg, bytes: bytesArg, imagePixelRatio: imagePixelRatioArg, + width: widthArg, height: heightArg) reply(wrapResult(result)) } catch { reply(wrapError(error)) @@ -4988,7 +5369,10 @@ class ImageRegistryApiSetup { } else { registerBitmapImageChannel.setMessageHandler(nil) } - let unregisterImageChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.unregisterImage\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let unregisterImageChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.unregisterImage\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { unregisterImageChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -5003,7 +5387,10 @@ class ImageRegistryApiSetup { } else { unregisterImageChannel.setMessageHandler(nil) } - let getRegisteredImagesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.getRegisteredImages\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let getRegisteredImagesChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.getRegisteredImages\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { getRegisteredImagesChannel.setMessageHandler { _, reply in do { @@ -5016,7 +5403,10 @@ class ImageRegistryApiSetup { } else { getRegisteredImagesChannel.setMessageHandler(nil) } - let clearRegisteredImagesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.clearRegisteredImages\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let clearRegisteredImagesChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.clearRegisteredImages\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { clearRegisteredImagesChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -5031,7 +5421,10 @@ class ImageRegistryApiSetup { } else { clearRegisteredImagesChannel.setMessageHandler(nil) } - let getRegisteredImageDataChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.getRegisteredImageData\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let getRegisteredImageDataChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.getRegisteredImageData\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { getRegisteredImageDataChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -5050,22 +5443,54 @@ class ImageRegistryApiSetup { } /// Generated protocol from Pigeon that represents Flutter messages that can be called from Swift. protocol ViewEventApiProtocol { - func onMapClickEvent(viewId viewIdArg: Int64, latLng latLngArg: LatLngDto, completion: @escaping (Result) -> Void) - func onMapLongClickEvent(viewId viewIdArg: Int64, latLng latLngArg: LatLngDto, completion: @escaping (Result) -> Void) - func onRecenterButtonClicked(viewId viewIdArg: Int64, completion: @escaping (Result) -> Void) - func onMarkerEvent(viewId viewIdArg: Int64, markerId markerIdArg: String, eventType eventTypeArg: MarkerEventTypeDto, completion: @escaping (Result) -> Void) - func onMarkerDragEvent(viewId viewIdArg: Int64, markerId markerIdArg: String, eventType eventTypeArg: MarkerDragEventTypeDto, position positionArg: LatLngDto, completion: @escaping (Result) -> Void) - func onPolygonClicked(viewId viewIdArg: Int64, polygonId polygonIdArg: String, completion: @escaping (Result) -> Void) - func onPolylineClicked(viewId viewIdArg: Int64, polylineId polylineIdArg: String, completion: @escaping (Result) -> Void) - func onCircleClicked(viewId viewIdArg: Int64, circleId circleIdArg: String, completion: @escaping (Result) -> Void) - func onPoiClick(viewId viewIdArg: Int64, pointOfInterest pointOfInterestArg: PointOfInterestDto, completion: @escaping (Result) -> Void) - func onNavigationUIEnabledChanged(viewId viewIdArg: Int64, navigationUIEnabled navigationUIEnabledArg: Bool, completion: @escaping (Result) -> Void) - func onPromptVisibilityChanged(viewId viewIdArg: Int64, promptVisible promptVisibleArg: Bool, completion: @escaping (Result) -> Void) - func onMyLocationClicked(viewId viewIdArg: Int64, completion: @escaping (Result) -> Void) - func onMyLocationButtonClicked(viewId viewIdArg: Int64, completion: @escaping (Result) -> Void) - func onIndoorFocusedBuildingChanged(viewId viewIdArg: Int64, building buildingArg: IndoorBuildingDto?, completion: @escaping (Result) -> Void) - func onIndoorActiveLevelChanged(viewId viewIdArg: Int64, building buildingArg: IndoorBuildingDto?, completion: @escaping (Result) -> Void) - func onCameraChanged(viewId viewIdArg: Int64, eventType eventTypeArg: CameraEventTypeDto, position positionArg: CameraPositionDto, completion: @escaping (Result) -> Void) + func onMapClickEvent( + viewId viewIdArg: Int64, latLng latLngArg: LatLngDto, + completion: @escaping (Result) -> Void) + func onMapLongClickEvent( + viewId viewIdArg: Int64, latLng latLngArg: LatLngDto, + completion: @escaping (Result) -> Void) + func onRecenterButtonClicked( + viewId viewIdArg: Int64, completion: @escaping (Result) -> Void) + func onMarkerEvent( + viewId viewIdArg: Int64, markerId markerIdArg: String, + eventType eventTypeArg: MarkerEventTypeDto, + completion: @escaping (Result) -> Void) + func onMarkerDragEvent( + viewId viewIdArg: Int64, markerId markerIdArg: String, + eventType eventTypeArg: MarkerDragEventTypeDto, position positionArg: LatLngDto, + completion: @escaping (Result) -> Void) + func onPolygonClicked( + viewId viewIdArg: Int64, polygonId polygonIdArg: String, + completion: @escaping (Result) -> Void) + func onPolylineClicked( + viewId viewIdArg: Int64, polylineId polylineIdArg: String, + completion: @escaping (Result) -> Void) + func onCircleClicked( + viewId viewIdArg: Int64, circleId circleIdArg: String, + completion: @escaping (Result) -> Void) + func onPoiClick( + viewId viewIdArg: Int64, pointOfInterest pointOfInterestArg: PointOfInterestDto, + completion: @escaping (Result) -> Void) + func onNavigationUIEnabledChanged( + viewId viewIdArg: Int64, navigationUIEnabled navigationUIEnabledArg: Bool, + completion: @escaping (Result) -> Void) + func onPromptVisibilityChanged( + viewId viewIdArg: Int64, promptVisible promptVisibleArg: Bool, + completion: @escaping (Result) -> Void) + func onMyLocationClicked( + viewId viewIdArg: Int64, completion: @escaping (Result) -> Void) + func onMyLocationButtonClicked( + viewId viewIdArg: Int64, completion: @escaping (Result) -> Void) + func onIndoorFocusedBuildingChanged( + viewId viewIdArg: Int64, building buildingArg: IndoorBuildingDto?, + completion: @escaping (Result) -> Void) + func onIndoorActiveLevelChanged( + viewId viewIdArg: Int64, building buildingArg: IndoorBuildingDto?, + completion: @escaping (Result) -> Void) + func onCameraChanged( + viewId viewIdArg: Int64, eventType eventTypeArg: CameraEventTypeDto, + position positionArg: CameraPositionDto, + completion: @escaping (Result) -> Void) } class ViewEventApi: ViewEventApiProtocol { private let binaryMessenger: FlutterBinaryMessenger @@ -5077,9 +5502,14 @@ class ViewEventApi: ViewEventApiProtocol { var codec: MessagesPigeonCodec { return MessagesPigeonCodec.shared } - func onMapClickEvent(viewId viewIdArg: Int64, latLng latLngArg: LatLngDto, completion: @escaping (Result) -> Void) { - let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMapClickEvent\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func onMapClickEvent( + viewId viewIdArg: Int64, latLng latLngArg: LatLngDto, + completion: @escaping (Result) -> Void + ) { + let channelName: String = + "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMapClickEvent\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([viewIdArg, latLngArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5095,9 +5525,14 @@ class ViewEventApi: ViewEventApiProtocol { } } } - func onMapLongClickEvent(viewId viewIdArg: Int64, latLng latLngArg: LatLngDto, completion: @escaping (Result) -> Void) { - let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMapLongClickEvent\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func onMapLongClickEvent( + viewId viewIdArg: Int64, latLng latLngArg: LatLngDto, + completion: @escaping (Result) -> Void + ) { + let channelName: String = + "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMapLongClickEvent\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([viewIdArg, latLngArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5113,9 +5548,13 @@ class ViewEventApi: ViewEventApiProtocol { } } } - func onRecenterButtonClicked(viewId viewIdArg: Int64, completion: @escaping (Result) -> Void) { - let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onRecenterButtonClicked\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func onRecenterButtonClicked( + viewId viewIdArg: Int64, completion: @escaping (Result) -> Void + ) { + let channelName: String = + "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onRecenterButtonClicked\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([viewIdArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5131,9 +5570,15 @@ class ViewEventApi: ViewEventApiProtocol { } } } - func onMarkerEvent(viewId viewIdArg: Int64, markerId markerIdArg: String, eventType eventTypeArg: MarkerEventTypeDto, completion: @escaping (Result) -> Void) { - let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMarkerEvent\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func onMarkerEvent( + viewId viewIdArg: Int64, markerId markerIdArg: String, + eventType eventTypeArg: MarkerEventTypeDto, + completion: @escaping (Result) -> Void + ) { + let channelName: String = + "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMarkerEvent\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([viewIdArg, markerIdArg, eventTypeArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5149,9 +5594,15 @@ class ViewEventApi: ViewEventApiProtocol { } } } - func onMarkerDragEvent(viewId viewIdArg: Int64, markerId markerIdArg: String, eventType eventTypeArg: MarkerDragEventTypeDto, position positionArg: LatLngDto, completion: @escaping (Result) -> Void) { - let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMarkerDragEvent\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func onMarkerDragEvent( + viewId viewIdArg: Int64, markerId markerIdArg: String, + eventType eventTypeArg: MarkerDragEventTypeDto, position positionArg: LatLngDto, + completion: @escaping (Result) -> Void + ) { + let channelName: String = + "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMarkerDragEvent\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([viewIdArg, markerIdArg, eventTypeArg, positionArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5167,9 +5618,14 @@ class ViewEventApi: ViewEventApiProtocol { } } } - func onPolygonClicked(viewId viewIdArg: Int64, polygonId polygonIdArg: String, completion: @escaping (Result) -> Void) { - let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPolygonClicked\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func onPolygonClicked( + viewId viewIdArg: Int64, polygonId polygonIdArg: String, + completion: @escaping (Result) -> Void + ) { + let channelName: String = + "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPolygonClicked\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([viewIdArg, polygonIdArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5185,9 +5641,14 @@ class ViewEventApi: ViewEventApiProtocol { } } } - func onPolylineClicked(viewId viewIdArg: Int64, polylineId polylineIdArg: String, completion: @escaping (Result) -> Void) { - let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPolylineClicked\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func onPolylineClicked( + viewId viewIdArg: Int64, polylineId polylineIdArg: String, + completion: @escaping (Result) -> Void + ) { + let channelName: String = + "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPolylineClicked\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([viewIdArg, polylineIdArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5203,9 +5664,14 @@ class ViewEventApi: ViewEventApiProtocol { } } } - func onCircleClicked(viewId viewIdArg: Int64, circleId circleIdArg: String, completion: @escaping (Result) -> Void) { - let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onCircleClicked\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func onCircleClicked( + viewId viewIdArg: Int64, circleId circleIdArg: String, + completion: @escaping (Result) -> Void + ) { + let channelName: String = + "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onCircleClicked\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([viewIdArg, circleIdArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5221,9 +5687,14 @@ class ViewEventApi: ViewEventApiProtocol { } } } - func onPoiClick(viewId viewIdArg: Int64, pointOfInterest pointOfInterestArg: PointOfInterestDto, completion: @escaping (Result) -> Void) { - let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPoiClick\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func onPoiClick( + viewId viewIdArg: Int64, pointOfInterest pointOfInterestArg: PointOfInterestDto, + completion: @escaping (Result) -> Void + ) { + let channelName: String = + "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPoiClick\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([viewIdArg, pointOfInterestArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5239,9 +5710,14 @@ class ViewEventApi: ViewEventApiProtocol { } } } - func onNavigationUIEnabledChanged(viewId viewIdArg: Int64, navigationUIEnabled navigationUIEnabledArg: Bool, completion: @escaping (Result) -> Void) { - let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onNavigationUIEnabledChanged\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func onNavigationUIEnabledChanged( + viewId viewIdArg: Int64, navigationUIEnabled navigationUIEnabledArg: Bool, + completion: @escaping (Result) -> Void + ) { + let channelName: String = + "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onNavigationUIEnabledChanged\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([viewIdArg, navigationUIEnabledArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5257,9 +5733,14 @@ class ViewEventApi: ViewEventApiProtocol { } } } - func onPromptVisibilityChanged(viewId viewIdArg: Int64, promptVisible promptVisibleArg: Bool, completion: @escaping (Result) -> Void) { - let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPromptVisibilityChanged\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func onPromptVisibilityChanged( + viewId viewIdArg: Int64, promptVisible promptVisibleArg: Bool, + completion: @escaping (Result) -> Void + ) { + let channelName: String = + "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPromptVisibilityChanged\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([viewIdArg, promptVisibleArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5275,9 +5756,13 @@ class ViewEventApi: ViewEventApiProtocol { } } } - func onMyLocationClicked(viewId viewIdArg: Int64, completion: @escaping (Result) -> Void) { - let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMyLocationClicked\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func onMyLocationClicked( + viewId viewIdArg: Int64, completion: @escaping (Result) -> Void + ) { + let channelName: String = + "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMyLocationClicked\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([viewIdArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5293,9 +5778,13 @@ class ViewEventApi: ViewEventApiProtocol { } } } - func onMyLocationButtonClicked(viewId viewIdArg: Int64, completion: @escaping (Result) -> Void) { - let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMyLocationButtonClicked\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func onMyLocationButtonClicked( + viewId viewIdArg: Int64, completion: @escaping (Result) -> Void + ) { + let channelName: String = + "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMyLocationButtonClicked\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([viewIdArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5311,9 +5800,14 @@ class ViewEventApi: ViewEventApiProtocol { } } } - func onIndoorFocusedBuildingChanged(viewId viewIdArg: Int64, building buildingArg: IndoorBuildingDto?, completion: @escaping (Result) -> Void) { - let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onIndoorFocusedBuildingChanged\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func onIndoorFocusedBuildingChanged( + viewId viewIdArg: Int64, building buildingArg: IndoorBuildingDto?, + completion: @escaping (Result) -> Void + ) { + let channelName: String = + "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onIndoorFocusedBuildingChanged\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([viewIdArg, buildingArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5329,9 +5823,14 @@ class ViewEventApi: ViewEventApiProtocol { } } } - func onIndoorActiveLevelChanged(viewId viewIdArg: Int64, building buildingArg: IndoorBuildingDto?, completion: @escaping (Result) -> Void) { - let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onIndoorActiveLevelChanged\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func onIndoorActiveLevelChanged( + viewId viewIdArg: Int64, building buildingArg: IndoorBuildingDto?, + completion: @escaping (Result) -> Void + ) { + let channelName: String = + "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onIndoorActiveLevelChanged\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([viewIdArg, buildingArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5347,9 +5846,15 @@ class ViewEventApi: ViewEventApiProtocol { } } } - func onCameraChanged(viewId viewIdArg: Int64, eventType eventTypeArg: CameraEventTypeDto, position positionArg: CameraPositionDto, completion: @escaping (Result) -> Void) { - let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onCameraChanged\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func onCameraChanged( + viewId viewIdArg: Int64, eventType eventTypeArg: CameraEventTypeDto, + position positionArg: CameraPositionDto, + completion: @escaping (Result) -> Void + ) { + let channelName: String = + "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onCameraChanged\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([viewIdArg, eventTypeArg, positionArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5368,19 +5873,25 @@ class ViewEventApi: ViewEventApiProtocol { } /// Generated protocol from Pigeon that represents a handler of messages from Flutter. protocol NavigationSessionApi { - 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(resetSession: Bool) throws - func showTermsAndConditionsDialog(title: String, companyName: String, shouldOnlyShowDriverAwarenessDisclaimer: Bool, uiParams: TermsAndConditionsUIParamsDto?, completion: @escaping (Result) -> Void) + func showTermsAndConditionsDialog( + title: String, companyName: String, shouldOnlyShowDriverAwarenessDisclaimer: Bool, + uiParams: TermsAndConditionsUIParamsDto?, completion: @escaping (Result) -> Void) func areTermsAccepted() throws -> Bool func resetTermsAccepted() throws func getNavSDKVersion() throws -> String func isGuidanceRunning() throws -> Bool func startGuidance() throws func stopGuidance() throws - func setDestinations(destinations: DestinationsDto, completion: @escaping (Result) -> Void) + func setDestinations( + destinations: DestinationsDto, completion: @escaping (Result) -> Void) func clearDestinations() throws - func continueToNextDestination(completion: @escaping (Result) -> Void) + func continueToNextDestination( + completion: @escaping (Result) -> Void) func getCurrentTimeAndDistance() throws -> NavigationTimeAndDistanceDto func setAudioGuidance(settings: NavigationAudioGuidanceSettingsDto) throws func setSpeedAlertOptions(options: SpeedAlertOptionsDto) throws @@ -5391,33 +5902,51 @@ protocol NavigationSessionApi { func removeUserLocation() throws func simulateLocationsAlongExistingRoute() throws func simulateLocationsAlongExistingRouteWithOptions(options: SimulationOptionsDto) throws - func simulateLocationsAlongNewRoute(waypoints: [NavigationWaypointDto], completion: @escaping (Result) -> Void) - func simulateLocationsAlongNewRouteWithRoutingOptions(waypoints: [NavigationWaypointDto], routingOptions: RoutingOptionsDto, completion: @escaping (Result) -> Void) - func simulateLocationsAlongNewRouteWithRoutingAndSimulationOptions(waypoints: [NavigationWaypointDto], routingOptions: RoutingOptionsDto, simulationOptions: SimulationOptionsDto, completion: @escaping (Result) -> Void) + func simulateLocationsAlongNewRoute( + waypoints: [NavigationWaypointDto], + completion: @escaping (Result) -> Void) + func simulateLocationsAlongNewRouteWithRoutingOptions( + waypoints: [NavigationWaypointDto], routingOptions: RoutingOptionsDto, + completion: @escaping (Result) -> Void) + func simulateLocationsAlongNewRouteWithRoutingAndSimulationOptions( + waypoints: [NavigationWaypointDto], routingOptions: RoutingOptionsDto, + simulationOptions: SimulationOptionsDto, + completion: @escaping (Result) -> Void) func pauseSimulation() throws func resumeSimulation() throws /// iOS-only method. func allowBackgroundLocationUpdates(allow: Bool) throws func enableRoadSnappedLocationUpdates() throws func disableRoadSnappedLocationUpdates() throws - func enableTurnByTurnNavigationEvents(numNextStepsToPreview: Int64?, options: StepImageGenerationOptionsDto?) throws + func enableTurnByTurnNavigationEvents( + numNextStepsToPreview: Int64?, options: StepImageGenerationOptionsDto?) throws func disableTurnByTurnNavigationEvents() throws - func registerRemainingTimeOrDistanceChangedListener(remainingTimeThresholdSeconds: Int64, remainingDistanceThresholdMeters: Int64) throws + func registerRemainingTimeOrDistanceChangedListener( + remainingTimeThresholdSeconds: Int64, remainingDistanceThresholdMeters: Int64) throws } /// Generated setup class from Pigeon to handle messages through the `binaryMessenger`. class NavigationSessionApiSetup { static var codec: FlutterStandardMessageCodec { MessagesPigeonCodec.shared } /// Sets up an instance of `NavigationSessionApi` to handle messages through the `binaryMessenger`. - static func setUp(binaryMessenger: FlutterBinaryMessenger, api: NavigationSessionApi?, messageChannelSuffix: String = "") { + static func setUp( + binaryMessenger: FlutterBinaryMessenger, api: NavigationSessionApi?, + messageChannelSuffix: String = "" + ) { let channelSuffix = messageChannelSuffix.count > 0 ? ".\(messageChannelSuffix)" : "" - let createNavigationSessionChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.createNavigationSession\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let createNavigationSessionChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.createNavigationSession\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { createNavigationSessionChannel.setMessageHandler { message, reply in let args = message as! [Any?] let abnormalTerminationReportingEnabledArg = args[0] as! Bool let behaviorArg = args[1] as! TaskRemovedBehaviorDto - api.createNavigationSession(abnormalTerminationReportingEnabled: abnormalTerminationReportingEnabledArg, behavior: behaviorArg) { result in + api.createNavigationSession( + abnormalTerminationReportingEnabled: abnormalTerminationReportingEnabledArg, + behavior: behaviorArg + ) { result in switch result { case .success: reply(wrapResult(nil)) @@ -5429,7 +5958,10 @@ class NavigationSessionApiSetup { } else { createNavigationSessionChannel.setMessageHandler(nil) } - let isInitializedChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.isInitialized\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let isInitializedChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.isInitialized\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { isInitializedChannel.setMessageHandler { _, reply in do { @@ -5442,7 +5974,10 @@ class NavigationSessionApiSetup { } else { isInitializedChannel.setMessageHandler(nil) } - let cleanupChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.cleanup\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let cleanupChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.cleanup\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { cleanupChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -5457,7 +5992,10 @@ class NavigationSessionApiSetup { } else { cleanupChannel.setMessageHandler(nil) } - let showTermsAndConditionsDialogChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.showTermsAndConditionsDialog\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let showTermsAndConditionsDialogChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.showTermsAndConditionsDialog\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { showTermsAndConditionsDialogChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -5465,7 +6003,11 @@ class NavigationSessionApiSetup { let companyNameArg = args[1] as! String let shouldOnlyShowDriverAwarenessDisclaimerArg = args[2] as! Bool let uiParamsArg: TermsAndConditionsUIParamsDto? = nilOrValue(args[3]) - api.showTermsAndConditionsDialog(title: titleArg, companyName: companyNameArg, shouldOnlyShowDriverAwarenessDisclaimer: shouldOnlyShowDriverAwarenessDisclaimerArg, uiParams: uiParamsArg) { result in + api.showTermsAndConditionsDialog( + title: titleArg, companyName: companyNameArg, + shouldOnlyShowDriverAwarenessDisclaimer: shouldOnlyShowDriverAwarenessDisclaimerArg, + uiParams: uiParamsArg + ) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -5477,7 +6019,10 @@ class NavigationSessionApiSetup { } else { showTermsAndConditionsDialogChannel.setMessageHandler(nil) } - let areTermsAcceptedChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.areTermsAccepted\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let areTermsAcceptedChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.areTermsAccepted\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { areTermsAcceptedChannel.setMessageHandler { _, reply in do { @@ -5490,7 +6035,10 @@ class NavigationSessionApiSetup { } else { areTermsAcceptedChannel.setMessageHandler(nil) } - let resetTermsAcceptedChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.resetTermsAccepted\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let resetTermsAcceptedChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.resetTermsAccepted\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { resetTermsAcceptedChannel.setMessageHandler { _, reply in do { @@ -5503,7 +6051,10 @@ class NavigationSessionApiSetup { } else { resetTermsAcceptedChannel.setMessageHandler(nil) } - let getNavSDKVersionChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getNavSDKVersion\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let getNavSDKVersionChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getNavSDKVersion\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { getNavSDKVersionChannel.setMessageHandler { _, reply in do { @@ -5516,7 +6067,10 @@ class NavigationSessionApiSetup { } else { getNavSDKVersionChannel.setMessageHandler(nil) } - let isGuidanceRunningChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.isGuidanceRunning\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let isGuidanceRunningChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.isGuidanceRunning\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { isGuidanceRunningChannel.setMessageHandler { _, reply in do { @@ -5529,7 +6083,10 @@ class NavigationSessionApiSetup { } else { isGuidanceRunningChannel.setMessageHandler(nil) } - let startGuidanceChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.startGuidance\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let startGuidanceChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.startGuidance\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { startGuidanceChannel.setMessageHandler { _, reply in do { @@ -5542,7 +6099,10 @@ class NavigationSessionApiSetup { } else { startGuidanceChannel.setMessageHandler(nil) } - let stopGuidanceChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.stopGuidance\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let stopGuidanceChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.stopGuidance\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { stopGuidanceChannel.setMessageHandler { _, reply in do { @@ -5555,7 +6115,10 @@ class NavigationSessionApiSetup { } else { stopGuidanceChannel.setMessageHandler(nil) } - let setDestinationsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setDestinations\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let setDestinationsChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setDestinations\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { setDestinationsChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -5572,7 +6135,10 @@ class NavigationSessionApiSetup { } else { setDestinationsChannel.setMessageHandler(nil) } - let clearDestinationsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.clearDestinations\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let clearDestinationsChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.clearDestinations\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { clearDestinationsChannel.setMessageHandler { _, reply in do { @@ -5585,7 +6151,10 @@ class NavigationSessionApiSetup { } else { clearDestinationsChannel.setMessageHandler(nil) } - let continueToNextDestinationChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.continueToNextDestination\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let continueToNextDestinationChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.continueToNextDestination\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { continueToNextDestinationChannel.setMessageHandler { _, reply in api.continueToNextDestination { result in @@ -5600,7 +6169,10 @@ class NavigationSessionApiSetup { } else { continueToNextDestinationChannel.setMessageHandler(nil) } - let getCurrentTimeAndDistanceChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getCurrentTimeAndDistance\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let getCurrentTimeAndDistanceChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getCurrentTimeAndDistance\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { getCurrentTimeAndDistanceChannel.setMessageHandler { _, reply in do { @@ -5613,7 +6185,10 @@ class NavigationSessionApiSetup { } else { getCurrentTimeAndDistanceChannel.setMessageHandler(nil) } - let setAudioGuidanceChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setAudioGuidance\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let setAudioGuidanceChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setAudioGuidance\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { setAudioGuidanceChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -5628,7 +6203,10 @@ class NavigationSessionApiSetup { } else { setAudioGuidanceChannel.setMessageHandler(nil) } - let setSpeedAlertOptionsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setSpeedAlertOptions\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let setSpeedAlertOptionsChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setSpeedAlertOptions\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { setSpeedAlertOptionsChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -5643,7 +6221,10 @@ class NavigationSessionApiSetup { } else { setSpeedAlertOptionsChannel.setMessageHandler(nil) } - let getRouteSegmentsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getRouteSegments\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let getRouteSegmentsChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getRouteSegments\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { getRouteSegmentsChannel.setMessageHandler { _, reply in do { @@ -5656,7 +6237,10 @@ class NavigationSessionApiSetup { } else { getRouteSegmentsChannel.setMessageHandler(nil) } - let getTraveledRouteChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getTraveledRoute\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let getTraveledRouteChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getTraveledRoute\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { getTraveledRouteChannel.setMessageHandler { _, reply in do { @@ -5669,7 +6253,10 @@ class NavigationSessionApiSetup { } else { getTraveledRouteChannel.setMessageHandler(nil) } - let getCurrentRouteSegmentChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getCurrentRouteSegment\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let getCurrentRouteSegmentChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getCurrentRouteSegment\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { getCurrentRouteSegmentChannel.setMessageHandler { _, reply in do { @@ -5682,7 +6269,10 @@ class NavigationSessionApiSetup { } else { getCurrentRouteSegmentChannel.setMessageHandler(nil) } - let setUserLocationChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setUserLocation\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let setUserLocationChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setUserLocation\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { setUserLocationChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -5697,7 +6287,10 @@ class NavigationSessionApiSetup { } else { setUserLocationChannel.setMessageHandler(nil) } - let removeUserLocationChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.removeUserLocation\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let removeUserLocationChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.removeUserLocation\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { removeUserLocationChannel.setMessageHandler { _, reply in do { @@ -5710,7 +6303,10 @@ class NavigationSessionApiSetup { } else { removeUserLocationChannel.setMessageHandler(nil) } - let simulateLocationsAlongExistingRouteChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongExistingRoute\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let simulateLocationsAlongExistingRouteChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongExistingRoute\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { simulateLocationsAlongExistingRouteChannel.setMessageHandler { _, reply in do { @@ -5723,7 +6319,10 @@ class NavigationSessionApiSetup { } else { simulateLocationsAlongExistingRouteChannel.setMessageHandler(nil) } - let simulateLocationsAlongExistingRouteWithOptionsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongExistingRouteWithOptions\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let simulateLocationsAlongExistingRouteWithOptionsChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongExistingRouteWithOptions\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { simulateLocationsAlongExistingRouteWithOptionsChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -5738,7 +6337,10 @@ class NavigationSessionApiSetup { } else { simulateLocationsAlongExistingRouteWithOptionsChannel.setMessageHandler(nil) } - let simulateLocationsAlongNewRouteChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRoute\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let simulateLocationsAlongNewRouteChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRoute\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { simulateLocationsAlongNewRouteChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -5755,13 +6357,18 @@ class NavigationSessionApiSetup { } else { simulateLocationsAlongNewRouteChannel.setMessageHandler(nil) } - let simulateLocationsAlongNewRouteWithRoutingOptionsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRouteWithRoutingOptions\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let simulateLocationsAlongNewRouteWithRoutingOptionsChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRouteWithRoutingOptions\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { simulateLocationsAlongNewRouteWithRoutingOptionsChannel.setMessageHandler { message, reply in let args = message as! [Any?] let waypointsArg = args[0] as! [NavigationWaypointDto] let routingOptionsArg = args[1] as! RoutingOptionsDto - api.simulateLocationsAlongNewRouteWithRoutingOptions(waypoints: waypointsArg, routingOptions: routingOptionsArg) { result in + api.simulateLocationsAlongNewRouteWithRoutingOptions( + waypoints: waypointsArg, routingOptions: routingOptionsArg + ) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -5773,14 +6380,22 @@ class NavigationSessionApiSetup { } else { simulateLocationsAlongNewRouteWithRoutingOptionsChannel.setMessageHandler(nil) } - let simulateLocationsAlongNewRouteWithRoutingAndSimulationOptionsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRouteWithRoutingAndSimulationOptions\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let simulateLocationsAlongNewRouteWithRoutingAndSimulationOptionsChannel = + FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRouteWithRoutingAndSimulationOptions\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { - simulateLocationsAlongNewRouteWithRoutingAndSimulationOptionsChannel.setMessageHandler { message, reply in + simulateLocationsAlongNewRouteWithRoutingAndSimulationOptionsChannel.setMessageHandler { + message, reply in let args = message as! [Any?] let waypointsArg = args[0] as! [NavigationWaypointDto] let routingOptionsArg = args[1] as! RoutingOptionsDto let simulationOptionsArg = args[2] as! SimulationOptionsDto - api.simulateLocationsAlongNewRouteWithRoutingAndSimulationOptions(waypoints: waypointsArg, routingOptions: routingOptionsArg, simulationOptions: simulationOptionsArg) { result in + api.simulateLocationsAlongNewRouteWithRoutingAndSimulationOptions( + waypoints: waypointsArg, routingOptions: routingOptionsArg, + simulationOptions: simulationOptionsArg + ) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -5792,7 +6407,10 @@ class NavigationSessionApiSetup { } else { simulateLocationsAlongNewRouteWithRoutingAndSimulationOptionsChannel.setMessageHandler(nil) } - let pauseSimulationChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.pauseSimulation\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let pauseSimulationChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.pauseSimulation\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { pauseSimulationChannel.setMessageHandler { _, reply in do { @@ -5805,7 +6423,10 @@ class NavigationSessionApiSetup { } else { pauseSimulationChannel.setMessageHandler(nil) } - let resumeSimulationChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.resumeSimulation\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let resumeSimulationChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.resumeSimulation\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { resumeSimulationChannel.setMessageHandler { _, reply in do { @@ -5819,7 +6440,10 @@ class NavigationSessionApiSetup { resumeSimulationChannel.setMessageHandler(nil) } /// iOS-only method. - let allowBackgroundLocationUpdatesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.allowBackgroundLocationUpdates\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let allowBackgroundLocationUpdatesChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.allowBackgroundLocationUpdates\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { allowBackgroundLocationUpdatesChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -5834,7 +6458,10 @@ class NavigationSessionApiSetup { } else { allowBackgroundLocationUpdatesChannel.setMessageHandler(nil) } - let enableRoadSnappedLocationUpdatesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.enableRoadSnappedLocationUpdates\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let enableRoadSnappedLocationUpdatesChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.enableRoadSnappedLocationUpdates\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { enableRoadSnappedLocationUpdatesChannel.setMessageHandler { _, reply in do { @@ -5847,7 +6474,10 @@ class NavigationSessionApiSetup { } else { enableRoadSnappedLocationUpdatesChannel.setMessageHandler(nil) } - let disableRoadSnappedLocationUpdatesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.disableRoadSnappedLocationUpdates\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let disableRoadSnappedLocationUpdatesChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.disableRoadSnappedLocationUpdates\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { disableRoadSnappedLocationUpdatesChannel.setMessageHandler { _, reply in do { @@ -5860,14 +6490,18 @@ class NavigationSessionApiSetup { } else { disableRoadSnappedLocationUpdatesChannel.setMessageHandler(nil) } - let enableTurnByTurnNavigationEventsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.enableTurnByTurnNavigationEvents\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let enableTurnByTurnNavigationEventsChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.enableTurnByTurnNavigationEvents\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { enableTurnByTurnNavigationEventsChannel.setMessageHandler { message, reply in let args = message as! [Any?] let numNextStepsToPreviewArg: Int64? = nilOrValue(args[0]) let optionsArg: StepImageGenerationOptionsDto? = nilOrValue(args[1]) do { - try api.enableTurnByTurnNavigationEvents(numNextStepsToPreview: numNextStepsToPreviewArg, options: optionsArg) + try api.enableTurnByTurnNavigationEvents( + numNextStepsToPreview: numNextStepsToPreviewArg, options: optionsArg) reply(wrapResult(nil)) } catch { reply(wrapError(error)) @@ -5876,7 +6510,10 @@ class NavigationSessionApiSetup { } else { enableTurnByTurnNavigationEventsChannel.setMessageHandler(nil) } - let disableTurnByTurnNavigationEventsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.disableTurnByTurnNavigationEvents\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let disableTurnByTurnNavigationEventsChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.disableTurnByTurnNavigationEvents\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { disableTurnByTurnNavigationEventsChannel.setMessageHandler { _, reply in do { @@ -5889,14 +6526,19 @@ class NavigationSessionApiSetup { } else { disableTurnByTurnNavigationEventsChannel.setMessageHandler(nil) } - let registerRemainingTimeOrDistanceChangedListenerChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.registerRemainingTimeOrDistanceChangedListener\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let registerRemainingTimeOrDistanceChangedListenerChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.registerRemainingTimeOrDistanceChangedListener\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { registerRemainingTimeOrDistanceChangedListenerChannel.setMessageHandler { message, reply in let args = message as! [Any?] let remainingTimeThresholdSecondsArg = args[0] as! Int64 let remainingDistanceThresholdMetersArg = args[1] as! Int64 do { - try api.registerRemainingTimeOrDistanceChangedListener(remainingTimeThresholdSeconds: remainingTimeThresholdSecondsArg, remainingDistanceThresholdMeters: remainingDistanceThresholdMetersArg) + try api.registerRemainingTimeOrDistanceChangedListener( + remainingTimeThresholdSeconds: remainingTimeThresholdSecondsArg, + remainingDistanceThresholdMeters: remainingDistanceThresholdMetersArg) reply(wrapResult(nil)) } catch { reply(wrapError(error)) @@ -5909,22 +6551,34 @@ class NavigationSessionApiSetup { } /// Generated protocol from Pigeon that represents Flutter messages that can be called from Swift. protocol NavigationSessionEventApiProtocol { - func onSpeedingUpdated(msg msgArg: SpeedingUpdatedEventDto, completion: @escaping (Result) -> Void) - func onRoadSnappedLocationUpdated(location locationArg: LatLngDto, completion: @escaping (Result) -> Void) - func onRoadSnappedRawLocationUpdated(location locationArg: LatLngDto, completion: @escaping (Result) -> Void) - func onArrival(waypoint waypointArg: NavigationWaypointDto, completion: @escaping (Result) -> Void) + func onSpeedingUpdated( + msg msgArg: SpeedingUpdatedEventDto, completion: @escaping (Result) -> Void) + func onRoadSnappedLocationUpdated( + location locationArg: LatLngDto, completion: @escaping (Result) -> Void) + func onRoadSnappedRawLocationUpdated( + location locationArg: LatLngDto, completion: @escaping (Result) -> Void) + func onArrival( + waypoint waypointArg: NavigationWaypointDto, + completion: @escaping (Result) -> Void) func onRouteChanged(completion: @escaping (Result) -> Void) - func onRemainingTimeOrDistanceChanged(remainingTime remainingTimeArg: Double, remainingDistance remainingDistanceArg: Double, delaySeverity delaySeverityArg: TrafficDelaySeverityDto, completion: @escaping (Result) -> Void) + func onRemainingTimeOrDistanceChanged( + remainingTime remainingTimeArg: Double, remainingDistance remainingDistanceArg: Double, + delaySeverity delaySeverityArg: TrafficDelaySeverityDto, + completion: @escaping (Result) -> Void) /// Android-only event. func onTrafficUpdated(completion: @escaping (Result) -> Void) /// Android-only event. func onRerouting(completion: @escaping (Result) -> Void) /// Android-only event. - func onGpsAvailabilityUpdate(available availableArg: Bool, completion: @escaping (Result) -> Void) + func onGpsAvailabilityUpdate( + available availableArg: Bool, completion: @escaping (Result) -> Void) /// Android-only event. - func onGpsAvailabilityChange(event eventArg: GpsAvailabilityChangeEventDto, completion: @escaping (Result) -> Void) + func onGpsAvailabilityChange( + event eventArg: GpsAvailabilityChangeEventDto, + completion: @escaping (Result) -> Void) /// Turn-by-Turn navigation events. - func onNavInfo(navInfo navInfoArg: NavInfoDto, completion: @escaping (Result) -> Void) + func onNavInfo( + navInfo navInfoArg: NavInfoDto, completion: @escaping (Result) -> Void) /// Navigation session event. Called when a new navigation /// session starts with active guidance. func onNewNavigationSession(completion: @escaping (Result) -> Void) @@ -5939,9 +6593,13 @@ class NavigationSessionEventApi: NavigationSessionEventApiProtocol { var codec: MessagesPigeonCodec { return MessagesPigeonCodec.shared } - func onSpeedingUpdated(msg msgArg: SpeedingUpdatedEventDto, completion: @escaping (Result) -> Void) { - let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onSpeedingUpdated\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func onSpeedingUpdated( + msg msgArg: SpeedingUpdatedEventDto, completion: @escaping (Result) -> Void + ) { + let channelName: String = + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onSpeedingUpdated\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([msgArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5957,9 +6615,13 @@ class NavigationSessionEventApi: NavigationSessionEventApiProtocol { } } } - func onRoadSnappedLocationUpdated(location locationArg: LatLngDto, completion: @escaping (Result) -> Void) { - let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRoadSnappedLocationUpdated\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func onRoadSnappedLocationUpdated( + location locationArg: LatLngDto, completion: @escaping (Result) -> Void + ) { + let channelName: String = + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRoadSnappedLocationUpdated\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([locationArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5975,9 +6637,13 @@ class NavigationSessionEventApi: NavigationSessionEventApiProtocol { } } } - func onRoadSnappedRawLocationUpdated(location locationArg: LatLngDto, completion: @escaping (Result) -> Void) { - let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRoadSnappedRawLocationUpdated\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func onRoadSnappedRawLocationUpdated( + location locationArg: LatLngDto, completion: @escaping (Result) -> Void + ) { + let channelName: String = + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRoadSnappedRawLocationUpdated\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([locationArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -5993,9 +6659,14 @@ class NavigationSessionEventApi: NavigationSessionEventApiProtocol { } } } - func onArrival(waypoint waypointArg: NavigationWaypointDto, completion: @escaping (Result) -> Void) { - let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onArrival\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func onArrival( + waypoint waypointArg: NavigationWaypointDto, + completion: @escaping (Result) -> Void + ) { + let channelName: String = + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onArrival\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([waypointArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -6012,8 +6683,10 @@ class NavigationSessionEventApi: NavigationSessionEventApiProtocol { } } func onRouteChanged(completion: @escaping (Result) -> Void) { - let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRouteChanged\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + let channelName: String = + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRouteChanged\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage(nil) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -6029,10 +6702,17 @@ class NavigationSessionEventApi: NavigationSessionEventApiProtocol { } } } - func onRemainingTimeOrDistanceChanged(remainingTime remainingTimeArg: Double, remainingDistance remainingDistanceArg: Double, delaySeverity delaySeverityArg: TrafficDelaySeverityDto, completion: @escaping (Result) -> Void) { - let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRemainingTimeOrDistanceChanged\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) - channel.sendMessage([remainingTimeArg, remainingDistanceArg, delaySeverityArg] as [Any?]) { response in + func onRemainingTimeOrDistanceChanged( + remainingTime remainingTimeArg: Double, remainingDistance remainingDistanceArg: Double, + delaySeverity delaySeverityArg: TrafficDelaySeverityDto, + completion: @escaping (Result) -> Void + ) { + let channelName: String = + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRemainingTimeOrDistanceChanged\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) + channel.sendMessage([remainingTimeArg, remainingDistanceArg, delaySeverityArg] as [Any?]) { + response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) return @@ -6049,8 +6729,10 @@ class NavigationSessionEventApi: NavigationSessionEventApiProtocol { } /// Android-only event. func onTrafficUpdated(completion: @escaping (Result) -> Void) { - let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onTrafficUpdated\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + let channelName: String = + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onTrafficUpdated\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage(nil) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -6068,8 +6750,10 @@ class NavigationSessionEventApi: NavigationSessionEventApiProtocol { } /// Android-only event. func onRerouting(completion: @escaping (Result) -> Void) { - let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRerouting\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + let channelName: String = + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRerouting\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage(nil) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -6086,9 +6770,13 @@ class NavigationSessionEventApi: NavigationSessionEventApiProtocol { } } /// Android-only event. - func onGpsAvailabilityUpdate(available availableArg: Bool, completion: @escaping (Result) -> Void) { - let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onGpsAvailabilityUpdate\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func onGpsAvailabilityUpdate( + available availableArg: Bool, completion: @escaping (Result) -> Void + ) { + let channelName: String = + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onGpsAvailabilityUpdate\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([availableArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -6105,9 +6793,14 @@ class NavigationSessionEventApi: NavigationSessionEventApiProtocol { } } /// Android-only event. - func onGpsAvailabilityChange(event eventArg: GpsAvailabilityChangeEventDto, completion: @escaping (Result) -> Void) { - let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onGpsAvailabilityChange\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func onGpsAvailabilityChange( + event eventArg: GpsAvailabilityChangeEventDto, + completion: @escaping (Result) -> Void + ) { + let channelName: String = + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onGpsAvailabilityChange\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([eventArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -6124,9 +6817,13 @@ class NavigationSessionEventApi: NavigationSessionEventApiProtocol { } } /// Turn-by-Turn navigation events. - func onNavInfo(navInfo navInfoArg: NavInfoDto, completion: @escaping (Result) -> Void) { - let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onNavInfo\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func onNavInfo( + navInfo navInfoArg: NavInfoDto, completion: @escaping (Result) -> Void + ) { + let channelName: String = + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onNavInfo\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([navInfoArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -6145,8 +6842,10 @@ class NavigationSessionEventApi: NavigationSessionEventApiProtocol { /// Navigation session event. Called when a new navigation /// session starts with active guidance. func onNewNavigationSession(completion: @escaping (Result) -> Void) { - let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onNewNavigationSession\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + let channelName: String = + "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onNewNavigationSession\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage(nil) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -6178,13 +6877,25 @@ protocol AutoMapViewApi { func getCameraPosition() throws -> CameraPositionDto func getVisibleRegion() throws -> LatLngBoundsDto func followMyLocation(perspective: CameraPerspectiveDto, zoomLevel: Double?) throws - func animateCameraToCameraPosition(cameraPosition: CameraPositionDto, duration: Int64?, completion: @escaping (Result) -> Void) - func animateCameraToLatLng(point: LatLngDto, duration: Int64?, completion: @escaping (Result) -> Void) - func animateCameraToLatLngBounds(bounds: LatLngBoundsDto, padding: Double, duration: Int64?, completion: @escaping (Result) -> Void) - func animateCameraToLatLngZoom(point: LatLngDto, zoom: Double, duration: Int64?, completion: @escaping (Result) -> Void) - func animateCameraByScroll(scrollByDx: Double, scrollByDy: Double, duration: Int64?, completion: @escaping (Result) -> Void) - func animateCameraByZoom(zoomBy: Double, focusDx: Double?, focusDy: Double?, duration: Int64?, completion: @escaping (Result) -> Void) - func animateCameraToZoom(zoom: Double, duration: Int64?, completion: @escaping (Result) -> Void) + func animateCameraToCameraPosition( + cameraPosition: CameraPositionDto, duration: Int64?, + completion: @escaping (Result) -> Void) + func animateCameraToLatLng( + point: LatLngDto, duration: Int64?, completion: @escaping (Result) -> Void) + func animateCameraToLatLngBounds( + bounds: LatLngBoundsDto, padding: Double, duration: Int64?, + completion: @escaping (Result) -> Void) + func animateCameraToLatLngZoom( + point: LatLngDto, zoom: Double, duration: Int64?, + completion: @escaping (Result) -> Void) + func animateCameraByScroll( + scrollByDx: Double, scrollByDy: Double, duration: Int64?, + completion: @escaping (Result) -> Void) + func animateCameraByZoom( + zoomBy: Double, focusDx: Double?, focusDy: Double?, duration: Int64?, + completion: @escaping (Result) -> Void) + func animateCameraToZoom( + zoom: Double, duration: Int64?, completion: @escaping (Result) -> Void) func moveCameraToCameraPosition(cameraPosition: CameraPositionDto) throws func moveCameraToLatLng(point: LatLngDto) throws func moveCameraToLatLngBounds(bounds: LatLngBoundsDto, padding: Double) throws @@ -6272,12 +6983,17 @@ protocol AutoMapViewApi { class AutoMapViewApiSetup { static var codec: FlutterStandardMessageCodec { MessagesPigeonCodec.shared } /// Sets up an instance of `AutoMapViewApi` to handle messages through the `binaryMessenger`. - static func setUp(binaryMessenger: FlutterBinaryMessenger, api: AutoMapViewApi?, messageChannelSuffix: String = "") { + static func setUp( + binaryMessenger: FlutterBinaryMessenger, api: AutoMapViewApi?, messageChannelSuffix: String = "" + ) { let channelSuffix = messageChannelSuffix.count > 0 ? ".\(messageChannelSuffix)" : "" /// Sets the map options to be used for Android Auto and CarPlay views. /// Should be called before the Auto/CarPlay screen is created. /// This allows customization of mapId and basic map settings. - let setAutoMapOptionsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setAutoMapOptions\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let setAutoMapOptionsChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setAutoMapOptions\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { setAutoMapOptionsChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -6292,7 +7008,10 @@ class AutoMapViewApiSetup { } else { setAutoMapOptionsChannel.setMessageHandler(nil) } - let isMyLocationEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isMyLocationEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let isMyLocationEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isMyLocationEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { isMyLocationEnabledChannel.setMessageHandler { _, reply in do { @@ -6305,7 +7024,10 @@ class AutoMapViewApiSetup { } else { isMyLocationEnabledChannel.setMessageHandler(nil) } - let setMyLocationEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMyLocationEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let setMyLocationEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMyLocationEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { setMyLocationEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -6320,7 +7042,10 @@ class AutoMapViewApiSetup { } else { setMyLocationEnabledChannel.setMessageHandler(nil) } - let getMyLocationChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMyLocation\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let getMyLocationChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMyLocation\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { getMyLocationChannel.setMessageHandler { _, reply in do { @@ -6333,7 +7058,10 @@ class AutoMapViewApiSetup { } else { getMyLocationChannel.setMessageHandler(nil) } - let getMapTypeChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMapType\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let getMapTypeChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMapType\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { getMapTypeChannel.setMessageHandler { _, reply in do { @@ -6346,7 +7074,10 @@ class AutoMapViewApiSetup { } else { getMapTypeChannel.setMessageHandler(nil) } - let setMapTypeChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapType\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let setMapTypeChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapType\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { setMapTypeChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -6361,7 +7092,10 @@ class AutoMapViewApiSetup { } else { setMapTypeChannel.setMessageHandler(nil) } - let setMapStyleChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapStyle\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let setMapStyleChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapStyle\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { setMapStyleChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -6376,7 +7110,10 @@ class AutoMapViewApiSetup { } else { setMapStyleChannel.setMessageHandler(nil) } - let getCameraPositionChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getCameraPosition\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let getCameraPositionChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getCameraPosition\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { getCameraPositionChannel.setMessageHandler { _, reply in do { @@ -6389,7 +7126,10 @@ class AutoMapViewApiSetup { } else { getCameraPositionChannel.setMessageHandler(nil) } - let getVisibleRegionChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getVisibleRegion\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let getVisibleRegionChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getVisibleRegion\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { getVisibleRegionChannel.setMessageHandler { _, reply in do { @@ -6402,7 +7142,10 @@ class AutoMapViewApiSetup { } else { getVisibleRegionChannel.setMessageHandler(nil) } - let followMyLocationChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.followMyLocation\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let followMyLocationChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.followMyLocation\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { followMyLocationChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -6418,13 +7161,17 @@ class AutoMapViewApiSetup { } else { followMyLocationChannel.setMessageHandler(nil) } - let animateCameraToCameraPositionChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToCameraPosition\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let animateCameraToCameraPositionChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToCameraPosition\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { animateCameraToCameraPositionChannel.setMessageHandler { message, reply in let args = message as! [Any?] let cameraPositionArg = args[0] as! CameraPositionDto let durationArg: Int64? = nilOrValue(args[1]) - api.animateCameraToCameraPosition(cameraPosition: cameraPositionArg, duration: durationArg) { result in + api.animateCameraToCameraPosition(cameraPosition: cameraPositionArg, duration: durationArg) + { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -6436,7 +7183,10 @@ class AutoMapViewApiSetup { } else { animateCameraToCameraPositionChannel.setMessageHandler(nil) } - let animateCameraToLatLngChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLng\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let animateCameraToLatLngChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLng\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { animateCameraToLatLngChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -6454,14 +7204,19 @@ class AutoMapViewApiSetup { } else { animateCameraToLatLngChannel.setMessageHandler(nil) } - let animateCameraToLatLngBoundsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLngBounds\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let animateCameraToLatLngBoundsChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLngBounds\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { animateCameraToLatLngBoundsChannel.setMessageHandler { message, reply in let args = message as! [Any?] let boundsArg = args[0] as! LatLngBoundsDto let paddingArg = args[1] as! Double let durationArg: Int64? = nilOrValue(args[2]) - api.animateCameraToLatLngBounds(bounds: boundsArg, padding: paddingArg, duration: durationArg) { result in + api.animateCameraToLatLngBounds( + bounds: boundsArg, padding: paddingArg, duration: durationArg + ) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -6473,14 +7228,18 @@ class AutoMapViewApiSetup { } else { animateCameraToLatLngBoundsChannel.setMessageHandler(nil) } - let animateCameraToLatLngZoomChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLngZoom\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let animateCameraToLatLngZoomChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLngZoom\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { animateCameraToLatLngZoomChannel.setMessageHandler { message, reply in let args = message as! [Any?] let pointArg = args[0] as! LatLngDto let zoomArg = args[1] as! Double let durationArg: Int64? = nilOrValue(args[2]) - api.animateCameraToLatLngZoom(point: pointArg, zoom: zoomArg, duration: durationArg) { result in + api.animateCameraToLatLngZoom(point: pointArg, zoom: zoomArg, duration: durationArg) { + result in switch result { case .success(let res): reply(wrapResult(res)) @@ -6492,14 +7251,19 @@ class AutoMapViewApiSetup { } else { animateCameraToLatLngZoomChannel.setMessageHandler(nil) } - let animateCameraByScrollChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraByScroll\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let animateCameraByScrollChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraByScroll\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { animateCameraByScrollChannel.setMessageHandler { message, reply in let args = message as! [Any?] let scrollByDxArg = args[0] as! Double let scrollByDyArg = args[1] as! Double let durationArg: Int64? = nilOrValue(args[2]) - api.animateCameraByScroll(scrollByDx: scrollByDxArg, scrollByDy: scrollByDyArg, duration: durationArg) { result in + api.animateCameraByScroll( + scrollByDx: scrollByDxArg, scrollByDy: scrollByDyArg, duration: durationArg + ) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -6511,7 +7275,10 @@ class AutoMapViewApiSetup { } else { animateCameraByScrollChannel.setMessageHandler(nil) } - let animateCameraByZoomChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraByZoom\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let animateCameraByZoomChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraByZoom\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { animateCameraByZoomChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -6519,7 +7286,9 @@ class AutoMapViewApiSetup { let focusDxArg: Double? = nilOrValue(args[1]) let focusDyArg: Double? = nilOrValue(args[2]) let durationArg: Int64? = nilOrValue(args[3]) - api.animateCameraByZoom(zoomBy: zoomByArg, focusDx: focusDxArg, focusDy: focusDyArg, duration: durationArg) { result in + api.animateCameraByZoom( + zoomBy: zoomByArg, focusDx: focusDxArg, focusDy: focusDyArg, duration: durationArg + ) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -6531,7 +7300,10 @@ class AutoMapViewApiSetup { } else { animateCameraByZoomChannel.setMessageHandler(nil) } - let animateCameraToZoomChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToZoom\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let animateCameraToZoomChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToZoom\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { animateCameraToZoomChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -6549,7 +7321,10 @@ class AutoMapViewApiSetup { } else { animateCameraToZoomChannel.setMessageHandler(nil) } - let moveCameraToCameraPositionChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToCameraPosition\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let moveCameraToCameraPositionChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToCameraPosition\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { moveCameraToCameraPositionChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -6564,7 +7339,10 @@ class AutoMapViewApiSetup { } else { moveCameraToCameraPositionChannel.setMessageHandler(nil) } - let moveCameraToLatLngChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLng\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let moveCameraToLatLngChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLng\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { moveCameraToLatLngChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -6579,7 +7357,10 @@ class AutoMapViewApiSetup { } else { moveCameraToLatLngChannel.setMessageHandler(nil) } - let moveCameraToLatLngBoundsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLngBounds\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let moveCameraToLatLngBoundsChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLngBounds\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { moveCameraToLatLngBoundsChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -6595,7 +7376,10 @@ class AutoMapViewApiSetup { } else { moveCameraToLatLngBoundsChannel.setMessageHandler(nil) } - let moveCameraToLatLngZoomChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLngZoom\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let moveCameraToLatLngZoomChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLngZoom\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { moveCameraToLatLngZoomChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -6611,7 +7395,10 @@ class AutoMapViewApiSetup { } else { moveCameraToLatLngZoomChannel.setMessageHandler(nil) } - let moveCameraByScrollChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraByScroll\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let moveCameraByScrollChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraByScroll\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { moveCameraByScrollChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -6627,7 +7414,10 @@ class AutoMapViewApiSetup { } else { moveCameraByScrollChannel.setMessageHandler(nil) } - let moveCameraByZoomChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraByZoom\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let moveCameraByZoomChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraByZoom\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { moveCameraByZoomChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -6644,7 +7434,10 @@ class AutoMapViewApiSetup { } else { moveCameraByZoomChannel.setMessageHandler(nil) } - let moveCameraToZoomChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToZoom\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let moveCameraToZoomChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToZoom\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { moveCameraToZoomChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -6659,7 +7452,10 @@ class AutoMapViewApiSetup { } else { moveCameraToZoomChannel.setMessageHandler(nil) } - let getMinZoomPreferenceChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMinZoomPreference\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let getMinZoomPreferenceChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMinZoomPreference\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { getMinZoomPreferenceChannel.setMessageHandler { _, reply in do { @@ -6672,7 +7468,10 @@ class AutoMapViewApiSetup { } else { getMinZoomPreferenceChannel.setMessageHandler(nil) } - let getMaxZoomPreferenceChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMaxZoomPreference\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let getMaxZoomPreferenceChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMaxZoomPreference\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { getMaxZoomPreferenceChannel.setMessageHandler { _, reply in do { @@ -6685,7 +7484,10 @@ class AutoMapViewApiSetup { } else { getMaxZoomPreferenceChannel.setMessageHandler(nil) } - let resetMinMaxZoomPreferenceChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.resetMinMaxZoomPreference\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let resetMinMaxZoomPreferenceChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.resetMinMaxZoomPreference\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { resetMinMaxZoomPreferenceChannel.setMessageHandler { _, reply in do { @@ -6698,7 +7500,10 @@ class AutoMapViewApiSetup { } else { resetMinMaxZoomPreferenceChannel.setMessageHandler(nil) } - let setMinZoomPreferenceChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMinZoomPreference\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let setMinZoomPreferenceChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMinZoomPreference\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { setMinZoomPreferenceChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -6713,7 +7518,10 @@ class AutoMapViewApiSetup { } else { setMinZoomPreferenceChannel.setMessageHandler(nil) } - let setMaxZoomPreferenceChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMaxZoomPreference\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let setMaxZoomPreferenceChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMaxZoomPreference\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { setMaxZoomPreferenceChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -6728,7 +7536,10 @@ class AutoMapViewApiSetup { } else { setMaxZoomPreferenceChannel.setMessageHandler(nil) } - let setMyLocationButtonEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMyLocationButtonEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let setMyLocationButtonEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMyLocationButtonEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { setMyLocationButtonEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -6743,7 +7554,10 @@ class AutoMapViewApiSetup { } else { setMyLocationButtonEnabledChannel.setMessageHandler(nil) } - let setConsumeMyLocationButtonClickEventsEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setConsumeMyLocationButtonClickEventsEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let setConsumeMyLocationButtonClickEventsEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setConsumeMyLocationButtonClickEventsEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { setConsumeMyLocationButtonClickEventsEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -6758,7 +7572,10 @@ class AutoMapViewApiSetup { } else { setConsumeMyLocationButtonClickEventsEnabledChannel.setMessageHandler(nil) } - let setZoomGesturesEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setZoomGesturesEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let setZoomGesturesEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setZoomGesturesEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { setZoomGesturesEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -6773,7 +7590,10 @@ class AutoMapViewApiSetup { } else { setZoomGesturesEnabledChannel.setMessageHandler(nil) } - let setZoomControlsEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setZoomControlsEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let setZoomControlsEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setZoomControlsEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { setZoomControlsEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -6788,7 +7608,10 @@ class AutoMapViewApiSetup { } else { setZoomControlsEnabledChannel.setMessageHandler(nil) } - let setCompassEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setCompassEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let setCompassEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setCompassEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { setCompassEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -6803,7 +7626,10 @@ class AutoMapViewApiSetup { } else { setCompassEnabledChannel.setMessageHandler(nil) } - let setRotateGesturesEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setRotateGesturesEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let setRotateGesturesEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setRotateGesturesEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { setRotateGesturesEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -6818,7 +7644,10 @@ class AutoMapViewApiSetup { } else { setRotateGesturesEnabledChannel.setMessageHandler(nil) } - let setScrollGesturesEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setScrollGesturesEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let setScrollGesturesEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setScrollGesturesEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { setScrollGesturesEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -6833,7 +7662,10 @@ class AutoMapViewApiSetup { } else { setScrollGesturesEnabledChannel.setMessageHandler(nil) } - let setScrollGesturesDuringRotateOrZoomEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setScrollGesturesDuringRotateOrZoomEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let setScrollGesturesDuringRotateOrZoomEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setScrollGesturesDuringRotateOrZoomEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { setScrollGesturesDuringRotateOrZoomEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -6848,7 +7680,10 @@ class AutoMapViewApiSetup { } else { setScrollGesturesDuringRotateOrZoomEnabledChannel.setMessageHandler(nil) } - let setTiltGesturesEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTiltGesturesEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let setTiltGesturesEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTiltGesturesEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { setTiltGesturesEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -6863,7 +7698,10 @@ class AutoMapViewApiSetup { } else { setTiltGesturesEnabledChannel.setMessageHandler(nil) } - let setMapToolbarEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapToolbarEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let setMapToolbarEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapToolbarEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { setMapToolbarEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -6878,7 +7716,10 @@ class AutoMapViewApiSetup { } else { setMapToolbarEnabledChannel.setMessageHandler(nil) } - let setTrafficEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let setTrafficEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { setTrafficEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -6893,7 +7734,10 @@ class AutoMapViewApiSetup { } else { setTrafficEnabledChannel.setMessageHandler(nil) } - let setTrafficPromptsEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficPromptsEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let setTrafficPromptsEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficPromptsEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { setTrafficPromptsEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -6908,7 +7752,10 @@ class AutoMapViewApiSetup { } else { setTrafficPromptsEnabledChannel.setMessageHandler(nil) } - let setTrafficIncidentCardsEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficIncidentCardsEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let setTrafficIncidentCardsEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficIncidentCardsEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { setTrafficIncidentCardsEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -6923,7 +7770,10 @@ class AutoMapViewApiSetup { } else { setTrafficIncidentCardsEnabledChannel.setMessageHandler(nil) } - let setNavigationTripProgressBarEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setNavigationTripProgressBarEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let setNavigationTripProgressBarEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setNavigationTripProgressBarEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { setNavigationTripProgressBarEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -6938,7 +7788,10 @@ class AutoMapViewApiSetup { } else { setNavigationTripProgressBarEnabledChannel.setMessageHandler(nil) } - let setSpeedLimitIconEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setSpeedLimitIconEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let setSpeedLimitIconEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setSpeedLimitIconEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { setSpeedLimitIconEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -6953,7 +7806,10 @@ class AutoMapViewApiSetup { } else { setSpeedLimitIconEnabledChannel.setMessageHandler(nil) } - let setSpeedometerEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setSpeedometerEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let setSpeedometerEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setSpeedometerEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { setSpeedometerEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -6968,7 +7824,10 @@ class AutoMapViewApiSetup { } else { setSpeedometerEnabledChannel.setMessageHandler(nil) } - let setNavigationUIEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setNavigationUIEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let setNavigationUIEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setNavigationUIEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { setNavigationUIEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -6983,7 +7842,10 @@ class AutoMapViewApiSetup { } else { setNavigationUIEnabledChannel.setMessageHandler(nil) } - let isMyLocationButtonEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isMyLocationButtonEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let isMyLocationButtonEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isMyLocationButtonEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { isMyLocationButtonEnabledChannel.setMessageHandler { _, reply in do { @@ -6996,7 +7858,10 @@ class AutoMapViewApiSetup { } else { isMyLocationButtonEnabledChannel.setMessageHandler(nil) } - let isConsumeMyLocationButtonClickEventsEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isConsumeMyLocationButtonClickEventsEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let isConsumeMyLocationButtonClickEventsEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isConsumeMyLocationButtonClickEventsEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { isConsumeMyLocationButtonClickEventsEnabledChannel.setMessageHandler { _, reply in do { @@ -7009,7 +7874,10 @@ class AutoMapViewApiSetup { } else { isConsumeMyLocationButtonClickEventsEnabledChannel.setMessageHandler(nil) } - let isZoomGesturesEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isZoomGesturesEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let isZoomGesturesEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isZoomGesturesEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { isZoomGesturesEnabledChannel.setMessageHandler { _, reply in do { @@ -7022,7 +7890,10 @@ class AutoMapViewApiSetup { } else { isZoomGesturesEnabledChannel.setMessageHandler(nil) } - let isZoomControlsEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isZoomControlsEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let isZoomControlsEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isZoomControlsEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { isZoomControlsEnabledChannel.setMessageHandler { _, reply in do { @@ -7035,7 +7906,10 @@ class AutoMapViewApiSetup { } else { isZoomControlsEnabledChannel.setMessageHandler(nil) } - let isCompassEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isCompassEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let isCompassEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isCompassEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { isCompassEnabledChannel.setMessageHandler { _, reply in do { @@ -7048,7 +7922,10 @@ class AutoMapViewApiSetup { } else { isCompassEnabledChannel.setMessageHandler(nil) } - let isRotateGesturesEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isRotateGesturesEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let isRotateGesturesEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isRotateGesturesEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { isRotateGesturesEnabledChannel.setMessageHandler { _, reply in do { @@ -7061,7 +7938,10 @@ class AutoMapViewApiSetup { } else { isRotateGesturesEnabledChannel.setMessageHandler(nil) } - let isScrollGesturesEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isScrollGesturesEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let isScrollGesturesEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isScrollGesturesEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { isScrollGesturesEnabledChannel.setMessageHandler { _, reply in do { @@ -7074,7 +7954,10 @@ class AutoMapViewApiSetup { } else { isScrollGesturesEnabledChannel.setMessageHandler(nil) } - let isScrollGesturesEnabledDuringRotateOrZoomChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isScrollGesturesEnabledDuringRotateOrZoom\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let isScrollGesturesEnabledDuringRotateOrZoomChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isScrollGesturesEnabledDuringRotateOrZoom\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { isScrollGesturesEnabledDuringRotateOrZoomChannel.setMessageHandler { _, reply in do { @@ -7087,7 +7970,10 @@ class AutoMapViewApiSetup { } else { isScrollGesturesEnabledDuringRotateOrZoomChannel.setMessageHandler(nil) } - let isTiltGesturesEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTiltGesturesEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let isTiltGesturesEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTiltGesturesEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { isTiltGesturesEnabledChannel.setMessageHandler { _, reply in do { @@ -7100,7 +7986,10 @@ class AutoMapViewApiSetup { } else { isTiltGesturesEnabledChannel.setMessageHandler(nil) } - let isMapToolbarEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isMapToolbarEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let isMapToolbarEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isMapToolbarEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { isMapToolbarEnabledChannel.setMessageHandler { _, reply in do { @@ -7113,7 +8002,10 @@ class AutoMapViewApiSetup { } else { isMapToolbarEnabledChannel.setMessageHandler(nil) } - let isTrafficEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTrafficEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let isTrafficEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTrafficEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { isTrafficEnabledChannel.setMessageHandler { _, reply in do { @@ -7126,7 +8018,10 @@ class AutoMapViewApiSetup { } else { isTrafficEnabledChannel.setMessageHandler(nil) } - let isTrafficPromptsEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTrafficPromptsEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let isTrafficPromptsEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTrafficPromptsEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { isTrafficPromptsEnabledChannel.setMessageHandler { _, reply in do { @@ -7139,7 +8034,10 @@ class AutoMapViewApiSetup { } else { isTrafficPromptsEnabledChannel.setMessageHandler(nil) } - let isTrafficIncidentCardsEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTrafficIncidentCardsEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let isTrafficIncidentCardsEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTrafficIncidentCardsEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { isTrafficIncidentCardsEnabledChannel.setMessageHandler { _, reply in do { @@ -7152,7 +8050,10 @@ class AutoMapViewApiSetup { } else { isTrafficIncidentCardsEnabledChannel.setMessageHandler(nil) } - let isNavigationTripProgressBarEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isNavigationTripProgressBarEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let isNavigationTripProgressBarEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isNavigationTripProgressBarEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { isNavigationTripProgressBarEnabledChannel.setMessageHandler { _, reply in do { @@ -7165,7 +8066,10 @@ class AutoMapViewApiSetup { } else { isNavigationTripProgressBarEnabledChannel.setMessageHandler(nil) } - let isSpeedLimitIconEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isSpeedLimitIconEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let isSpeedLimitIconEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isSpeedLimitIconEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { isSpeedLimitIconEnabledChannel.setMessageHandler { _, reply in do { @@ -7178,7 +8082,10 @@ class AutoMapViewApiSetup { } else { isSpeedLimitIconEnabledChannel.setMessageHandler(nil) } - let isSpeedometerEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isSpeedometerEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let isSpeedometerEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isSpeedometerEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { isSpeedometerEnabledChannel.setMessageHandler { _, reply in do { @@ -7191,7 +8098,10 @@ class AutoMapViewApiSetup { } else { isSpeedometerEnabledChannel.setMessageHandler(nil) } - let isNavigationUIEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isNavigationUIEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let isNavigationUIEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isNavigationUIEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { isNavigationUIEnabledChannel.setMessageHandler { _, reply in do { @@ -7204,7 +8114,10 @@ class AutoMapViewApiSetup { } else { isNavigationUIEnabledChannel.setMessageHandler(nil) } - let isIndoorEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isIndoorEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let isIndoorEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isIndoorEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { isIndoorEnabledChannel.setMessageHandler { _, reply in do { @@ -7217,7 +8130,10 @@ class AutoMapViewApiSetup { } else { isIndoorEnabledChannel.setMessageHandler(nil) } - let setIndoorEnabledChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setIndoorEnabled\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let setIndoorEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setIndoorEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { setIndoorEnabledChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -7232,7 +8148,10 @@ class AutoMapViewApiSetup { } else { setIndoorEnabledChannel.setMessageHandler(nil) } - let getFocusedIndoorBuildingChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getFocusedIndoorBuilding\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let getFocusedIndoorBuildingChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getFocusedIndoorBuilding\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { getFocusedIndoorBuildingChannel.setMessageHandler { _, reply in do { @@ -7245,7 +8164,10 @@ class AutoMapViewApiSetup { } else { getFocusedIndoorBuildingChannel.setMessageHandler(nil) } - let activateIndoorLevelChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.activateIndoorLevel\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let activateIndoorLevelChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.activateIndoorLevel\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { activateIndoorLevelChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -7260,7 +8182,10 @@ class AutoMapViewApiSetup { } else { activateIndoorLevelChannel.setMessageHandler(nil) } - let showRouteOverviewChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.showRouteOverview\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let showRouteOverviewChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.showRouteOverview\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { showRouteOverviewChannel.setMessageHandler { _, reply in do { @@ -7273,7 +8198,10 @@ class AutoMapViewApiSetup { } else { showRouteOverviewChannel.setMessageHandler(nil) } - let getMarkersChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMarkers\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let getMarkersChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMarkers\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { getMarkersChannel.setMessageHandler { _, reply in do { @@ -7286,7 +8214,10 @@ class AutoMapViewApiSetup { } else { getMarkersChannel.setMessageHandler(nil) } - let addMarkersChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addMarkers\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let addMarkersChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addMarkers\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { addMarkersChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -7301,7 +8232,10 @@ class AutoMapViewApiSetup { } else { addMarkersChannel.setMessageHandler(nil) } - let updateMarkersChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updateMarkers\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let updateMarkersChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updateMarkers\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { updateMarkersChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -7316,7 +8250,10 @@ class AutoMapViewApiSetup { } else { updateMarkersChannel.setMessageHandler(nil) } - let removeMarkersChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removeMarkers\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let removeMarkersChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removeMarkers\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { removeMarkersChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -7331,7 +8268,10 @@ class AutoMapViewApiSetup { } else { removeMarkersChannel.setMessageHandler(nil) } - let clearMarkersChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearMarkers\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let clearMarkersChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearMarkers\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { clearMarkersChannel.setMessageHandler { _, reply in do { @@ -7344,7 +8284,9 @@ class AutoMapViewApiSetup { } else { clearMarkersChannel.setMessageHandler(nil) } - let clearChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clear\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let clearChannel = FlutterBasicMessageChannel( + name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clear\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { clearChannel.setMessageHandler { _, reply in do { @@ -7357,7 +8299,10 @@ class AutoMapViewApiSetup { } else { clearChannel.setMessageHandler(nil) } - let getPolygonsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getPolygons\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let getPolygonsChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getPolygons\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { getPolygonsChannel.setMessageHandler { _, reply in do { @@ -7370,7 +8315,10 @@ class AutoMapViewApiSetup { } else { getPolygonsChannel.setMessageHandler(nil) } - let addPolygonsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addPolygons\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let addPolygonsChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addPolygons\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { addPolygonsChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -7385,7 +8333,10 @@ class AutoMapViewApiSetup { } else { addPolygonsChannel.setMessageHandler(nil) } - let updatePolygonsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updatePolygons\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let updatePolygonsChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updatePolygons\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { updatePolygonsChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -7400,7 +8351,10 @@ class AutoMapViewApiSetup { } else { updatePolygonsChannel.setMessageHandler(nil) } - let removePolygonsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removePolygons\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let removePolygonsChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removePolygons\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { removePolygonsChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -7415,7 +8369,10 @@ class AutoMapViewApiSetup { } else { removePolygonsChannel.setMessageHandler(nil) } - let clearPolygonsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearPolygons\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let clearPolygonsChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearPolygons\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { clearPolygonsChannel.setMessageHandler { _, reply in do { @@ -7428,7 +8385,10 @@ class AutoMapViewApiSetup { } else { clearPolygonsChannel.setMessageHandler(nil) } - let getPolylinesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getPolylines\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let getPolylinesChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getPolylines\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { getPolylinesChannel.setMessageHandler { _, reply in do { @@ -7441,7 +8401,10 @@ class AutoMapViewApiSetup { } else { getPolylinesChannel.setMessageHandler(nil) } - let addPolylinesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addPolylines\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let addPolylinesChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addPolylines\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { addPolylinesChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -7456,7 +8419,10 @@ class AutoMapViewApiSetup { } else { addPolylinesChannel.setMessageHandler(nil) } - let updatePolylinesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updatePolylines\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let updatePolylinesChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updatePolylines\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { updatePolylinesChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -7471,7 +8437,10 @@ class AutoMapViewApiSetup { } else { updatePolylinesChannel.setMessageHandler(nil) } - let removePolylinesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removePolylines\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let removePolylinesChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removePolylines\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { removePolylinesChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -7486,7 +8455,10 @@ class AutoMapViewApiSetup { } else { removePolylinesChannel.setMessageHandler(nil) } - let clearPolylinesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearPolylines\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let clearPolylinesChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearPolylines\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { clearPolylinesChannel.setMessageHandler { _, reply in do { @@ -7499,7 +8471,10 @@ class AutoMapViewApiSetup { } else { clearPolylinesChannel.setMessageHandler(nil) } - let getCirclesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getCircles\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let getCirclesChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getCircles\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { getCirclesChannel.setMessageHandler { _, reply in do { @@ -7512,7 +8487,10 @@ class AutoMapViewApiSetup { } else { getCirclesChannel.setMessageHandler(nil) } - let addCirclesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addCircles\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let addCirclesChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addCircles\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { addCirclesChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -7527,7 +8505,10 @@ class AutoMapViewApiSetup { } else { addCirclesChannel.setMessageHandler(nil) } - let updateCirclesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updateCircles\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let updateCirclesChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updateCircles\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { updateCirclesChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -7542,7 +8523,10 @@ class AutoMapViewApiSetup { } else { updateCirclesChannel.setMessageHandler(nil) } - let removeCirclesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removeCircles\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let removeCirclesChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removeCircles\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { removeCirclesChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -7557,7 +8541,10 @@ class AutoMapViewApiSetup { } else { removeCirclesChannel.setMessageHandler(nil) } - let clearCirclesChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearCircles\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let clearCirclesChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearCircles\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { clearCirclesChannel.setMessageHandler { _, reply in do { @@ -7570,7 +8557,10 @@ class AutoMapViewApiSetup { } else { clearCirclesChannel.setMessageHandler(nil) } - let enableOnCameraChangedEventsChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.enableOnCameraChangedEvents\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let enableOnCameraChangedEventsChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.enableOnCameraChangedEvents\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { enableOnCameraChangedEventsChannel.setMessageHandler { _, reply in do { @@ -7583,7 +8573,10 @@ class AutoMapViewApiSetup { } else { enableOnCameraChangedEventsChannel.setMessageHandler(nil) } - let isAutoScreenAvailableChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isAutoScreenAvailable\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let isAutoScreenAvailableChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isAutoScreenAvailable\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { isAutoScreenAvailableChannel.setMessageHandler { _, reply in do { @@ -7596,7 +8589,10 @@ class AutoMapViewApiSetup { } else { isAutoScreenAvailableChannel.setMessageHandler(nil) } - let setPaddingChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setPadding\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let setPaddingChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setPadding\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { setPaddingChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -7611,7 +8607,10 @@ class AutoMapViewApiSetup { } else { setPaddingChannel.setMessageHandler(nil) } - let getPaddingChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getPadding\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let getPaddingChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getPadding\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { getPaddingChannel.setMessageHandler { _, reply in do { @@ -7624,7 +8623,10 @@ class AutoMapViewApiSetup { } else { getPaddingChannel.setMessageHandler(nil) } - let getMapColorSchemeChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMapColorScheme\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let getMapColorSchemeChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMapColorScheme\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { getMapColorSchemeChannel.setMessageHandler { _, reply in do { @@ -7637,7 +8639,10 @@ class AutoMapViewApiSetup { } else { getMapColorSchemeChannel.setMessageHandler(nil) } - let setMapColorSchemeChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapColorScheme\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let setMapColorSchemeChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapColorScheme\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { setMapColorSchemeChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -7652,7 +8657,10 @@ class AutoMapViewApiSetup { } else { setMapColorSchemeChannel.setMessageHandler(nil) } - let getForceNightModeChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getForceNightMode\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let getForceNightModeChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getForceNightMode\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { getForceNightModeChannel.setMessageHandler { _, reply in do { @@ -7665,7 +8673,10 @@ class AutoMapViewApiSetup { } else { getForceNightModeChannel.setMessageHandler(nil) } - let setForceNightModeChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setForceNightMode\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let setForceNightModeChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setForceNightMode\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { setForceNightModeChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -7680,7 +8691,10 @@ class AutoMapViewApiSetup { } else { setForceNightModeChannel.setMessageHandler(nil) } - let sendCustomNavigationAutoEventChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.sendCustomNavigationAutoEvent\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let sendCustomNavigationAutoEventChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.sendCustomNavigationAutoEvent\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { sendCustomNavigationAutoEventChannel.setMessageHandler { message, reply in let args = message as! [Any?] @@ -7700,12 +8714,22 @@ class AutoMapViewApiSetup { } /// Generated protocol from Pigeon that represents Flutter messages that can be called from Swift. protocol AutoViewEventApiProtocol { - func onCustomNavigationAutoEvent(event eventArg: String, data dataArg: Any, completion: @escaping (Result) -> Void) - func onAutoScreenAvailabilityChanged(isAvailable isAvailableArg: Bool, completion: @escaping (Result) -> Void) - func onPromptVisibilityChanged(promptVisible promptVisibleArg: Bool, completion: @escaping (Result) -> Void) - func onNavigationUIEnabledChanged(navigationUIEnabled navigationUIEnabledArg: Bool, completion: @escaping (Result) -> Void) - func onIndoorFocusedBuildingChanged(building buildingArg: IndoorBuildingDto?, completion: @escaping (Result) -> Void) - func onIndoorActiveLevelChanged(building buildingArg: IndoorBuildingDto?, completion: @escaping (Result) -> Void) + func onCustomNavigationAutoEvent( + event eventArg: String, data dataArg: Any, + completion: @escaping (Result) -> Void) + func onAutoScreenAvailabilityChanged( + isAvailable isAvailableArg: Bool, completion: @escaping (Result) -> Void) + func onPromptVisibilityChanged( + promptVisible promptVisibleArg: Bool, completion: @escaping (Result) -> Void) + func onNavigationUIEnabledChanged( + navigationUIEnabled navigationUIEnabledArg: Bool, + completion: @escaping (Result) -> Void) + func onIndoorFocusedBuildingChanged( + building buildingArg: IndoorBuildingDto?, + completion: @escaping (Result) -> Void) + func onIndoorActiveLevelChanged( + building buildingArg: IndoorBuildingDto?, + completion: @escaping (Result) -> Void) } class AutoViewEventApi: AutoViewEventApiProtocol { private let binaryMessenger: FlutterBinaryMessenger @@ -7717,9 +8741,14 @@ class AutoViewEventApi: AutoViewEventApiProtocol { var codec: MessagesPigeonCodec { return MessagesPigeonCodec.shared } - func onCustomNavigationAutoEvent(event eventArg: String, data dataArg: Any, completion: @escaping (Result) -> Void) { - let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onCustomNavigationAutoEvent\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func onCustomNavigationAutoEvent( + event eventArg: String, data dataArg: Any, + completion: @escaping (Result) -> Void + ) { + let channelName: String = + "dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onCustomNavigationAutoEvent\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([eventArg, dataArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -7735,9 +8764,13 @@ class AutoViewEventApi: AutoViewEventApiProtocol { } } } - func onAutoScreenAvailabilityChanged(isAvailable isAvailableArg: Bool, completion: @escaping (Result) -> Void) { - let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onAutoScreenAvailabilityChanged\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func onAutoScreenAvailabilityChanged( + isAvailable isAvailableArg: Bool, completion: @escaping (Result) -> Void + ) { + let channelName: String = + "dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onAutoScreenAvailabilityChanged\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([isAvailableArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -7753,9 +8786,13 @@ class AutoViewEventApi: AutoViewEventApiProtocol { } } } - func onPromptVisibilityChanged(promptVisible promptVisibleArg: Bool, completion: @escaping (Result) -> Void) { - let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onPromptVisibilityChanged\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func onPromptVisibilityChanged( + promptVisible promptVisibleArg: Bool, completion: @escaping (Result) -> Void + ) { + let channelName: String = + "dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onPromptVisibilityChanged\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([promptVisibleArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -7771,9 +8808,14 @@ class AutoViewEventApi: AutoViewEventApiProtocol { } } } - func onNavigationUIEnabledChanged(navigationUIEnabled navigationUIEnabledArg: Bool, completion: @escaping (Result) -> Void) { - let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onNavigationUIEnabledChanged\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func onNavigationUIEnabledChanged( + navigationUIEnabled navigationUIEnabledArg: Bool, + completion: @escaping (Result) -> Void + ) { + let channelName: String = + "dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onNavigationUIEnabledChanged\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([navigationUIEnabledArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -7789,9 +8831,14 @@ class AutoViewEventApi: AutoViewEventApiProtocol { } } } - func onIndoorFocusedBuildingChanged(building buildingArg: IndoorBuildingDto?, completion: @escaping (Result) -> Void) { - let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onIndoorFocusedBuildingChanged\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func onIndoorFocusedBuildingChanged( + building buildingArg: IndoorBuildingDto?, + completion: @escaping (Result) -> Void + ) { + let channelName: String = + "dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onIndoorFocusedBuildingChanged\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([buildingArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -7807,9 +8854,14 @@ class AutoViewEventApi: AutoViewEventApiProtocol { } } } - func onIndoorActiveLevelChanged(building buildingArg: IndoorBuildingDto?, completion: @escaping (Result) -> Void) { - let channelName: String = "dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onIndoorActiveLevelChanged\(messageChannelSuffix)" - let channel = FlutterBasicMessageChannel(name: channelName, binaryMessenger: binaryMessenger, codec: codec) + func onIndoorActiveLevelChanged( + building buildingArg: IndoorBuildingDto?, + completion: @escaping (Result) -> Void + ) { + let channelName: String = + "dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onIndoorActiveLevelChanged\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) channel.sendMessage([buildingArg] as [Any?]) { response in guard let listResponse = response as? [Any?] else { completion(.failure(createConnectionError(withChannelName: channelName))) @@ -7835,9 +8887,15 @@ protocol NavigationInspector { class NavigationInspectorSetup { static var codec: FlutterStandardMessageCodec { MessagesPigeonCodec.shared } /// Sets up an instance of `NavigationInspector` to handle messages through the `binaryMessenger`. - static func setUp(binaryMessenger: FlutterBinaryMessenger, api: NavigationInspector?, messageChannelSuffix: String = "") { + static func setUp( + binaryMessenger: FlutterBinaryMessenger, api: NavigationInspector?, + messageChannelSuffix: String = "" + ) { let channelSuffix = messageChannelSuffix.count > 0 ? ".\(messageChannelSuffix)" : "" - let isViewAttachedToSessionChannel = FlutterBasicMessageChannel(name: "dev.flutter.pigeon.google_navigation_flutter.NavigationInspector.isViewAttachedToSession\(channelSuffix)", binaryMessenger: binaryMessenger, codec: codec) + let isViewAttachedToSessionChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.NavigationInspector.isViewAttachedToSession\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) if let api = api { isViewAttachedToSessionChannel.setMessageHandler { message, reply in let args = message as! [Any?]