Asset constructor

const Asset({
  1. Metadata? metadata,
  2. Sys? sys,
  3. AssetField? fields,
})

Asset is a file that is stored in Contentful. It has the link in the AssetField to the actual file. Also we could find different details in side the AssetField concerning the size and content type of the file.

Implementation

const factory Asset({
  Metadata? metadata,
  Sys? sys,
  AssetField? fields,
}) = _Asset;