copyWith method

ChatEvents copyWith({
  1. List<ChatEvent>? events,
  2. dynamic extra,
  3. int? clientId,
})

Implementation

ChatEvents copyWith({
  List<ChatEvent>? events,
  dynamic extra,
  int? clientId,
}) => ChatEvents(
  events: events ?? this.events,
  extra: extra ?? this.extra,
  clientId: clientId ?? this.clientId,
);