copyWith method

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

Implementation

TdlibParameters copyWith({
  bool? useTestDc,
  String? databaseDirectory,
  String? filesDirectory,
  bool? useFileDatabase,
  bool? useChatInfoDatabase,
  bool? useMessageDatabase,
  bool? useSecretChats,
  int? apiId,
  String? apiHash,
  String? systemLanguageCode,
  String? deviceModel,
  String? systemVersion,
  String? applicationVersion,
  bool? enableStorageOptimizer,
  bool? ignoreFileNames,
}) => TdlibParameters(
  useTestDc: useTestDc ?? this.useTestDc,
  databaseDirectory: databaseDirectory ?? this.databaseDirectory,
  filesDirectory: filesDirectory ?? this.filesDirectory,
  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,
);