copyWith method

  1. @override
InternalLinkTypeWebApp copyWith({
  1. String? botUsername,
  2. String? webAppShortName,
  3. String? startParameter,
  4. WebAppOpenMode? mode,
  5. dynamic extra,
  6. 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,
);