mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-20 00:56:31 +08:00
24 lines
460 B
Dart
24 lines
460 B
Dart
import 'package:get/get.dart';
|
|
|
|
enum PlayerStatus { completed, playing, paused, none }
|
|
|
|
class PlPlayerStatus {
|
|
Rx<PlayerStatus> status = Rx(PlayerStatus.none);
|
|
|
|
bool get none {
|
|
return status.value == PlayerStatus.none;
|
|
}
|
|
|
|
bool get playing {
|
|
return status.value == PlayerStatus.playing;
|
|
}
|
|
|
|
bool get paused {
|
|
return status.value == PlayerStatus.paused;
|
|
}
|
|
|
|
bool get completed {
|
|
return status.value == PlayerStatus.completed;
|
|
}
|
|
}
|