Files
PiliPlus/lib/plugin/pl_player/models/play_status.dart
dom cdc1720358 Reformat
Signed-off-by: dom <githubaccount56556@proton.me>
2026-04-03 09:35:25 +08:00

21 lines
477 B
Dart

import 'package:get/get.dart';
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 isPlaying => value.isPlaying;
bool get isPaused => value.isPaused;
bool get isCompleted => value.isCompleted;
}