copyWith method
Returns a copy with the given fields replaced. For a nullable
field pass a function, e.g. field: () => null to clear it.
Implementation
CreateNewSupergroupChat copyWith({
String? title,
bool? isForum,
bool? isChannel,
String? description,
ChatLocation? Function()? location,
int? messageAutoDeleteTime,
bool? forImport,
}) =>
CreateNewSupergroupChat(
title: title ?? this.title,
isForum: isForum ?? this.isForum,
isChannel: isChannel ?? this.isChannel,
description: description ?? this.description,
location: location != null ? location() : this.location,
messageAutoDeleteTime:
messageAutoDeleteTime ?? this.messageAutoDeleteTime,
forImport: forImport ?? this.forImport,
);