toExtended method

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

to ExtendedAssetEntity and renovate AssetEntity;

Implementation

Future<ExtendedAssetEntity> toExtended(
    {FlAssetFileRenovate? renovate}) async {
  return ExtendedAssetEntity(
      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);
}