resetAnnotationSharer method

void resetAnnotationSharer(
  1. String sharerIdentity
)

Implementation

void resetAnnotationSharer(String sharerIdentity) {
  _strokesBySharer.remove(sharerIdentity);
  _requestedAnnotationSnapshotKeys
      .removeWhere((k) => k.startsWith('$sharerIdentity:'));
  if (_activeAnnotationSharerIdentity == sharerIdentity) {
    _activeAnnotationSharerIdentity = null;
    _isAnnotationActive = false;
  }
  notifyListeners();
}