mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-01-11 05:14:46 +00:00
19 lines
359 B
Dart
19 lines
359 B
Dart
|
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;
|
||
|
}
|
||
|
}
|