copyWithUpdatedClient method

DocumentAwareness copyWithUpdatedClient(
  1. ClientAwareness client
)

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);
}