removeById method

void removeById(
  1. int id
)

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;
  });
}