VietmapAutomotiveFlutterPlatform class abstract

Inheritance
  • Object
  • PlatformInterface
  • VietmapAutomotiveFlutterPlatform
Implementers

Constructors

VietmapAutomotiveFlutterPlatform.new()
Constructs a VietmapAutomotiveFlutterPlatform.

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

addMarkers({required List<Marker> markers}) Future<List<Marker>>
Adds list of markers to the Android Auto and Apple CarPlay map surface. Returns a list of markers that have been added to the map.
addOnMapClickListener(dynamic listener(double, double)) → void
Adds a listener to the map click event.
addOnMapReadyListener(dynamic listener()) → void
Adds a listener to the map ready event.
addOnMapRenderedListener(dynamic listener()) → void
Adds a listener to the map rendered event.
addOnStyleLoadedListener(dynamic listener()) → void
Adds a listener to the style loaded event.
addPolygons({required List<Polygon> polygons}) Future<List<Polygon>>
Adds list of polygons to the Android Auto and Apple CarPlay map surface. Returns a list of polygons that have been added to the map.
addPolylines({required List<Polyline> polylines}) Future<List<Polyline>>
Adds list of polylines to the Android Auto and Apple CarPlay map surface. Returns a list of polylines that have been added to the map.
getPlatformVersion() Future<String?>
init({void onMapReady()?, void onMapClick(double latitude, double longitude)?, void onMapRendered()?, void onStyleLoaded()?}) → void
Initializes the plugin and sets up the necessary event listeners. This method should be called when the plugin object is constructed.
initAutomotive({required String styleUrl, required String vietMapAPIKey}) Future<bool?>
Initializes the automotive map with the given style URL and VietMap API key. This method should be called before using any map-interacting methods.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeAllMarkers() Future<bool?>
Removes all markers from the Android Auto and Apple CarPlay map surface. Returns a boolean value indicating whether the markers have been removed successfully.
removeAllPolygons() Future<bool?>
Removes all polygons from the Android Auto and Apple CarPlay map surface. Returns a boolean value indicating whether the polygons have been removed successfully.
removeAllPolylines() Future<bool?>
Removes all polylines from the Android Auto and Apple CarPlay map surface. Returns a boolean value indicating whether the polylines have been removed successfully.
removeMarker({required List<int> markerIds}) Future<bool?>
Removes markers by selected markerIds from the Android Auto and Apple CarPlay map surface. Returns a boolean value indicating whether the markers have been removed successfully.
removeOnMapClickListener(dynamic listener(double, double)) → void
Removes a listener from the map click event.
removeOnMapReadyListener(dynamic listener()) → void
Removes a listener from the map ready event.
removeOnMapRenderedListener(dynamic listener()) → void
Removes a listener from the map rendered event.
removeOnStyleLoadedListener(dynamic listener()) → void
Removes a listener from the style loaded event.
removePolygon({required List<int> polygonIds}) Future<bool?>
Removes polygons by selected polygonIds from the Android Auto and Apple CarPlay map surface. Returns a boolean value indicating whether the polygons have been removed successfully.
removePolyline({required List<int> polylineIds}) Future<bool?>
Removes polylines by selected polylineIds from the Android Auto and Apple CarPlay map surface. Returns a boolean value indicating whether the polylines have been removed successfully.
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

instance VietmapAutomotiveFlutterPlatform
The default instance of VietmapAutomotiveFlutterPlatform to use.
getter/setter pair