getBackgroundImageFromMap method

Widget? getBackgroundImageFromMap(
  1. Map element
)

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);
}