copyWith method

MessageSponsor copyWith({
  1. MessageSponsorType? type,
  2. ChatPhotoInfo? photo,
  3. String? info,
})

Implementation

MessageSponsor copyWith({
  MessageSponsorType? type,
  ChatPhotoInfo? photo,
  String? info,
}) =>
    MessageSponsor(
      type: type ?? this.type,
      photo: photo ?? this.photo,
      info: info ?? this.info,
    );