state.dart 653 B

12345678910111213141516171819202122
  1. import 'package:get/get.dart';
  2. import '../../../../common/models/index.dart';
  3. class PersonState {
  4. // title
  5. final _title = "".obs;
  6. set title(value) => _title.value = value;
  7. get title => _title.value;
  8. Rx<O2Person?> person = Rx<O2Person?>(null);
  9. final _departmentNames = "".obs;
  10. set departmentNames(String value) => _departmentNames.value = value;
  11. String get departmentNames => _departmentNames.value;
  12. final _superiorName = "".obs;
  13. set superiorName(String value) => _superiorName.value = value;
  14. String get superiorName => _superiorName.value;
  15. final RxList<O2PersonAttribute> personAttributeList = <O2PersonAttribute>[].obs;
  16. }