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
CreateCall copyWith({
int? userId,
CallProtocol? protocol,
bool? isVideo,
}) =>
CreateCall(
userId: userId ?? this.userId,
protocol: protocol ?? this.protocol,
isVideo: isVideo ?? this.isVideo,
);