setAnnotationActive method

void setAnnotationActive(
  1. bool active, {
  2. String? sharerIdentity,
})

Implementation

void setAnnotationActive(bool active, {String? sharerIdentity}) {
  _isAnnotationActive = active;
  if (active && sharerIdentity != null) {
    _activeAnnotationSharerIdentity = sharerIdentity;
  } else if (!active) {
    _activeAnnotationSharerIdentity = null;
  }
  notifyListeners();
}