Attachment constructor

const Attachment({
  1. required String id,
  2. int timestamp = 0,
  3. required String filename,
  4. AttachmentState state = AttachmentState.queuedDownload,
  5. String? localUri,
  6. String? mediaType,
  7. int? size,
  8. bool hasSynced = false,
  9. String? metaData,
})

Creates an Attachment instance.

Implementation

const Attachment({
  required this.id,
  this.timestamp = 0,
  required this.filename,
  this.state = AttachmentState.queuedDownload,
  this.localUri,
  this.mediaType,
  this.size,
  this.hasSynced = false,
  this.metaData,
});