copyWith method
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,
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,
);