copyWith method

SetTdlibParameters copyWith({
  1. bool? useTestDc,
  2. String? databaseDirectory,
  3. String? filesDirectory,
  4. String? databaseEncryptionKey,
  5. bool? useFileDatabase,
  6. bool? useChatInfoDatabase,
  7. bool? useMessageDatabase,
  8. bool? useSecretChats,
  9. int? apiId,
  10. String? apiHash,
  11. String? systemLanguageCode,
  12. String? deviceModel,
  13. String? systemVersion,
  14. String? applicationVersion,
  15. bool? enableStorageOptimizer,
  16. bool? ignoreFileNames,
})

Implementation

SetTdlibParameters copyWith({
  bool? useTestDc,
  String? databaseDirectory,
  String? filesDirectory,
  String? databaseEncryptionKey,
  bool? useFileDatabase,
  bool? useChatInfoDatabase,
  bool? useMessageDatabase,
  bool? useSecretChats,
  int? apiId,
  String? apiHash,
  String? systemLanguageCode,
  String? deviceModel,
  String? systemVersion,
  String? applicationVersion,
  bool? enableStorageOptimizer,
  bool? ignoreFileNames,
}) =>
    SetTdlibParameters(
      useTestDc: useTestDc ?? this.useTestDc,
      databaseDirectory: databaseDirectory ?? this.databaseDirectory,
      filesDirectory: filesDirectory ?? this.filesDirectory,
      databaseEncryptionKey:
          databaseEncryptionKey ?? this.databaseEncryptionKey,
      useFileDatabase: useFileDatabase ?? this.useFileDatabase,
      useChatInfoDatabase: useChatInfoDatabase ?? this.useChatInfoDatabase,
      useMessageDatabase: useMessageDatabase ?? this.useMessageDatabase,
      useSecretChats: useSecretChats ?? this.useSecretChats,
      apiId: apiId ?? this.apiId,
      apiHash: apiHash ?? this.apiHash,
      systemLanguageCode: systemLanguageCode ?? this.systemLanguageCode,
      deviceModel: deviceModel ?? this.deviceModel,
      systemVersion: systemVersion ?? this.systemVersion,
      applicationVersion: applicationVersion ?? this.applicationVersion,
      enableStorageOptimizer:
          enableStorageOptimizer ?? this.enableStorageOptimizer,
      ignoreFileNames: ignoreFileNames ?? this.ignoreFileNames,
    );