copyWith method

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

Implementation

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