copyWith method
InternalLinkTypeBotStartInGroup
copyWith({
- String? botUsername,
- String? startParameter,
- ChatAdministratorRights? administratorRights()?,
- 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
InternalLinkTypeBotStartInGroup copyWith({
String? botUsername,
String? startParameter,
ChatAdministratorRights? Function()? administratorRights,
dynamic extra,
int? clientId,
}) =>
InternalLinkTypeBotStartInGroup(
botUsername: botUsername ?? this.botUsername,
startParameter: startParameter ?? this.startParameter,
administratorRights: administratorRights != null
? administratorRights()
: this.administratorRights,
extra: extra ?? this.extra,
clientId: clientId ?? this.clientId,
);