getBoxDecoration method

DecorationImage? getBoxDecoration(
  1. String? urlOrAlias
)

Implementation

DecorationImage? getBoxDecoration(String? urlOrAlias) {
  if (urlOrAlias.isEmptyString) {
    return null;
  }
  var imageProvider = getImageProvider(urlOrAlias);
  if (imageProvider == null) {
    return null;
  }
  return DecorationImage(
    image: imageProvider,
    fit: BoxFit.cover,
  );
}