import 'package:get/get.dart'; import 'package:vnote_device_plugin/consts/types.dart'; import 'package:vitalapp/pages/medical/models/item.dart'; class MedicalState { final RxnString _currentTab = RxnString(null); final RxList _medicalMenuList = RxList([ // MedicalItem(key: DeviceTypes.TEMP, diagnosticItem: '体温'), // MedicalItem(key: DeviceTypes.SUGAR, diagnosticItem: '血糖'), // MedicalItem(key: DeviceTypes.NIBP, diagnosticItem: '血压'), // MedicalItem(key: DeviceTypes.SPO2, diagnosticItem: '血氧'), // MedicalItem(key: DeviceTypes.WEIGHT, diagnosticItem: 'BMI'), ]); // final Rx> _diagnosisDataValue = Rx({}); String? get currentTab => _currentTab.value; set currentTab(String? val) => _currentTab(val); /// 健康检测列表 set medicalMenuList(List value) => _medicalMenuList(value); List get medicalMenuList => _medicalMenuList; // Map get diagnosisDataValue => _diagnosisDataValue.value; // set diagnosisDataValue(Map val) => _diagnosisDataValue(val); }