Attachment constructor

const Attachment({
  1. required String id,
  2. @Default('') String name,
  3. @Default('') String type,
  4. required String disposition,
  5. @Default('') dynamic encoding,
  6. required bool related,
  7. required int size,
  8. required String downloadUrl,
})

Attachment constructor. MUST NOT be used manually Use MailTm and AuthorizedUser

Implementation

const factory Attachment({
  /// The attachment id.
  required String id,

  /// The attachment name.
  @Default('') String name,

  /// The attachment contentType.
  @Default('') String type,

  /// The attachment disposition.
  required String disposition,

  /// The attachment transferEncoding.
  @Default('') encoding,

  /// Undocumented, seems to always be true
  required bool related,

  /// The attachment size.
  required int size,

  /// The attachment downloadUrl.
  required String downloadUrl,
}) = _Attachment;