2025-06-16 20:37:45 +05:30
|
|
|
import 'package:immich_mobile/domain/models/store.model.dart';
|
|
|
|
|
|
|
|
|
|
enum Setting<T> {
|
|
|
|
|
tilesPerRow<int>(StoreKey.tilesPerRow, 4),
|
|
|
|
|
groupAssetsBy<int>(StoreKey.groupAssetsBy, 0),
|
2025-07-02 23:54:37 +05:30
|
|
|
showStorageIndicator<bool>(StoreKey.storageIndicator, true),
|
|
|
|
|
loadOriginal<bool>(StoreKey.loadOriginal, false),
|
2025-07-09 20:04:25 +05:30
|
|
|
loadOriginalVideo<bool>(StoreKey.loadOriginalVideo, false),
|
2025-10-15 17:24:47 +02:00
|
|
|
autoPlayVideo<bool>(StoreKey.autoPlayVideo, true),
|
2025-07-02 23:54:37 +05:30
|
|
|
preferRemoteImage<bool>(StoreKey.preferRemoteImage, false),
|
2025-07-04 21:00:34 +05:30
|
|
|
advancedTroubleshooting<bool>(StoreKey.advancedTroubleshooting, false),
|
2025-07-29 00:34:03 +05:30
|
|
|
enableBackup<bool>(StoreKey.enableBackup, false);
|
2025-06-16 20:37:45 +05:30
|
|
|
|
|
|
|
|
const Setting(this.storeKey, this.defaultValue);
|
|
|
|
|
|
|
|
|
|
final StoreKey<T> storeKey;
|
|
|
|
|
final T defaultValue;
|
|
|
|
|
}
|