copyWith method

SetBusinessAccountProfilePhoto copyWith({
  1. String? businessConnectionId,
  2. InputChatPhoto? photo()?,
  3. bool? isPublic,
})

Returns a copy with the given fields replaced. For a nullable field pass a function, e.g. field: () => null to clear it.

Implementation

SetBusinessAccountProfilePhoto copyWith({
  String? businessConnectionId,
  InputChatPhoto? Function()? photo,
  bool? isPublic,
}) => SetBusinessAccountProfilePhoto(
  businessConnectionId: businessConnectionId ?? this.businessConnectionId,
  photo: photo != null ? photo() : this.photo,
  isPublic: isPublic ?? this.isPublic,
);