ExtendedAssetEntity.fromPreviewed constructor

ExtendedAssetEntity.fromPreviewed({
  1. required String? previewed,
  2. int width = 0,
  3. int height = 0,
  4. required AssetType assetType,
})

Implementation

ExtendedAssetEntity.fromPreviewed({
  required this.previewed,
  super.width = 0,
  super.height = 0,
  required AssetType assetType,
})  : thumbnailDataAsync = null,
      fileAsync = null,
      renovated = null,
      isLocalData = false,
      super(typeInt: assetType.index, id: previewed.hashCode.toString());