Attachment constructor
Attachment({
- List<
Action> actions = const [], - String? assetUrl,
- String? authorIcon,
- String? authorLink,
- String? authorName,
- String? color,
- Map<
String, Object> custom = const {}, - String? fallback,
- List<
Field> fields = const [], - Images? giphy,
- String? imageUrl,
- String? ogScrapeUrl,
- int? originalHeight,
- int? originalWidth,
- String? pretext,
- String? text,
- String? thumbUrl,
- String? title,
- String? titleLink,
- 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,
});