copyWith method
UpdateNewInlineQuery
copyWith({
- int? id,
- int? senderUserId,
- Location? userLocation()?,
- ChatType? chatType()?,
- String? query,
- String? offset,
- dynamic extra,
- 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,
);