copyWith method
Returns a copy with the given fields replaced. For a nullable
field pass a function, e.g. field: () => null to clear it.
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,
);