copyWithRemovedClient method

DocumentAwareness copyWithRemovedClient(
  1. String clientId
)

Creates a new DocumentAwareness with the removed client awareness.

Implementation

DocumentAwareness copyWithRemovedClient(String clientId) {
  final newStates = Map<String, ClientAwareness>.from(states)
    ..remove(clientId);
  return copyWith(states: newStates);
}