updateConfigs method

Future<void> updateConfigs({
  1. String? imgPath,
  2. InfoWindow? infoWindow,
})

Implementation

Future<void> updateConfigs({
  String? imgPath,
  InfoWindow? infoWindow,
}) async {
  if (imgPath != null) {
    icon.complete(BitmapDescriptor.fromAssetImage(
      ImageConfiguration(
        devicePixelRatio: window.devicePixelRatio,
      ),
      imgPath,
    ));
  }
  this.infoWindow = infoWindow ?? this.infoWindow;
}