@@ -75,6 +75,15 @@ class CameraPosition {
7575
7676 /// Zoom level near the center of the screen.
7777 final double zoom;
78+
79+ @override
80+ String toString () =>
81+ 'CameraPosition('
82+ 'bearing: $bearing , '
83+ 'target: $target , '
84+ 'tilt: $tilt , '
85+ 'zoom: $zoom '
86+ ')' ;
7887}
7988
8089/// Parameter given to parameter given to the [GoogleNavigationViewController.followMyLocation]
@@ -97,12 +106,19 @@ class CustomNavigationAutoEvent {
97106 final Object ? data;
98107
99108 CustomNavigationAutoEvent ({required this .event, required this .data});
109+
110+ @override
111+ String toString () => 'CustomNavigationAutoEvent(event: $event , data: $data )' ;
100112}
101113
102114class AutoScreenAvailabilityChangedEvent {
103115 final bool isAvailable;
104116
105117 AutoScreenAvailabilityChangedEvent ({required this .isAvailable});
118+
119+ @override
120+ String toString () =>
121+ 'AutoScreenAvailabilityChangedEvent(isAvailable: $isAvailable )' ;
106122}
107123
108124/// Represents the click position in a Google Maps view.
@@ -114,6 +130,9 @@ class MapClickEvent {
114130
115131 /// The location where the click happened.
116132 final LatLng target;
133+
134+ @override
135+ String toString () => 'MapClickEvent(target: $target )' ;
117136}
118137
119138/// Represents navigation UI changed event in a view.
@@ -124,6 +143,12 @@ class NavigationUIEnabledChangedEvent {
124143
125144 /// Value representing whether UI changed or not.
126145 final bool navigationUIEnabled;
146+
147+ @override
148+ String toString () =>
149+ 'NavigationUIEnabledChangedEvent('
150+ 'navigationUIEnabled: $navigationUIEnabled '
151+ ')' ;
127152}
128153
129154/// Represents the long click position in a Google Maps view.
@@ -135,6 +160,9 @@ class MapLongClickEvent {
135160
136161 /// The location where the long click happened.
137162 final LatLng target;
163+
164+ @override
165+ String toString () => 'MapLongClickEvent(target: $target )' ;
138166}
139167
140168/// Traffic data statuses
@@ -165,6 +193,14 @@ class RouteSegmentTrafficDataRoadStretchRenderingData {
165193
166194 /// Offset in meters.
167195 final int offsetMeters;
196+
197+ @override
198+ String toString () =>
199+ 'RouteSegmentTrafficDataRoadStretchRenderingData('
200+ 'style: $style , '
201+ 'lengthMeters: $lengthMeters , '
202+ 'offsetMeters: $offsetMeters '
203+ ')' ;
168204}
169205
170206/// Route segment traffic data road strech rendering style.
@@ -195,6 +231,13 @@ class RouteSegmentTrafficData {
195231 /// Rendering data list.
196232 final List <RouteSegmentTrafficDataRoadStretchRenderingData ?>
197233 roadStretchRenderingDataList;
234+
235+ @override
236+ String toString () =>
237+ 'RouteSegmentTrafficData('
238+ 'status: $status , '
239+ 'roadStretchRenderingDataList: $roadStretchRenderingDataList '
240+ ')' ;
198241}
199242
200243/// Navigation route segment
@@ -220,6 +263,15 @@ class RouteSegment {
220263
221264 /// Destination waypoint.
222265 final NavigationWaypoint ? destinationWaypoint;
266+
267+ @override
268+ String toString () =>
269+ 'RouteSegment('
270+ 'trafficData: $trafficData , '
271+ 'destinationLatLng: $destinationLatLng , '
272+ 'latLngs: $latLngs , '
273+ 'destinationWaypoint: $destinationWaypoint '
274+ ')' ;
223275}
224276
225277/// Internal camera update type.
@@ -396,6 +448,21 @@ class CameraUpdate {
396448
397449 /// The screen position co-ordinates for the zoom-by camera.
398450 Offset ? focus;
451+
452+ @override
453+ String toString () =>
454+ 'CameraUpdate('
455+ 'type: $type , '
456+ 'cameraPosition: $cameraPosition , '
457+ 'latLng: $latLng , '
458+ 'bounds: $bounds , '
459+ 'padding: $padding , '
460+ 'zoom: $zoom , '
461+ 'zoomByAmount: $zoomByAmount , '
462+ 'scrollByDx: $scrollByDx , '
463+ 'scrollByDy: $scrollByDy , '
464+ 'focus: $focus '
465+ ')' ;
399466}
400467
401468/// My location clicked event.
@@ -444,4 +511,8 @@ class CameraChangedEvent {
444511
445512 /// Current position of the camera.
446513 final CameraPosition position;
514+
515+ @override
516+ String toString () =>
517+ 'CameraChangedEvent(eventType: $eventType , position: $position )' ;
447518}
0 commit comments