19 lines
416 B
Dart
19 lines
416 B
Dart
import 'package:flutter/cupertino.dart';
|
|
import 'package:shared_preferences/shared_preferences.dart';
|
|
import 'package:web_socket_channel/web_socket_channel.dart';
|
|
|
|
class AccountModel extends ChangeNotifier {
|
|
bool _isLoggedIn = false;
|
|
|
|
bool get isLoggedIn => _isLoggedIn;
|
|
|
|
void logout() {
|
|
_isLoggedIn = false;
|
|
notifyListeners();
|
|
}
|
|
|
|
void login() {
|
|
_isLoggedIn = true;
|
|
notifyListeners();
|
|
}
|
|
} |