copyWith method
Returns a copy with the given fields replaced. For a nullable
field pass a function, e.g. field: () => null to clear it.
Implementation
GetWebAppLinkUrl copyWith({
int? chatId,
int? botUserId,
String? webAppShortName,
String? startParameter,
ThemeParameters? Function()? theme,
String? applicationName,
bool? allowWriteAccess,
}) =>
GetWebAppLinkUrl(
chatId: chatId ?? this.chatId,
botUserId: botUserId ?? this.botUserId,
webAppShortName: webAppShortName ?? this.webAppShortName,
startParameter: startParameter ?? this.startParameter,
theme: theme != null ? theme() : this.theme,
applicationName: applicationName ?? this.applicationName,
allowWriteAccess: allowWriteAccess ?? this.allowWriteAccess,
);