mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-22 19:51:11 +08:00
audio sschedule shutdown
Signed-off-by: dom <githubaccount56556@proton.me>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user