1
0
Fork 0
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
thesis_shop/lib/stores/user_store.dart

20 lines
303 B

import 'package:mobx/mobx.dart';
part 'user_store.g.dart';
class UserStore = _UserStore with _$UserStore;
abstract class _UserStore with Store {
@observable
bool isSignedIn = false;
@action
void logIn() {
isSignedIn = true;
}
@action
void logOut() {
isSignedIn = false;
}
}