copyWith method

InlineQueryResultLocation copyWith({
  1. String? id,
  2. double? latitude,
  3. double? longitude,
  4. String? title,
  5. int? horizontalAccuracy,
  6. int? livePeriod,
  7. int? heading,
  8. int? proximityAlertRadius,
  9. InlineKeyboardMarkup? replyMarkup,
  10. InputMessageContent? inputMessageContent,
  11. String? thumbnailUrl,
  12. int? thumbnailWidth,
  13. int? thumbnailHeight,
})

Copy method

Implementation

InlineQueryResultLocation copyWith({
  String? id,
  double? latitude,
  double? longitude,
  String? title,
  int? horizontalAccuracy,
  int? livePeriod,
  int? heading,
  int? proximityAlertRadius,
  InlineKeyboardMarkup? replyMarkup,
  InputMessageContent? inputMessageContent,
  String? thumbnailUrl,
  int? thumbnailWidth,
  int? thumbnailHeight,
}) {
  return InlineQueryResultLocation(
    id: id ?? this.id,
    latitude: latitude ?? this.latitude,
    longitude: longitude ?? this.longitude,
    title: title ?? this.title,
    horizontalAccuracy: horizontalAccuracy ?? this.horizontalAccuracy,
    livePeriod: livePeriod ?? this.livePeriod,
    heading: heading ?? this.heading,
    proximityAlertRadius: proximityAlertRadius ?? this.proximityAlertRadius,
    replyMarkup: replyMarkup ?? this.replyMarkup,
    inputMessageContent: inputMessageContent ?? this.inputMessageContent,
    thumbnailUrl: thumbnailUrl ?? this.thumbnailUrl,
    thumbnailWidth: thumbnailWidth ?? this.thumbnailWidth,
    thumbnailHeight: thumbnailHeight ?? this.thumbnailHeight,
  );
}