18 lines
347 B
Dart
18 lines
347 B
Dart
import 'package:get/get.dart';
|
|
|
|
class AuthService extends GetxService {
|
|
static AuthService get to => Get.find();
|
|
|
|
/// Mocks a login process
|
|
final isLoggedIn = false.obs;
|
|
bool get isLoggedInValue => isLoggedIn.value;
|
|
|
|
void login() {
|
|
isLoggedIn.value = true;
|
|
}
|
|
|
|
void logout() {
|
|
isLoggedIn.value = false;
|
|
}
|
|
}
|