FeedbackAttachment class

Metadata and URL describing an uploaded file or screenshot attachment.

Attached to FeedbackDraft submissions for bug reports and user feedback.

Example

final attachment = FeedbackAttachment(
  kind: AttachmentKind.image,
  key: 'img_abc123',
  url: 'https://imagedelivery.net/.../public',
  filename: 'screenshot.png',
  mimeType: 'image/png',
  size: 102400,
);

Constructors

FeedbackAttachment({required AttachmentKind kind, required String key, required String url, String? filename, String? mimeType, int? size})
Creates a FeedbackAttachment metadata record.
const
FeedbackAttachment.fromJson(Map<String, dynamic> json)
Deserializes FeedbackAttachment from a JSON map.
factory

Properties

filename String?
Original filename of the uploaded file.
final
hashCode int
The hash code for this object.
no setterinherited
key String
Unique storage identifier or object key.
final
kind AttachmentKind
Storage kind (image or generic R2 file).
final
mimeType String?
MIME type of the uploaded file (e.g. 'image/png').
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
size int?
Size of the uploaded file in bytes.
final
url String
Publicly accessible HTTPS URL of the hosted attachment.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Serializes FeedbackAttachment to a JSON map.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited