copyWith method

GetWebAppLinkUrl copyWith({
  1. int? chatId,
  2. int? botUserId,
  3. String? webAppShortName,
  4. String? startParameter,
  5. ThemeParameters? theme()?,
  6. String? applicationName,
  7. bool? allowWriteAccess,
})

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,
    );