copyWith method

CreateNewSupergroupChat copyWith({
  1. String? title,
  2. bool? isForum,
  3. bool? isChannel,
  4. String? description,
  5. ChatLocation? location,
  6. int? messageAutoDeleteTime,
  7. bool? forImport,
})

Implementation

CreateNewSupergroupChat copyWith({
  String? title,
  bool? isForum,
  bool? isChannel,
  String? description,
  ChatLocation? location,
  int? messageAutoDeleteTime,
  bool? forImport,
}) =>
    CreateNewSupergroupChat(
      title: title ?? this.title,
      isForum: isForum ?? this.isForum,
      isChannel: isChannel ?? this.isChannel,
      description: description ?? this.description,
      location: location ?? this.location,
      messageAutoDeleteTime:
          messageAutoDeleteTime ?? this.messageAutoDeleteTime,
      forImport: forImport ?? this.forImport,
    );