state.dart 1022 B

123456789101112131415161718192021222324252627282930
  1. import 'package:fis_measure/process/workspace/rpc_bridge.dart';
  2. import 'package:get/get.dart';
  3. class MeasurehomeState {
  4. final Rx<String> _applicationName = Rx('');
  5. final Rx<String> _categoryName = Rx('');
  6. final Rx<String> _version = Rx('');
  7. final Rx<bool> _loaded = Rx(false);
  8. final Rx<VidImageSource> _source = Rx(VidImageSource.Remedical);
  9. /// vid应用
  10. set applicationName(String value) => _applicationName.value = value;
  11. String get applicationName => _applicationName.value;
  12. /// vid应用分类名称
  13. set categoryName(String value) => _categoryName.value = value;
  14. String get categoryName => _categoryName.value;
  15. /// 当前vid测量的版本号
  16. set version(String value) => _version.value = value;
  17. String get version => _version.value;
  18. /// 图片load
  19. set loaded(bool value) => _loaded.value = value;
  20. bool get loaded => _loaded.value;
  21. ///图像来源(会诊or分时诊断)
  22. VidImageSource get source => _source.value;
  23. set source(VidImageSource v) => _source.value = v;
  24. }