copyWith method
StorageState
copyWith(
{ - bool? isInitialized,
- bool? isLoading,
- String? error,
- int? secureDataCount,
- int? prefsDataCount,
- int? imageCacheCount,
- int? imageCacheSize,
- DateTime? lastClearedAt,
- StorageType? lastClearedType,
- DateTime? lastImportedAt,
- DateTime? lastExportedAt,
})
Implementation
StorageState copyWith({
bool? isInitialized,
bool? isLoading,
String? error,
int? secureDataCount,
int? prefsDataCount,
int? imageCacheCount,
int? imageCacheSize,
DateTime? lastClearedAt,
StorageType? lastClearedType,
DateTime? lastImportedAt,
DateTime? lastExportedAt,
}) {
return StorageState(
isInitialized: isInitialized ?? this.isInitialized,
isLoading: isLoading ?? this.isLoading,
error: error,
secureDataCount: secureDataCount ?? this.secureDataCount,
prefsDataCount: prefsDataCount ?? this.prefsDataCount,
imageCacheCount: imageCacheCount ?? this.imageCacheCount,
imageCacheSize: imageCacheSize ?? this.imageCacheSize,
lastClearedAt: lastClearedAt ?? this.lastClearedAt,
lastClearedType: lastClearedType ?? this.lastClearedType,
lastImportedAt: lastImportedAt ?? this.lastImportedAt,
lastExportedAt: lastExportedAt ?? this.lastExportedAt,
);
}