state.dart 1.0 KB

123456789101112131415161718192021222324252627282930313233343536
  1. import 'package:get/get.dart';
  2. import '../../../../common/models/index.dart';
  3. class OldCheckInState {
  4. // title
  5. final _title = "".obs;
  6. set title(value) => _title.value = value;
  7. get title => _title.value;
  8. // 当前时间
  9. final _currentTime = "".obs;
  10. set currentTime(value) => _currentTime.value = value;
  11. get currentTime => _currentTime.value;
  12. // 当前地址信息
  13. final _currentAddress = "".obs;
  14. set currentAddress(value) => _currentAddress.value = value;
  15. String get currentAddress => _currentAddress.value;
  16. // 是否在打卡地址范围内
  17. final _isInCheckInPositionRange = false.obs;
  18. set isInCheckInPositionRange(bool value) => _isInCheckInPositionRange.value = value;
  19. bool get isInCheckInPositionRange => _isInCheckInPositionRange.value;
  20. // 今天是否还需要打卡
  21. final _todayNeedCheck = false.obs;
  22. set todayNeedCheck(bool value) => _todayNeedCheck.value = value;
  23. bool get todayNeedCheck => _todayNeedCheck.value;
  24. // 打卡记录
  25. RxList<Feature> recordList = <Feature>[].obs;
  26. }