copyWith method

  1. @override
InlineQueryResultVenue copyWith({
  1. String? id,
  2. Venue? venue,
  3. Thumbnail? thumbnail()?,
})
override

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

Implementation

@override
InlineQueryResultVenue copyWith({
  String? id,
  Venue? venue,
  Thumbnail? Function()? thumbnail,
}) => InlineQueryResultVenue(
  id: id ?? this.id,
  venue: venue ?? this.venue,
  thumbnail: thumbnail != null ? thumbnail() : this.thumbnail,
);