toExtended<T> method

Future<ExtendedAssetEntity> toExtended<T>({
  1. FlAssetFileRenovate<T>? renovate,
})

to ExtendedAssetEntity and renovate AssetEntity;

Implementation

Future<ExtendedAssetEntity> toExtended<T>(
    {FlAssetFileRenovate<T>? renovate}) async {
  return ExtendedAssetEntity<T>(
      thumbnailDataAsync: await thumbnailData,
      fileAsync: await file,
      renovated: await renovate?.call(this),
      id: id,
      typeInt: typeInt,
      width: width,
      height: height,
      duration: duration,
      orientation: orientation,
      isFavorite: isFavorite,
      title: title,
      createDateSecond: createDateSecond,
      modifiedDateSecond: modifiedDateSecond,
      relativePath: relativePath,
      latitude: latitude,
      longitude: longitude,
      mimeType: mimeType,
      subtype: subtype);
}