copyWith method
GetMainWebApp
copyWith({
- int? chatId,
- int? botUserId,
- String? startParameter,
- WebAppOpenParameters? parameters,
Returns a copy with the given fields replaced. For a nullable
field pass a function, e.g. field: () => null to clear it.
Implementation
GetMainWebApp copyWith({
int? chatId,
int? botUserId,
String? startParameter,
WebAppOpenParameters? parameters,
}) => GetMainWebApp(
chatId: chatId ?? this.chatId,
botUserId: botUserId ?? this.botUserId,
startParameter: startParameter ?? this.startParameter,
parameters: parameters ?? this.parameters,
);