state.dart 702 B

1234567891011121314151617181920212223242526272829
  1. import 'package:get/get.dart';
  2. class GroupMembersState {
  3. // title
  4. final _title = "".obs;
  5. set title(value) => _title.value = value;
  6. get title => _title.value;
  7. /// 群名
  8. final _groupName = "".obs;
  9. set groupName(value) => _groupName.value = value;
  10. get groupName => _groupName.value;
  11. /// 群管理员
  12. final _groupAdminName = "".obs;
  13. set groupAdminName(value) => _groupAdminName.value = value;
  14. get groupAdminName => _groupAdminName.value;
  15. /// 成员列表
  16. final RxList<String> memberList = <String>[].obs;
  17. /// 是否更新群成员
  18. final _canUpdate = false.obs;
  19. set canUpdate(bool value) => _canUpdate.value = value;
  20. bool get canUpdate => _canUpdate.value;
  21. }