copyWithUpdatedClient method
Creates a new DocumentAwareness with the updated client awareness.
Implementation
DocumentAwareness copyWithUpdatedClient(ClientAwareness client) {
final newStates = Map<String, ClientAwareness>.from(states);
newStates[client.clientId] = client;
return copyWith(states: newStates);
}