copyWith method

  1. @override
UpdateNewChosenInlineResult copyWith({
  1. int? senderUserId,
  2. Location? userLocation()?,
  3. String? query,
  4. String? resultId,
  5. String? inlineMessageId,
  6. dynamic extra,
  7. int? clientId,
})
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
UpdateNewChosenInlineResult copyWith({
  int? senderUserId,
  Location? Function()? userLocation,
  String? query,
  String? resultId,
  String? inlineMessageId,
  dynamic extra,
  int? clientId,
}) =>
    UpdateNewChosenInlineResult(
      senderUserId: senderUserId ?? this.senderUserId,
      userLocation: userLocation != null ? userLocation() : this.userLocation,
      query: query ?? this.query,
      resultId: resultId ?? this.resultId,
      inlineMessageId: inlineMessageId ?? this.inlineMessageId,
      extra: extra ?? this.extra,
      clientId: clientId ?? this.clientId,
    );