MethodChannelStreetViewFlutter class

Inheritance

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

animateTo(int viewId, {StreetViewPanoramaCamera? camera, int? duration}) Future<void>
Animate camera to a given positionStreetViewPanoramaCamera over a specified duration.
override
buildView(Map<String, dynamic> creationParams, Set<Factory<OneSequenceGestureRecognizer>>? gestureRecognizers, PlatformViewCreatedCallback onPlatformViewCreated) Widget
This method builds the appropriate platform view where the street view can be rendered. The viewId is passed as a parameter from the framework on the onPlatformViewCreated callback.
override
channel(int viewId) MethodChannel?
Accesses the MethodChannel associated to the passed viewId.
dispose({int? viewId}) → void
Dispose of the native resources.
override
getLocation(int viewId) Future<StreetViewPanoramaLocation>
Return position of current panorama and information of near panoramas
override
getPanoramaCamera(int viewId) Future<StreetViewPanoramaCamera>
Return camera setting, bearing, tilt and zoom.
override
init(int viewId) Future
Initializes the platform interface with id.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onCameraChange({required int viewId}) Stream<CameraChangeEvent>
The Camera was changed.
override
onPanoramaChange({required int viewId}) Stream<PanoramaChangeEvent>
The Panorama was changed.
override
onPanoramaClick({required int viewId}) Stream<PanoramaClickEvent>
The Panorama was clicked.
override
onPanoramaLongClick({required int viewId}) Stream<PanoramaLongClickEvent>
The Panorama was long clicked.
override
orientationToPoint(int viewId, {StreetViewPanoramaOrientation? orientation}) Future<Point<num>>
Returns a screen location that corresponds to an orientationStreetViewPanoramaOrientation.
override
pointToOrientation(int viewId, {Point<num>? point}) Future<StreetViewPanoramaOrientation>
Return the orientationStreetViewPanoramaOrientation that corresponds to a screen location.
override
setPanningGesturesEnabled(int viewId, {bool? enable}) Future<void>
Sets street view to allow using panning gesture or not.
override
setPosition(int viewId, {LatLng? position, String? panoId, int? radius, StreetViewSource? source}) Future<void>
Sets panorama by given location
override
setStreetNamesEnabled(int viewId, {bool? enable}) Future<void>
Sets street view to display street name or not.
override
setUserNavigationEnabled(int viewId, {bool? enable}) Future<void>
Sets street view to allow moving to another panorama.
override
setZoomGesturesEnabled(int viewId, {bool? enable}) Future<void>
Sets street view to allow using zoom gestures or not.
override
toString() String
A string representation of this object.
inherited
updateStreetViewOptions(Map<String, dynamic> optionsUpdate, {required int viewId}) Future
Updates configuration options of the street view user interface.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited