ExtendedAssetEntity<T>.fromFile constructor

ExtendedAssetEntity<T>.fromFile({
  1. required File file,
  2. int width = 0,
  3. int height = 0,
  4. required AssetType assetType,
})

Implementation

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