removeElement function
Implementation
void removeElement({required XmlElement launchTheme, required String name}) {
launchTheme.children.removeWhere(
(element) => element.attributes.any(
(attribute) =>
attribute.name.toString() == 'name' && attribute.value == name,
),
);
}