copyWith method
BotVerification
copyWith({
- int? botUserId,
- int? iconCustomEmojiId,
- FormattedText? customDescription,
Returns a copy with the given fields replaced. For a nullable
field pass a function, e.g. field: () => null to clear it.
Implementation
BotVerification copyWith({
int? botUserId,
int? iconCustomEmojiId,
FormattedText? customDescription,
}) => BotVerification(
botUserId: botUserId ?? this.botUserId,
iconCustomEmojiId: iconCustomEmojiId ?? this.iconCustomEmojiId,
customDescription: customDescription ?? this.customDescription,
);