getBackgroundImageFromMap method
Builds a background image widget from an element map's backgroundImage.
Implementation
Widget? getBackgroundImageFromMap(Map element) {
final props = resolveBackgroundImage(element['backgroundImage']);
if (props == null) return null;
return getBackgroundImage(props.url, repeat: props.repeat, fit: props.fit);
}