feat : init statics

This commit is contained in:
2025-07-26 15:47:22 +03:30
parent ad456d5855
commit bafa24543d
54 changed files with 1853 additions and 1421 deletions

View File

@@ -0,0 +1,33 @@
import 'package:rasadyar_core/core.dart';
class UsersLogic extends GetxController {
Rx<Resource<PaginationModel<int>>> countList = Resource<PaginationModel<int>>.success(
PaginationModel(results: [1, 2, 3, 4, 5, 6], count: 1, next: null, previous: null),
).obs;
RxBool isLoadingMore = false.obs;
RxInt currentPage = 1.obs;
RxInt indexExpanded = (-1).obs;
@override
void onReady() {
// TODO: implement onReady
super.onReady();
}
@override
void onClose() {
// TODO: implement onClose
super.onClose();
}
void toggleExpandedList(int index) {
if (indexExpanded.value == index) {
indexExpanded.value = -1;
} else {
indexExpanded.value = index;
}
}
}