convertFiles static method

ExtendedAssetEntity? convertFiles(
  1. File file, {
  2. AssetType assetsType = AssetType.image,
})

paths 文件地址转换 ExtendedAssetModel 默认类型为 AssetType.image

Implementation

static ExtendedAssetEntity? convertFiles(File file,
    {AssetType assetsType = AssetType.image}) {
  if (file.existsSync()) {
    return ExtendedAssetEntity.fromFile(file: file, assetType: assetsType);
  }
  return null;
}