convertPath static method

ExtendedAssetEntity? convertPath(
  1. String path, {
  2. AssetType assetsType = AssetType.image,
})

paths 文件地址转换 List

Implementation

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