audio sschedule shutdown

Signed-off-by: dom <githubaccount56556@proton.me>
This commit is contained in:
dom
2026-02-08 15:19:23 +08:00
parent 8234b7ac92
commit 0c65605ac0
23 changed files with 466 additions and 593 deletions

View File

@@ -1,19 +1,20 @@
import 'package:get/get.dart';
enum PlayerStatus { completed, playing, paused }
enum PlayerStatus {
completed,
playing,
paused
;
bool get isCompleted => this == PlayerStatus.completed;
bool get isPlaying => this == PlayerStatus.playing;
bool get isPaused => this == PlayerStatus.paused;
}
typedef PlPlayerStatus = Rx<PlayerStatus>;
extension PlPlayerStatusExt on PlPlayerStatus {
bool get playing {
return value == PlayerStatus.playing;
}
bool get paused {
return value == PlayerStatus.paused;
}
bool get completed {
return value == PlayerStatus.completed;
}
bool get isPlaying => value.isPlaying;
bool get isPaused => value.isPaused;
bool get isCompleted => value.isCompleted;
}