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;
  removeWhere(
    (component) => component is InterfaceComponent && component.id == id,
  );
}