deselectedPin method

  1. @protected
Future<bool> deselectedPin()

Implementation

@protected
Future<bool> deselectedPin() async {
  if (map == null) return false;
  if (_cardView == null) return false;
  tileAdsLayerManager?.onTappedPin(null, false);
  final id = _cardView?.mapboxAd?.id;
  final zoom = await map?.zoom;
  if (id != null && zoom != null) {
    pme?.sendDeselect(id: id, zoom: zoom);
  }
  if (_cardView != null) callback?.onAdDidDeselect(_cardView!);
  _cardView = null;
  return true;
}