cake_wallet/lib/store/dashboard/page_view_store.dart

19 lines
359 B
Dart
Raw Normal View History

import 'package:mobx/mobx.dart';
part 'page_view_store.g.dart';
class PageViewStore = PageViewStoreBase with _$PageViewStore;
abstract class PageViewStoreBase with Store {
PageViewStoreBase() {
setCurrentPage(1);
}
@observable
double currentPage;
@action
void setCurrentPage(double currentPage) {
this.currentPage = currentPage;
}
}