mirror of
https://github.com/immich-app/immich
synced 2026-08-15 13:03:57 +00:00
* chore(mobile): example freezed implementation on some models * Don't commit Freezed generated code * Freezed easy pass * Formatting fix * Generate Flutter debugging info
15 lines
521 B
Dart
15 lines
521 B
Dart
import 'package:flutter/foundation.dart';
|
|
import 'package:freezed_annotation/freezed_annotation.dart';
|
|
import 'package:immich_mobile/constants/enums.dart';
|
|
|
|
part 'slideshow_config.freezed.dart';
|
|
|
|
@freezed
|
|
abstract class SlideshowConfig with _$SlideshowConfig {
|
|
const factory SlideshowConfig({
|
|
@Default(true) bool repeat,
|
|
@Default(5) int duration,
|
|
@Default(SlideshowLook.blurredBackground) SlideshowLook look,
|
|
@Default(SlideshowDirection.forward) SlideshowDirection direction,
|
|
}) = _SlideshowConfig;
|
|
}
|