AssetField constructor

const AssetField({
  1. String? title,
  2. String? description,
  3. FileField? file,
})

AssetField is the field that contains the actual file. It has the title and description of the file. the file itself is in the FileField. The FileField contains the url of the file and the details of the file. The details are the size and the content type. also the dimensions and the size of the image if it's an image.

Implementation

const factory AssetField({
  String? title,
  String? description,
  FileField? file,
}) = _AssetField;