Files
zh-chat-flutter/lib/services/auth_service.dart
2022-10-19 10:54:45 +08:00

12 lines
325 B
Dart
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import 'package:get/get.dart';
class AuthService extends GetxService {
static AuthService get to => Get.find<AuthService>();
/// 供外部使用的,判断是否登录的状态
get isUserLogin => isLogin.value;
/// 登录状态记录,可监听的这样ever才能监听到
final RxBool isLogin = false.obs;
}