mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-20 03:06:59 +08:00
committed by
GitHub
parent
08944241bb
commit
ccb61415f5
@@ -2,18 +2,18 @@ import 'package:get/get.dart';
|
||||
|
||||
enum PlayerStatus { completed, playing, paused }
|
||||
|
||||
class PlPlayerStatus {
|
||||
Rx<PlayerStatus> status = Rx(PlayerStatus.paused);
|
||||
typedef PlPlayerStatus = Rx<PlayerStatus>;
|
||||
|
||||
extension PlPlayerStatusExt on PlPlayerStatus {
|
||||
bool get playing {
|
||||
return status.value == PlayerStatus.playing;
|
||||
return value == PlayerStatus.playing;
|
||||
}
|
||||
|
||||
bool get paused {
|
||||
return status.value == PlayerStatus.paused;
|
||||
return value == PlayerStatus.paused;
|
||||
}
|
||||
|
||||
bool get completed {
|
||||
return status.value == PlayerStatus.completed;
|
||||
return value == PlayerStatus.completed;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user