convertPaths static method

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

paths 文件地址转换 List

Implementation

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