bringAnnotationToFront method

void bringAnnotationToFront(
  1. String annotationId
)

Implementation

void bringAnnotationToFront(String annotationId) {
  final annotation = _annotations[annotationId];
  if (annotation != null) {
    final maxZIndex = _annotations.values
        .map((a) => a.zIndex.value)
        .fold(0, math.max);
    annotation.setZIndex(maxZIndex + 1);
  }
}