copyWith method

AgoraUser copyWith({
  1. int? uid,
  2. bool? remote,
  3. bool? muted,
  4. bool? videoDisabled,
  5. ClientRole? clientRole,
})

Implementation

AgoraUser copyWith({
  int? uid,
  bool? remote,
  bool? muted,
  bool? videoDisabled,
  ClientRole? clientRole,
}) {
  return AgoraUser(
    uid: uid ?? this.uid,
    remote: remote ?? this.remote,
    muted: muted ?? this.muted,
    videoDisabled: videoDisabled ?? this.videoDisabled,
    clientRole: clientRole ?? this.clientRole,
  );
}