copyWith method

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