immich/mobile/lib/models/cast/cast_manager_state.dart
Adam Gastineau 235daff561
chore(mobile): more complicated Freezed pass (#30452)
* chore(mobile): example freezed implementation on some models
2026-08-10 14:12:45 -07:00

18 lines
491 B
Dart

import 'package:freezed_annotation/freezed_annotation.dart';
part 'cast_manager_state.freezed.dart';
enum CastDestinationType { googleCast }
enum CastState { idle, playing, paused, buffering }
@freezed
abstract class CastManagerState with _$CastManagerState {
const factory CastManagerState({
required bool isCasting,
required String receiverName,
required CastState castState,
required Duration currentTime,
required Duration duration,
}) = _CastManagerState;
}