refactor: DCM - const border radius, constructor & switch expressions (#19515)

* enable border radius, switch exp, const constructor

* regenerate provider

* more formatting

---------

Co-authored-by: shenlong-tanwen <139912620+shalong-tanwen@users.noreply.github.com>
This commit is contained in:
shenlong
2025-06-25 13:06:24 +05:30
committed by GitHub
parent 05064f87f0
commit 5b0575b956
130 changed files with 338 additions and 264 deletions
+1 -1
View File
@@ -42,6 +42,6 @@ class ImageLoader {
}
// If we get here, the image failed to load from the cache stream
throw ImageLoadingException('Could not load image from stream');
throw const ImageLoadingException('Could not load image from stream');
}
}
@@ -1,5 +1,5 @@
/// An exception for the [ImageLoader] and the Immich image providers
class ImageLoadingException implements Exception {
final String message;
ImageLoadingException(this.message);
const ImageLoadingException(this.message);
}
@@ -23,7 +23,7 @@ class ImmichRemoteImageProvider
/// The image cache manager
final CacheManager? cacheManager;
ImmichRemoteImageProvider({
const ImmichRemoteImageProvider({
required this.assetId,
this.cacheManager,
});
@@ -24,7 +24,7 @@ class ImmichRemoteThumbnailProvider
/// The image cache manager
final CacheManager? cacheManager;
ImmichRemoteThumbnailProvider({
const ImmichRemoteThumbnailProvider({
required this.assetId,
this.height,
this.width,