mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
20 lines
381 B
Dart
20 lines
381 B
Dart
import 'package:get/get.dart';
|
|
|
|
enum PlayerStatus { completed, playing, 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;
|
|
}
|
|
}
|