mirror of
https://github.com/nini22P/iris.git
synced 2026-06-05 11:01:17 +08:00
18 lines
522 B
Dart
18 lines
522 B
Dart
import 'package:freezed_annotation/freezed_annotation.dart';
|
|
import 'package:flutter/foundation.dart';
|
|
import 'package:iris/models/file.dart';
|
|
|
|
part 'play_queue_state.freezed.dart';
|
|
part 'play_queue_state.g.dart';
|
|
|
|
@freezed
|
|
abstract class PlayQueueState with _$PlayQueueState {
|
|
const factory PlayQueueState({
|
|
@Default([]) List<PlayQueueItem> playQueue,
|
|
@Default(0) int currentIndex,
|
|
}) = _PlayQueueState;
|
|
|
|
factory PlayQueueState.fromJson(Map<String, dynamic> json) =>
|
|
_$PlayQueueStateFromJson(json);
|
|
}
|