getMarkerIcon function

Future<BitmapDescriptor> getMarkerIcon(
  1. String imagePath
)

Implementation

Future<BitmapDescriptor> getMarkerIcon(String imagePath) async {
  final icon = await BitmapDescriptor.fromAssetImage(
    ImageConfiguration.empty,
    imagePath,
  );
  return icon;
}