removeElement function

void removeElement({
  1. required XmlElement launchTheme,
  2. required String name,
})

Implementation

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