removeById method
Used to remove component of the interface by id
Implementation
void removeById(int id) {
if (children.isEmpty) return;
children.removeWhere((element) {
return element is InterfaceComponent && element.id == id;
});
}
Used to remove component of the interface by id
void removeById(int id) {
if (children.isEmpty) return;
children.removeWhere((element) {
return element is InterfaceComponent && element.id == id;
});
}