copyWith method

Call copyWith({
  1. int? id,
  2. int? userId,
  3. bool? isOutgoing,
  4. bool? isVideo,
  5. CallState? state,
})

Implementation

Call copyWith({
  int? id,
  int? userId,
  bool? isOutgoing,
  bool? isVideo,
  CallState? state,
}) => Call(
  id: id ?? this.id,
  userId: userId ?? this.userId,
  isOutgoing: isOutgoing ?? this.isOutgoing,
  isVideo: isVideo ?? this.isVideo,
  state: state ?? this.state,
);