import 'package:flutter/material.dart'; import 'package:get/get.dart'; import 'package:star_lock/main/lockDetail/messageWarn/lockUser/lockUser_entity.dart'; import 'package:star_lock/main/lockDetail/messageWarn/msgNotification/openDoorNotify/openDoorNotify_entity.dart'; class AddFamilyState { AddFamilyState() { final Map map = Get.arguments; if (map['lockId'] != null) { getLockId.value = map['lockId']; } if (map['isDetail'] != null) { isDetail.value = map['isDetail']; } if (map['itemData'] != null) { familyData.value = map['itemData']; lockUserKeys.value.currentKeyName = familyData.value.settingValue!.remark!; openDoorId.value = familyData.value.settingValue!.openDoorId!; } } final TextEditingController changeNameController = TextEditingController(); RxInt getLockId = 0.obs; Rx lockUserKeys = LockUserListKeys().obs; RxList emailReceiverList = [].obs; RxList phoneReceiverList = [].obs; RxString emailListStr = ''.obs; RxString phontListStr = ''.obs; RxInt openDoorId = 0.obs; RxInt openDoorType = 0.obs; Rx familyData = DataList().obs; RxBool isDetail = false.obs; }