removeChildrenPointer static method
void
removeChildrenPointer(
- dynamic id
以传入的指针为原点,移除后代绑定的指针事件,保留祖先指针事件
Implementation
static void removeChildrenPointer(dynamic id) {
Set removeList = {};
bool flag = true;
for (final item in pointers) {
if (item == id) {
flag = false;
break;
} else {
if (flag) {
removeList.add(item);
}
}
}
pointers.removeAll(removeList);
}