copyWith method

StorageState copyWith({
  1. bool? isInitialized,
  2. bool? isLoading,
  3. String? error,
  4. int? secureDataCount,
  5. int? prefsDataCount,
  6. int? imageCacheCount,
  7. int? imageCacheSize,
  8. DateTime? lastClearedAt,
  9. StorageType? lastClearedType,
  10. DateTime? lastImportedAt,
  11. 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,
  );
}