FileField constructor

const FileField({
  1. String? url,
  2. Details? details,
  3. String? fileName,
  4. String? contentType,
})

FileField contains the url of the file and the details of the file. The details are the url, the size, the content type and the fileName. also the dimensions and the size of the image if it's an image. The FileField is usually inside the AssetField.

Implementation

const factory FileField({
  String? url,
  Details? details,
  String? fileName,
  String? contentType,
}) = _FileField;