app-starlock/lib/tools/seletKeyCyclicDate/seletKeyCyclicDate_state.dart
2024-08-19 15:24:14 +08:00

30 lines
745 B
Dart
Executable File

import 'package:get/get.dart';
class SeletKeyCyclicDateState{
SeletKeyCyclicDateState() {
final map = Get.arguments;
if (map['starDate'] != null) {
starDate.value = map['starDate'];
}
if (map['endDate'] != null) {
endDate.value = map['endDate'];
}
if (map['starTime'] != null) {
starTime.value = map['starTime'];
}
if (map['endTime'] != null) {
endTime.value = map['endTime'];
}
if (map['validityValue'] != null) {
weekDay.value = map['validityValue'];
}
}
RxString starDate = ''.obs;// 开始时间
RxString endDate = ''.obs;// 结束时间
RxString starTime = ''.obs;// 生效时间
RxString endTime = ''.obs;// 失效时间
RxList weekDay = [].obs;
}