state.dart 722 B

1234567891011121314151617181920212223
  1. import 'package:get/get.dart';
  2. class LabDataState {
  3. // 当前选中的记录下标
  4. final RxInt _selectedRecordIndex = 0.obs;
  5. set selectedRecordIndex(value) => _selectedRecordIndex.value = value;
  6. int get selectedRecordIndex => _selectedRecordIndex.value;
  7. // 没有病人
  8. final RxBool _noPatient = false.obs;
  9. set noPatient(bool value) => _noPatient.value = value;
  10. bool get noPatient => _noPatient.value;
  11. // 没有扫查记录
  12. final RxBool _noRecord = false.obs;
  13. set noRecord(bool value) => _noRecord.value = value;
  14. bool get noRecord => _noRecord.value;
  15. // 没有数据
  16. final RxBool _noData = false.obs;
  17. set noData(bool value) => _noData.value = value;
  18. bool get noData => _noData.value;
  19. }