convertUrl static method

ExtendedAssetEntity? convertUrl(
  1. String url, {
  2. AssetType assetsType = AssetType.image,
})

url 地址转换 List

Implementation

static ExtendedAssetEntity? convertUrl(String url,
    {AssetType assetsType = AssetType.image}) {
  if (url.isNotEmpty) {
    return ExtendedAssetEntity.fromPreviewed(
        previewed: url, assetType: assetsType);
  }
  return null;
}