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.
|
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;
|
|
}
|
|
}
|
|
|