2020-04-12 12:34:19 +02:00
|
|
|
import 'package:mobx/mobx.dart';
|
|
|
|
|
|
|
|
part 'navigation_store.g.dart';
|
|
|
|
|
|
|
|
class NavigationStore extends _NavigationStore with _$NavigationStore {
|
|
|
|
NavigationStore() : super();
|
|
|
|
}
|
|
|
|
|
|
|
|
abstract class _NavigationStore with Store {
|
|
|
|
_NavigationStore();
|
|
|
|
|
2020-12-08 22:22:31 +01:00
|
|
|
@observable int navIndex = 0;
|
2020-04-12 12:34:19 +02:00
|
|
|
|
|
|
|
@action
|
|
|
|
void setNavIndex(int i) {
|
|
|
|
navIndex = i;
|
|
|
|
}
|
|
|
|
}
|