new change to use intaleq_map sdk 04-16-4
This commit is contained in:
17
packages/get/example_nav2/lib/services/auth_service.dart
Normal file
17
packages/get/example_nav2/lib/services/auth_service.dart
Normal file
@@ -0,0 +1,17 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user