copyWith method
InternalLinkTypeWebApp
copyWith({
- String? botUsername,
- String? webAppShortName,
- String? startParameter,
- WebAppOpenMode? mode,
- 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
InternalLinkTypeWebApp copyWith({
String? botUsername,
String? webAppShortName,
String? startParameter,
WebAppOpenMode? mode,
dynamic extra,
int? clientId,
}) => InternalLinkTypeWebApp(
botUsername: botUsername ?? this.botUsername,
webAppShortName: webAppShortName ?? this.webAppShortName,
startParameter: startParameter ?? this.startParameter,
mode: mode ?? this.mode,
extra: extra ?? this.extra,
clientId: clientId ?? this.clientId,
);