getBackgroundImageElement function

XmlNode? getBackgroundImageElement(
  1. XmlElement? subViews
)

Create element for background element.

Implementation

XmlNode? getBackgroundImageElement(XmlElement? subViews) {
  final backgroundImageElement = subViews?.children.firstWhereOrNull(
    (child) {
      final attribute = child.attributes.firstWhereOrNull(
        (attribute) {
          return attribute.value == IOSStrings.backgroundImageViewIdValue;
        },
      );
      return attribute != null;
    },
  );
  return backgroundImageElement;
}