Attachment constructor

Attachment({
  1. List<Action> actions = const [],
  2. String? assetUrl,
  3. String? authorIcon,
  4. String? authorLink,
  5. String? authorName,
  6. String? color,
  7. Map<String, Object> custom = const {},
  8. String? fallback,
  9. List<Field> fields = const [],
  10. String? footer,
  11. String? footerIcon,
  12. Images? giphy,
  13. String? imageUrl,
  14. String? ogScrapeUrl,
  15. int? originalHeight,
  16. int? originalWidth,
  17. String? pretext,
  18. String? text,
  19. String? thumbUrl,
  20. String? title,
  21. String? titleLink,
  22. String? type,
})

Returns a new Attachment instance.

Implementation

Attachment({
  this.actions = const [],
  this.assetUrl,
  this.authorIcon,
  this.authorLink,
  this.authorName,
  this.color,
  this.custom = const {},
  this.fallback,
  this.fields = const [],
  this.footer,
  this.footerIcon,
  this.giphy,
  this.imageUrl,
  this.ogScrapeUrl,
  this.originalHeight,
  this.originalWidth,
  this.pretext,
  this.text,
  this.thumbUrl,
  this.title,
  this.titleLink,
  this.type,
});