getBackgroundImageElement function

XmlElement? getBackgroundImageElement(
  1. XmlElement? subViews
)

Create element for background element.

Implementation

XmlElement? getBackgroundImageElement(XmlElement? subViews) {
  return subViews?.children.whereType<XmlElement>().firstWhereOrNull(
        (child) =>
            child.name.qualified == IOSStrings.imageViewElement &&
            child.getAttribute(IOSStrings.defaultImageViewId) ==
                IOSStrings.backgroundImageViewIdValue,
      );
}